Sfoglia il codice sorgente

Merge branch 'fix_bitrate_error' of DebenOldert/Music-Downloader into master

Deben Oldert 6 anni fa
parent
commit
ee171e7f30
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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':