I have a bad comic in the DB that whenever I try to manage it, it throws a python error. This makes it hard to get rid of! is there another way to clean this one out? No matter what way I go at it in the UI, i can just delete it.
Traceback (most recent call last):
File "C:\Users\mottm\AppData\Local\Programs\Python\Python39\lib\site-packages\cherrypy\_cprequest.py", line 638, in respond
self._do_respond(path_info)
File "C:\Users\mottm\AppData\Local\Programs\Python\Python39\lib\site-packages\cherrypy\_cprequest.py", line 697, in _do_respond
response.body = self.handler()
File "C:\Users\mottm\AppData\Local\Programs\Python\Python39\lib\site-packages\cherrypy\lib\encoding.py", line 223, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "C:\Users\mottm\AppData\Local\Programs\Python\Python39\lib\site-packages\cherrypy\_cpdispatch.py", line 54, in __call__
return self.callable(*self.args, **self.kwargs)
File "G:\mylar3-master\mylar\webserve.py", line 429, in comicDetails
comicImage = "data:image/webp;base64,%s" % mylar.getimage.load_image(coverimage, 263)
File "G:\mylar3-master\mylar\getimage.py", line 217, in load_image
img = Image.open( BytesIO( imagefile) )
File "C:\Users\mottm\AppData\Local\Programs\Python\Python39\lib\site-packages\PIL\Image.py", line 2994, in open
im = _open_core(fp, filename, prefix, formats)
File "C:\Users\mottm\AppData\Local\Programs\Python\Python39\lib\site-packages\PIL\Image.py", line 2980, in _open_core
im = factory(fp, filename)
File "C:\Users\mottm\AppData\Local\Programs\Python\Python39\lib\site-packages\PIL\JpegImagePlugin.py", line 799, in jpeg_factory
im = JpegImageFile(fp, filename)
File "C:\Users\mottm\AppData\Local\Programs\Python\Python39\lib\site-packages\PIL\ImageFile.py", line 112, in __init__
self._open()
File "C:\Users\mottm\AppData\Local\Programs\Python\Python39\lib\site-packages\PIL\JpegImagePlugin.py", line 379, in _open
handler(self, i)
File "C:\Users\mottm\AppData\Local\Programs\Python\Python39\lib\site-packages\PIL\JpegImagePlugin.py", line 65, in APP
s = ImageFile._safe_read(self.fp, n)
File "C:\Users\mottm\AppData\Local\Programs\Python\Python39\lib\site-packages\PIL\ImageFile.py", line 553, in _safe_read
raise OSError("Truncated File Read")
OSError: Truncated File Read
Comic named Superman/Wonder Woman crashes mylar
-
- Posts: 139
- Joined: Sat Jan 02, 2016 9:19 pm
- evilhero
- Site Admin
- Posts: 2883
- Joined: Sat Apr 20, 2013 3:43 pm
- Contact:
Re: Comic named Superman/Wonder Woman crashes mylar
Have you tried going to the Manage / Manage Comics page ? You should be able to delete it from there...
If you can't - there are probably 2 other methods you can try (assuming the comicid is 68150):
- call it via the delComic API endpoint:
- browse to : http://localhost:8090/deleteseries?ComicID=68150
If you call it via the API, you should get a message displayed back in the browser window as to the success - You'd then have to browse manually back to the mylar interface (as this is API, so not built for GUI usage)
If you use the 2nd method, I believe it might actually break on the GUI itself and then reload the main index page - but can't guarantee as again, it's built to be used via the GUI
But either method will delete the given series, it's just possible that you won't get an on-screen confirmation and you'll have to verify it manually after the fact.
If you can't - there are probably 2 other methods you can try (assuming the comicid is 68150):
- call it via the delComic API endpoint:
Code: Select all
http://localhost:8090/api?apikey=XXX&cmd=delComic&id=68150
If you call it via the API, you should get a message displayed back in the browser window as to the success - You'd then have to browse manually back to the mylar interface (as this is API, so not built for GUI usage)
If you use the 2nd method, I believe it might actually break on the GUI itself and then reload the main index page - but can't guarantee as again, it's built to be used via the GUI
But either method will delete the given series, it's just possible that you won't get an on-screen confirmation and you'll have to verify it manually after the fact.
-
- Posts: 139
- Joined: Sat Jan 02, 2016 9:19 pm
Re: Comic named Superman/Wonder Woman crashes mylar
Ok, that worked with the API key. The two annuals remain though and the comic vine name listed doesn't seem to work or is correct. I'll dig a bit more
-
- Posts: 139
- Joined: Sat Jan 02, 2016 9:19 pm
Re: Comic named Superman/Wonder Woman crashes mylar
It appears a reboot and restart also cleared the annuals. Im all set, thanks Evil!