Unified · Split
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | #!/bin/sh |
| 2 | −# Copyright (c) 2009-2013 Serge "ftrvxmtrx" Ziryukin | |
| 2 | +# Copyright (c) 2009-2014 Serge "ftrvxmtrx" Ziryukin | |
| 3 | 3 | # |
| 4 | 4 | # Permission is hereby granted, free of charge, to any person obtaining |
| 5 | 5 | # a copy of this software and associated documentation files (the |
| @@ -67,7 +67,7 @@ unset PIC INPATH CUE CHARSET · 61 unmodified lines | ||
| 67 | 67 | FORCE=0 |
| 68 | 68 | |
| 69 | 69 | # do not forget to update before commit |
| 70 | −VERSION=114 | |
| 70 | +VERSION=115 | |
| 71 | 71 | |
| 72 | 72 | HELP="\${cG}split2flac version: ${VERSION} |
| 73 | 73 | Splits one big \${cU}APE/FLAC/WV/WAV\$cZ\$cG audio image (or a collection) into \${cU}FLAC/M4A/MP3/OGG_VORBIS/WAV\$cZ\$cG tracks with tagging and renaming. |
| @@ -384,7 +384,7 @@ split_file () { · 310 unmodified lines | ||
| 384 | 384 | unset PIC |
| 385 | 385 | elif [ -z "${PIC}" ]; then |
| 386 | 386 | # try common names |
| 387 | − for i in cover.jpg front_cover.jpg folder.jpg; do | |
| 387 | + for i in {*/,}{*[Cc]over*,*[Ff]older*}.jpg; do | |
| 388 | 388 | if [ -r "${SDIR}/$i" ]; then |
| 389 | 389 | PIC="${SDIR}/$i" |
| 390 | 390 | break |