Unified · Split
| @@ -1,5 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # Copyright (c) 2009-2013 Serge "ftrvxmtrx" Ziryukin | 2 | # Copyright (c) 2009-2014 Serge "ftrvxmtrx" Ziryukin |
| 3 | # | 3 | # |
| 4 | # Permission is hereby granted, free of charge, to any person obtaining | 4 | # Permission is hereby granted, free of charge, to any person obtaining |
| 5 | # a copy of this software and associated documentation files (the | 5 | # a copy of this software and associated documentation files (the |
| @@ -67,7 +67,7 @@ unset PIC INPATH CUE CHARSET · 61 unmodified lines | |||
| 67 | FORCE=0 | 67 | FORCE=0 |
| 68 | 68 | ||
| 69 | # do not forget to update before commit | 69 | # do not forget to update before commit |
| 70 | VERSION=114 | 70 | VERSION=115 |
| 71 | 71 | ||
| 72 | HELP="\${cG}split2flac version: ${VERSION} | 72 | HELP="\${cG}split2flac version: ${VERSION} |
| 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. | 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 | unset PIC | 384 | unset PIC |
| 385 | elif [ -z "${PIC}" ]; then | 385 | elif [ -z "${PIC}" ]; then |
| 386 | # try common names | 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 | if [ -r "${SDIR}/$i" ]; then | 388 | if [ -r "${SDIR}/$i" ]; then |
| 389 | PIC="${SDIR}/$i" | 389 | PIC="${SDIR}/$i" |
| 390 | break | 390 | break |