Use better regex to find cover art
Allow the cover filename to be preceeded by a track number, which sometimes happens with certain programs and ripping setups.
This commit is contained in:
parent
32a60f8d07
commit
ebf47b8075
2
kunst
2
kunst
|
@ -161,7 +161,7 @@ update_cover() {
|
|||
# use same regex to find album art as mpDris2
|
||||
candidates=$(
|
||||
find "$DIR" -type f \
|
||||
| grep -iE '/(album|cover|\.?folder|front).*\.(gif|jpeg|jpg|png)'
|
||||
| grep -iE '/(([0-9| |-]*)?)(album|cover|\.?folder|front).*\.(gif|jpeg|jpg|png)'
|
||||
)
|
||||
while read -r CANDIDATE; do
|
||||
if [ -f "$CANDIDATE" ]; then
|
||||
|
|
Loading…
Reference in New Issue