Fix size detection of >10M files and add a toggle link to show/hide already download sings

This commit is contained in:
Némunaire 2012-10-31 21:09:35 +01:00
commit da8345eca6
3 changed files with 17 additions and 2 deletions

3
dl.sh
View file

@ -23,8 +23,9 @@ if [ ! -e /tmp/dlEnCours ]; then
echo "-- " >> $f.done
transmission-remote -AS
else
$pwd/youtube-dl --skip-download "$lign"
size=`$pwd/youtube-dl --skip-download "$lign" | grep "File size"`
if echo $size | grep -E " [1234]?[0-9]{2}\.[0-9]+M "
if echo $size | grep -E " [1234]?[0-9]{1,2}\.[0-9]+M "
then
echo "$lign" >> $pwd/database