Merge pull request #33 from Seirdy/fix/better-cover-file-discovery
Use better regex to find cover art
This commit is contained in:
commit
e5d047affe
2
kunst
2
kunst
|
@ -161,7 +161,7 @@ update_cover() {
|
||||||
# use same regex to find album art as mpDris2
|
# use same regex to find album art as mpDris2
|
||||||
candidates=$(
|
candidates=$(
|
||||||
find "$DIR" -type f \
|
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
|
while read -r CANDIDATE; do
|
||||||
if [ -f "$CANDIDATE" ]; then
|
if [ -f "$CANDIDATE" ]; then
|
||||||
|
|
Loading…
Reference in New Issue