davidblewett/Flexget — comment on commit 7bedef8b6ee756efafaf1e58e9ba31ac81b35087
File: flexget/plugins/output/download.py line 258
By gray:

>>> os.path.basename(urlparse('http://www.demonoid.me/files/download/2872238/0017045651472/').path)
''
And you might want to add some more test cases to test_misc.py, especially for file permissions, since that's what this patch is supposed to fix.