BC44 / Cross-Seed-AutoDL

Scans files and finds cross-seedable torrents via Jackett
MIT License
137 stars 19 forks source link

fixed >None< url error #6

Closed florekem closed 4 years ago

florekem commented 4 years ago

Hi! I'm not a skilled programmer, so this change is rather a suggestion (but tested and working). So, Cross-Seed-AutoDL crashed when attempting to download a torrent file, that doesn't exist. For example, some older torrents on 'blutiopia' do have only magnet links available, so the grabbed torrent url was 'None', which crashed the script. I hope its understandable. So I just added simple 'if' condition to check if url is valid.

Best wishes and thanks for your work.