evilhero / mylar

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

Uncaught exception error #2410

Closed shaunvis closed 3 years ago

shaunvis commented 4 years ago

Everything was working fine until the past few days. Nothing changed or was updated but now I'm getting this error. Any ideas?

Uncaught exception: Traceback (most recent call last): File "/app/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 "/app/mylar/mylar/PostProcessor.py", line 403, in Process filelist = flc.listFiles() File "/app/mylar/mylar/filechecker.py", line 147, in listFiles runresults = self.parseit(self.dir, filename, filedir) File "/app/mylar/mylar/filechecker.py", line 353, in parseit tmpfilename = re.sub(i, 'XCV', tmpfilename) File "/usr/lib/python2.7/re.py", line 155, in sub return _compile(pattern, flags).sub(repl, string, count) File "/usr/lib/python2.7/re.py", line 251, in _compile raise error, v # invalid expression error: unbalanced parenthesis

evilhero commented 4 years ago

Please follow the issue template and include a debug log showing what occurs prior to the error.

shaunvis commented 4 years ago

I forgot about debug logs, thanks. Turning that on & digging through it helped me figure it out.

Just an FYI since this is odd, it was caused by a folder in my completed folder folder. When Mylar went to grab things it downloaded or if I did a manual import, it saw the folder (Folder name: "Pleasuredome Rules") and freaked out. I deleted that folder and everything started working again.

evilhero commented 4 years ago

If there were filenames within that folder, odds are it was one of the naming conventions in there that was causing it to parse it incorrectly.

If you could pass along the name of the file it was trying to parse and died on, I can figure out why it died and attempt to fix things for future use.

shaunvis commented 4 years ago

Here's the sections it got hung on. The folder just had some pdfs in it, "ReadMe (Dansk).pdf", ReadMe (Ελληνικά).pdf, etc..

Let me know if you need more info

31-Jan-2020 15:13:03 - DEBUG :: mylar.parseit.230 : Thread-14 : [SUB-PATH] Checking Folder Name for more information. 31-Jan-2020 15:13:03 - DEBUG :: mylar.parseit.232 : Thread-14 : [SUB-PATH] Original Path : /SabComplete 31-Jan-2020 15:13:03 - DEBUG :: mylar.parseit.233 : Thread-14 : [SUB-PATH] Sub-directory : /SabComplete/Pleasuredome Rules 31-Jan-2020 15:13:03 - DEBUG :: mylar.parseit.246 : Thread-14 : [SUB-PATH] subpath set to : Pleasuredome Rules 31-Jan-2020 15:13:03 - DEBUG :: mylar.parseit.433 : Thread-14 : NEWLY SPLIT REORGD: ['ReadMe', '(Dansk)'] 31-Jan-2020 15:13:03 - DEBUG :: mylar.parseit.803 : Thread-14 : datecheck: [] 31-Jan-2020 15:13:03 - DEBUG :: mylar.parseit.853 : Thread-14 : No year present within title - ignoring as a variable. 31-Jan-2020 15:13:03 - DEBUG :: mylar.parseit.856 : Thread-14 : highest_series_position: 2 31-Jan-2020 15:13:03 - DEBUG :: mylar.parseit.953 : Thread-14 : issue_position: 2 31-Jan-2020 15:13:03 - INFO :: mylar.parseit.968 : Thread-14 : No issue number present in filename. 31-Jan-2020 15:13:03 - DEBUG :: mylar.parseit.1105 : Thread-14 : sf_highest_series_pos: ['ReadMe', '(Dansk)'] 31-Jan-2020 15:13:03 - DEBUG :: mylar.parseit.1150 : Thread-14 : series title possibly: ReadMe (Dansk) 31-Jan-2020 15:13:03 - INFO :: mylar.parseit.1189 : Thread-14 : Possible UKNOWN TPB/GN detected - no issue number present, no clarification in filename, but volume present with series title 31-Jan-2020 15:13:03 - DEBUG :: mylar.listFiles.146 : Thread-14 : [FILENAME]: ReadMe (Ελληνικά).pdf 31-Jan-2020 15:13:03 - DEBUG :: mylar.parseit.228 : Thread-14 : [CORRECTION] Sub-directory found. Altering path configuration. 31-Jan-2020 15:13:03 - DEBUG :: mylar.parseit.230 : Thread-14 : [SUB-PATH] Checking Folder Name for more information. 31-Jan-2020 15:13:03 - DEBUG :: mylar.parseit.232 : Thread-14 : [SUB-PATH] Original Path : /SabComplete 31-Jan-2020 15:13:03 - DEBUG :: mylar.parseit.233 : Thread-14 : [SUB-PATH] Sub-directory : /SabComplete/Pleasuredome Rules 31-Jan-2020 15:13:03 - DEBUG :: mylar.parseit.246 : Thread-14 : [SUB-PATH] subpath set to : Pleasuredome Rules

evilhero commented 4 years ago

@TheFirstAv3nger this unfortunately has nothing to do with the original poster's post, which was dealing with manual post-processing, not downloading an item using DDL. Topics have to remain on topic, or else they'll get lost in the shuffle and never responded to.

Please submit a new issue ticket with the relevant information as per the issue template, and please remember to include debug logs along with it (it saves us having to just ask for them, cause looking at what you posted, I'd ask for them before anything else).