Private GIT

Skip to content
Snippets Groups Projects
Commit 5d65ba77 authored by Dustyn Gibson's avatar Dustyn Gibson
Browse files

if re.search returns None due to no match, .group() will cause an exception

parent 5fd354ca
Branches
Tags
No related merge requests found
...@@ -143,7 +143,11 @@ class EZTVProvider(generic.TorrentProvider): ...@@ -143,7 +143,11 @@ class EZTVProvider(generic.TorrentProvider):
for quality in episode['torrents'].keys(): for quality in episode['torrents'].keys():
link = episode['torrents'][quality]['url'] link = episode['torrents'][quality]['url']
title = re.search('&dn=(.*?)&', link).group(1) getTitle = re.search('&dn=(.*?)&', link)
if getTitle:
title = getTitle.group(1)
else:
continue
item = { item = {
'title': title, 'title': title,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment