DobyTang / LazyLibrarian

This project isn't finished yet. Goal is to create a SickBeard, CouchPotato, Headphones-like application for ebooks. Headphones is used as a base, so there are still a lot of references to it.
732 stars 71 forks source link

Magzine library scan error #1617

Closed Code-Slave closed 5 years ago

Code-Slave commented 5 years ago

Latest revision, on thraxis docker

I go into a mag dir and do a library scan

  Unhandled exception in magazineScan: Traceback (most recent call last): File "/app/lazylibrarian/lazylibrarian/magazinescan.py", line 85, in magazineScan mag_path = os.path.dirname(match['LatestCover']) File "/usr/lib/python2.7/posixpath.py", line 122, in dirname i = p.rfind('/') + 1 AttributeError: 'NoneType' object has no attribute 'rfind'
philborman commented 5 years ago

Its a bug. Needs some thinking about though. It looks like you have no issues of the magazine, or no covers, as we use the latest cover image to get to the magazine folder. Without that info we need to find another way of linking the magazine title to it's folder.

Code-Slave commented 5 years ago

When i switched dockers i messed up mag dir so thats why it found no mags. After i fixed that the scan worked from the main page. This happened when i went in a specific mag (it had issues and covers) and hit library scan. Will test in a bit