evilhero / mylar

An automated Comic Book downloader (cbr/cbz) for use with SABnzbd, NZBGet and torrents
GNU General Public License v3.0
976 stars 172 forks source link

list index out of range error #618

Closed SquaTront closed 9 years ago

SquaTront commented 10 years ago

Hey there evilhero,

I've been happily running the development branch for ages with very few problems, but today I updated to the latest rev and upon restarting, I'm getting the following. Any ideas?

Joes-Mac-mini:mylar joevan$ 28-Jan-2014 20:21:26 - INFO :: MainThread : Checking to see if the database has all tables.... 28-Jan-2014 20:21:26 - INFO :: MainThread : Populating Base Exception listings into Mylar.... 28-Jan-2014 20:21:26 - INFO :: MainThread : Populating Custom Exception listings into Mylar.... 28-Jan-2014 20:21:26 - INFO :: MainThread : Ensuring DB integrity - Removing all Erroneous Comics (ie. named None) 28-Jan-2014 20:21:26 - INFO :: MainThread : Correcting Null entries that make the main page break on startup. 28-Jan-2014 20:21:26 - INFO :: MainThread : Retrieving latest version information from github 28-Jan-2014 20:21:27 - INFO :: MainThread : Comparing currently installed version with latest github version 28-Jan-2014 20:21:27 - INFO :: MainThread : Mylar is up to date 28-Jan-2014 20:21:27 - INFO :: MainThread : CVAPIFIX enabled: ComicVine set to beta API site 28-Jan-2014 20:21:27 - INFO :: MainThread : Remapping the sorting to allow for new additions. 28-Jan-2014 20:21:27 - INFO :: MainThread : Sucessfully ordered 167 series in your watchlist. 28-Jan-2014 20:21:27 - INFO :: MainThread : Starting Mylar on port: 8090 28-Jan-2014 20:21:27 - INFO :: MainThread : Checking for existance of Weekly Comic listing... 28-Jan-2014 20:21:27 - INFO :: MainThread : CHECK_FOLDER SET TO: 28-Jan-2014 20:21:27 - INFO :: Thread-13 : Initiating NZB Search scan at requested interval of 360 minutes. 28-Jan-2014 20:21:27 - INFO :: Thread-12 : Weekly pull list present - checking if it's up-to-date.. 28-Jan-2014 20:21:27 - INFO :: Thread-13 : Shhh be very quiet...I'm looking for Eerie Archives issue: 11 (2012) using experimental 28-Jan-2014 20:21:27 - INFO :: Thread-12 : No new pull-list available - will re-check again in 24 hours. 28-Jan-2014 20:21:27 - INFO :: Thread-12 : Checking the Weekly Releases list for comics I'm watching... 28-Jan-2014 20:21:28 - INFO :: Thread-12 : Found comic directory: /Users/joevan/Downloads/comics/Image/The Bounce (2013) Exception in thread Thread-12: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 808, in bootstrap_inner self.run() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 761, in run self.__target(_self.args, *_self.__kwargs) File "/Users/joevan/mylar/mylar/weeklypull.py", line 169, in pullit pullitcheck() File "/Users/joevan/mylar/mylar/weeklypull.py", line 604, in pullitcheck statusupdate = updater.upcoming_update(ComicID=ComicID, ComicName=ComicName, IssueNumber=ComicIssue, IssueDate=ComicDate, forcecheck=forcecheck) File "/Users/joevan/mylar/mylar/updater.py", line 188, in upcoming_update else: mylar.importer.addComictoDB(ComicID,mismatch,pullupd) File "/Users/joevan/mylar/mylar/importer.py", line 76, in addComictoDB comic = cv.getComic(comicid,'comic') File "/Users/joevan/mylar/mylar/cv.py", line 97, in getComic return GetComicInfo(comicid,dom) File "/Users/joevan/mylar/mylar/cv.py", line 127, in GetComicInfo comic['ComicName'] = dom.getElementsByTagName('name')[trackcnt+1].firstChild.wholeText IndexError: list index out of range

28-Jan-2014 20:21:29 - INFO :: Thread-13 : More than one search provider given - trying next one. 28-Jan-2014 20:21:29 - INFO :: Thread-13 : Shhh be very quiet...I'm looking for Eerie Archives issue: 11 (2012) using dognzb Exception in thread Thread-13: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 808, in bootstrap_inner self.run() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 761, in run self.__target(_self.args, *_self.__kwargs) File "/Users/joevan/mylar/mylar/search.py", line 1409, in searchforissue foundNZB, prov = search_init(comic['ComicName'], result['Issue_Number'], str(ComicYear), comic['ComicYear'], IssueDate, result['IssueID'], AlternateSearch, UseFuzzy, ComicVersion, SARC=None, IssueArcID=None, mode=mode, rsscheck=rsscheck, ComicID=result['ComicID']) File "/Users/joevan/mylar/mylar/search.py", line 339, in search_init findit = NZB_SEARCH(ComicName, IssueNumber, ComicYear, SeriesYear, nzbprov, nzbpr, IssDateFix, IssueID, UseFuzzy, newznab_host, ComicVersion, SARC=SARC, IssueArcID=IssueArcID, ComicID=ComicID) File "/Users/joevan/mylar/mylar/search.py", line 631, in NZB_SEARCH if host_newznab_fix.startswith('http'): UnboundLocalError: local variable 'host_newznab_fix' referenced before assignment

tjiddy commented 10 years ago

getting the same error myself

evilhero commented 10 years ago

The list index should be fixed now - provided that CV doesn't revert the changes they just did (was because they updated the API).

Just as an FYI, the Search isn't working properly as of yet - I haven't had time to look at why, but it should be along the same lines. The fix I'll commit tomorrow morning as I have to offline for abit tonight ;)