javinizer / Javinizer

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

[Question] Instructions on how to use the SetOwned functionality #364

Closed nothing2obvi closed 1 year ago

nothing2obvi commented 1 year ago

The GitBook link no longer works so I’m not sure if it could have answered this question.

How can I use the SetOwned functionality? I feel like I used this a few years ago but can't seem to do it again now. I tried to follow the instructions in #127 but can't seem to find one of the values needed (cfduid). I can find useragent, __cf_bm, cf_clearance, PHPSESSID, and session. I googled cfduid and Cloudflare's website says they have deprecated this value.

Your Environment

nothing2obvi commented 1 year ago

I tried installing PowerShell 7.3.4 natively on my Mac, used Javinizer -OpenSettings to find the path for the settings file, and edited that jvSettings.json to include cf_clearance, javlibrary.cookie.session, userid, and useragent. I could not find cf_chl_2, cf_chl_prog, or javdb.cookie.session. Unsure if I need cfduid. In PowerShell I ran the following command on an item that is indeed on JavLibrary and got the subsequent result.

Command:

Javinizer -Path "/path/to/jav/item" -Recurse -SetOwned

Logs:

Line |
  67 |              Write-JVLog -Write:$script:JVLogWrite -LogPath $script:JV …
     |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | [ID-HERE] [Set-JavlibraryOwned] Error occurred when setting owned status
     | for [JAVLIBRARY-LINK-HERE]: [ID-HERE]
     | [Set-JavlibraryOwned] Timed out while setting owned status for
     | [JAVLIBRARY-LINK-HERE]
seeyabye commented 1 year ago

Probably some things have changed since then. Unless you get kicked in with Cloudflare asking to check if you're a bot, you probably can leave those fields empty.

However, I think the current SetOwned is broken, and you will probably need to wait for version 2.5.15. Otherwise, if you're comfortable cloning the current master repo, you can try to manually import it and give it a try.

The documentation has been restored and you can access it from https://javinizer.gitbook.io/docs.

seeyabye commented 1 year ago

Should be resolved from 2.5.15.