Welcome, Guest
Python Scripts for ComicRack

TOPIC: ParseComicPath script hangs comicRack at startup

ParseComicPath script hangs comicRack at startup 3 years 10 months ago #37999

  • boran_blok
  • boran_blok's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Hi,


I'm developing a very simple metadata importer and I'd like to run it on the import of comics.

My basic code works fine when I run it on a Books hook, but hangs ComicRack when run on a ParseComicPath hook.

I found out that even the simpelest script hangs on this ParseComicPath hook, now I'm wondering if the issue lies with me or with ComicRack.

This is the script in question which causes the hang:
import sys

#
# minimal repro case for ParseComicPath hang on startup
#

count = 0

#@Hook  ParseComicPath
def BenAltParseComicPath (path, proposed):
  global count
  print(str(count) + ' path: ' + path)
  count = count + 1

I included a count to see if all items got processed, and apparently they do not.

After 1254 of the 1269 books the hang occurs for me.

This script also causes a hang and is even simpler:
import sys
# miniminimal repro case for ParseComicPath hang on startup

#@Hook  ParseComicPath
def BenAltParseComicPath (path, proposed):
  print(' path: ' + path)

I really dont know what would cause this.

Running the same thing on all books takes a little while, but doesn't cause a hang.
The administrator has disabled public write access.
Time to create page: 0.195 seconds

Who's Online

We have 166 guests and 3 members online