Deben Oldert преди 6 години
родител
ревизия
17e4bfacb8
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      sites/helper/download.py

+ 1 - 1
sites/helper/download.py

@@ -50,7 +50,7 @@ def download(item, type='GET', parameters=None, headers=None, cookies=None, stre
 
                 console.output('Bitrate: {0}kbps'.format(int(item.bitrate)))
 
-            if int(item.bitrate) < Settings.MinQuality:
+            if item.duration_seconds is not None and int(item.bitrate) < Settings.MinQuality:
                 ans = console.ask_input('Continue downloading? [y/n]')
 
                 if ans != 'y':