javinizer / Javinizer

(NSFW) Organize your local Japanese Adult Video (JAV) library
MIT License
593 stars 61 forks source link

Config file gets corrupted randomly #278

Closed gummykage closed 3 years ago

gummykage commented 3 years ago

Expected Behavior

Making changes to settings will commit and be applied.

Current Behavior

Sometimes making changes to settings causes the config file to get corrupted setting some boolean values to null. In this case the Advanced Search in the preview mode has areas that are displayed and not working after corruption occurs.

Steps to Reproduce (for bugs)

Making changes to which scrapers to be used and hitting "Apply" seems to cause this randomly. Seems to happen more often when toggling AVEntertainment, DMM, and JAVLibrary (English one).

Your Environment

image

jvlflame commented 3 years ago

Do you have the tokyohot scrapers in your settings? Those were added in one of the latest releases so if you copy pasted your previous config it might be missing when you updated.

  "scraper.movie.tokyohot": false,
  "scraper.movie.tokyohotja": false,
  "scraper.movie.tokyohotzh": false,
gummykage commented 3 years ago

I downloaded the one from the official release, unzipped it and copied the json settings over.

Didn't modify it. I'm guessing, but maybe the official link one has it missing I'll manually add it to mine.

image

image

gummykage commented 3 years ago

I redownloaded and unzipped. It looks like it was missing.

I added:

"web.sort.manualsearch.tokyohot": false, "web.sort.manualsearch.tokyohotja": false, "web.sort.manualsearch.tokyohotzh": false,

image

image

Resolve this issue. Thanx for all your hardword =D This JAVLibrary having to reenter the cookies and user agent is really annoying... Is there someway to save it? Or does the cookies constantly change?

jvlflame commented 3 years ago

Glad you got it working!

If you enter the cookies, it should persist in your settings and let you scrape for around ~30 minutes. After that the cookies expire and you'll have to enter them again. It's annoying but usually the Cloudflare blocking will go away after a few days.