Private GIT

Skip to content
Snippets Groups Projects
Commit 339c68fa authored by miigotu's avatar miigotu
Browse files

Merge pull request #59 from SickRage/torrentz-category

Fix object of type NoneType is not iterable error in torrentz
parents 4e97892c cc5e7108
No related branches found
No related tags found
No related merge requests found
...@@ -96,7 +96,7 @@ class TORRENTZProvider(generic.TorrentProvider): ...@@ -96,7 +96,7 @@ class TORRENTZProvider(generic.TorrentProvider):
entries = entries if isinstance(entries, list) else [entries] entries = entries if isinstance(entries, list) else [entries]
for item in entries: for item in entries:
if 'tv' not in item.get('category', ''): if item.get('category', None) and 'tv' not in item.get('category', ''):
continue continue
title = item.get('title', '').rsplit(' ', 1)[0].replace(' ', '.') title = item.get('title', '').rsplit(' ', 1)[0].replace(' ', '.')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment