Fix size detection of >10M files and add a toggle link to show/hide already download sings
This commit is contained in:
parent
5210a4d188
commit
da8345eca6
3 changed files with 17 additions and 2 deletions
3
dl.sh
3
dl.sh
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Reference in a new issue