Error with Enable Public Torrent Search

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
devildog
Posts: 2
Joined: Mon Mar 11, 2019 2:46 am

Error with Enable Public Torrent Search

Post by devildog »

Running into an error with Public Torrent search. The issue gets found, but this error gets thrown in the logs. Any ideas?


Mylar Version: master
-- git build 2dd10e20ee9b25c38487f98d512dd62b3b15d89f.
Python Version : 2.7.15rc1
OS- Ubuntu 18.04.2

Log-
2019-03-10 21:41:53 ERROR Uncaught exception: Traceback (most recent call last):
File "/opt/mylar/mylar/logger.py", line 337, in new_run
old_run(*args, **kwargs)
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/opt/mylar/mylar/helpers.py", line 3139, in search_queue
ss_queue = mylar.search.searchforissue(item['issueid'])
File "/opt/mylar/mylar/search.py", line 1855, in searchforissue
foundNZB, prov = search_init(ComicName, IssueNumber, str(IssueYear), SeriesYear, Publisher, IssueDate, StoreDate, actissueid, AlternateSearch, UseFuzzy, ComicVersion, SARC=SARC, IssueArcID=IssueArcID, mode=mode, rsscheck=rsscheck, ComicID=ComicID, filesafe=Comicname_filesafe, allow_packs=allow_packs, oneoff=oneoff, manual=manual, torrentid_32p=TorrentID_32p, digitaldate=DigitalDate, booktype=booktype)
File "/opt/mylar/mylar/search.py", line 339, in search_init
findit = NZB_SEARCH(ComicName, IssueNumber, ComicYear, SeriesYear, Publisher, IssueDate, StoreDate, searchprov, send_prov_count, IssDateFix, IssueID, UseFuzzy, newznab_host, ComicVersion=ComicVersion, SARC=SARC, IssueArcID=IssueArcID, RSS="yes", ComicID=ComicID, issuetitle=issuetitle, unaltered_ComicName=unaltered_ComicName, oneoff=oneoff, cmloopit=cmloopit, manual=manual, torznab_host=torznab_host, digitaldate=digitaldate, booktype=booktype)
File "/opt/mylar/mylar/search.py", line 1487, in NZB_SEARCH
searchresult = searcher(nzbprov, nzbname, mylar.COMICINFO, links, IssueID, ComicID, tmpprov, newznab=newznab_host, torznab=torznab_host, rss=RSS)
File "/opt/mylar/mylar/search.py", line 2390, in searcher
rcheck = rsscheck.torsend2client(ComicName, IssueNumber, comyear, link, nzbprov, nzbid) #nzbid = hash for usage with public torrents
File "/opt/mylar/mylar/rsscheck.py", line 1139, in torsend2client
if any([site == 'DEM', site == 'WWT']) and any([str(r.status_code) == '403', str(r.status_code) == '404', str(r.status_code) == '503']):
UnboundLocalError: local variable 'r' referenced before assignment
2019-03-10 21:41:53 WARNING Error fetching data from WWT (https://worldwidetorrents.to/download.php): global name 's' is not defined
User avatar
evilhero
Site Admin
Posts: 2883
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Error with Enable Public Torrent Search

Post by evilhero »

Fixed now in both branches - thanks for the bug report (not sure how it got missed in the span of a month with no-one else noticing it)
devildog
Posts: 2
Joined: Mon Mar 11, 2019 2:46 am

Re: Error with Enable Public Torrent Search

Post by devildog »

Thank you!
Post Reply