Private GIT

Skip to content
Snippets Groups Projects
Commit 5c500d64 authored by Manojav Sridhar's avatar Manojav Sridhar
Browse files

fix nzb missing link issue

parent 2020a417
No related branches found
No related tags found
No related merge requests found
......@@ -209,9 +209,12 @@ class GenericProvider:
Returns: A tuple containing two strings representing title and URL respectively
"""
title = helpers.get_xml_text(item.getElementsByTagName('title')[0])
try:
url = helpers.get_xml_text(item.getElementsByTagName('link')[0])
if url:
url = url.replace('&','&')
except IndexError:
url = None
return (title, url)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment