Showing 1 changed files with 7 additions and 1 deletions
+7 -1
get_cover
... ...
@@ -75,6 +75,8 @@ IFS=$'\n'
75 75
 for arg in $@; do
76 76
     if [[ $arg =~ ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}:/ ]]; then
77 77
         albums[${#albums[@]}]=$arg
78
+    elif ! [[ $arg =~ ^(force|retry)$ ]]; then
79
+        WARNING "incohérence sur $arg"
78 80
     fi
79 81
 done
80 82
 if test ${#albums[@]} -eq 0; then
... ...
@@ -86,7 +88,11 @@ if test ${#albums[@]} -eq 0; then
86 88
 fi
87 89
 
88 90
 for album in ${albums[@]}; do
89
-    if test -d "${album#*:}"  && ! covered ${1:-empty}; then
91
+    if ! test -d "${album#*:}"; then
92
+        WARNING "${album#*:}: chemin inconnu"
93
+        continue
94
+    fi
95
+    if ! covered ${1:-empty}; then
90 96
         echo -n "${album#*:} "
91 97
         curl -Ls $coverartarchive_api/${album%%:*} > $coverart
92 98
         if test $(file -bn --mime-type $coverart) = application/json; then