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

Unable to add series. #854

Closed Malakite closed 10 years ago

Malakite commented 10 years ago

Hi

I am currently having an issue adding any new series, no search results are returned either when searching from the pull list or when adding series manually via the Comic Vine ID.

Log throws up this error.

Uncaught exception: Traceback (most recent call last): File "/usr/local/mylar/mylar/logger.py", line 141, in new_run old_run(_args, _kwargs) File "/usr/lib/python2.7/threading.py", line 504, in run self.__target(_self.__args, _self.__kwargs) File "/usr/local/mylar/mylar/weeklypull.py", line 408, in pullit pullitcheck(forcecheck=forcecheck) File "/usr/local/mylar/mylar/weeklypull.py", line 749, in pullitcheck statusupdate = updater.upcoming_update(ComicID=ComicID, ComicName=ComicName, IssueNumber=ComicIssue, IssueDate=ComicDate, forcecheck=forcecheck) File "/usr/local/mylar/mylar/updater.py", line 287, in upcoming_update else: mylar.importer.updateissuedata(ComicID, ComicName, calledfrom='weeklycheck')#mylar.importer.addComictoDB(ComicID,mismatch,pullupd) File "/usr/local/mylar/mylar/importer.py", line 1066, in updateissuedata comic = cv.getComic(comicid,'comic') File "/usr/local/mylar/mylar/cv.py", line 110, in getComic return GetComicInfo(comicid,dom) File "/usr/local/mylar/mylar/cv.py", line 173, in GetComicInfo comic['ComicURL'] = dom.getElementsByTagName('site_detail_url')[trackcnt].firstChild.wholeText IndexError: list index out of range

evilhero commented 10 years ago

If I had to take a stab without seeing to the log or what series was failing, I would guess that your comicvine API key is incorrect either character wise or you have a leading / trailing space in it within the configuration gui.

If in your config.ini you have the comicvine_api field within quotes then that's the cause (being an extra space). Either update to latest development branch where this is addressed or remove the space from the gui and restart mylar.

Malakite commented 10 years ago

Thanks for such a quick reply. You were right, trailing space on the API. I had replaced it as I thought that may correct an issue I was having.

Thanks again.

evilhero commented 10 years ago

Np, if you're still having the issue you can't correct, post a new issue about it and include any relevant errors / logs, and I can probably help out with that too ;)