Private GIT

Skip to content
Snippets Groups Projects
Commit a56b1321 authored by Fernando's avatar Fernando
Browse files

Merge pull request #1856 from miigotu/1437-nonetype-eztv

if re.search returns None due to no match, .group() will cause an exception
parents 5fd354ca 5d65ba77
Branches
Tags
No related merge requests found
......@@ -143,7 +143,11 @@ class EZTVProvider(generic.TorrentProvider):
for quality in episode['torrents'].keys():
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 = {
'title': title,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment