Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-url not working??? #11

Closed
fidofido300 opened this issue Jan 17, 2020 · 4 comments
Closed

-url not working??? #11

fidofido300 opened this issue Jan 17, 2020 · 4 comments
Assignees

Comments

@fidofido300
Copy link

Tried The Following command
Javinizer -Path "W:\JAV\Censored-new\A-G\ekw-019" -DestinationPath "W:\JAV\Censored-new\A-G" -Url "https://www.r18.com/videos/vod/movies/detail/-/id=2ekw00019/?i3_ref=search&i3_ord=1"
But I get
[Javinizer] Function started
[Javinizer] Sort path set to: [W:\JAV\Censored-new\A-G\ekw-019]
[Javinizer] Destination path set to: [W:\JAV\Censored-new\A-G]
[Javinizer] (1 of 1) Sorting [EKW019.mp4]
WARNING: [Get-R18Url] Search [EKW-019] not matched on R18/Dmm
WARNING: [Get-R18Url] Search [EKW-019] not matched on R18/Dmm
VERBOSE: [Javinizer] Ended sort on [EKW019.mp4]

Shouldn't this scrape EKW019 ??
Which by the way exist at r18 but not EKW-019
Thanks
2.
3.
4.

Context

Your Environment

  • Module version used:
  • Operating System and PowerShell version:
@jvlflame
Copy link
Collaborator

jvlflame commented Jan 17, 2020

I'm unable to reproduce the error you're receiving in my environment. What version of the module are you using?

Javinizer -Path '.\EKW-019.mp4' -Url "https://www.r18.com/videos/vod/movies/detail/-/id=2ekw00019/?i3_ref=search&i3_ord=1"

Javinizer's regular sort will clean the filename from EKW019.mp4 to EKW-019 before attempting to search for it. Due to that, videos with non-standard naming such as EKW019 on R18 will error out.

To bypass this, you can use the -Strict parameter to read filenames as is.

Make sure the file is named exactly as the DVD ID on R18.com DVD ID: EKW019 -> EKW019.mp4, and then run:

Javinizer -Path "W:\JAV\Censored-new\A-G\ekw-019" -DestinationPath "W:\JAV\Censored-new\A-G" -Strict

@fidofido300
Copy link
Author

fidofido300 commented Jan 18, 2020

Ok! the Command you provided do scrape the movie Thank you!
But
Shouldn't it scrape with the provided url aswell because
Javinizer -Path "W:\JAV\Censored\A-G\ekw-019" -DestinationPath "W:\JAV\Censored-new\A-G" -Url "http://www.javlibrary.com/en/?v=javlilzvsm,https://www.r18.com/videos/vod/movies/detail/-/id=2ekw00019/?i3_ref=search&i3_ord=1,https://www.dmm.co.jp/digital/videoa/-/detail/=/cid=2ekw00019/?i3_ref=search&i3_ord=1" -Multi -Apply
[Javinizer] Function started
[Javinizer] Sort path set to: [W:\JAV\Censored\A-G\ekw-019]
[Javinizer] Destination path set to: [W:\JAV\Censored-new\A-G]
VERBOSE: [Javinizer] Ended sort on [EKW019.mp4]
WARNING: [Get-R18Url] Search [EKW-019] not matched on R18/Dmm
WARNING: [Get-R18Url] Search [EKW-019] not matched on R18/Dmm
VERBOSE: [Javinizer] Sort has completed or has been stopped prematurely; Stopping all running jobs...
VERBOSE: [Javinizer] Ended sort on [EKW019.mp4]
Javinizer -Path "W:\JAV\Censored\A-G\ekw-019" -DestinationPath "W:\JAV\Censored-new\A-G" -Url "http://www.javlibrary.com/en/?v=javlilzvsm,https://www.r18.com/videos/vod/movies/detail/-/id=2ekw00019/?i3_ref=search&i3_ord=1,https://www.dmm.co.jp/digital/videoa/-/detail/=/cid=2ekw00019/?i3_ref=search&i3_ord=1" -Multi -Apply -Strict
[Javinizer] Function started
[Javinizer] Sort path set to: [W:\JAV\Censored\A-G\ekw-019]
[Javinizer] Destination path set to: [W:\JAV\Censored-new\A-G]
VERBOSE: [Javinizer] Ended sort on [EKW019.mp4]
WARNING: [Get-JavlibraryUrl] Search [EKW019] not matched on JAVLibrary
VERBOSE: [Javinizer] Sort has completed or has been stopped prematurely; Stopping all running jobs...
VERBOSE: [Javinizer] Ended sort on [EKW019.mp4]

As you can see the url provided is not used program tries to find the url itself which I think shouldn't do because we already provided it.

Thank You
And I am Using The latest version 1.1.10

@jvlflame
Copy link
Collaborator

When you use the -Url parameter, you need to reference the file directly in the -Path parameter, rather than the directory path. For example:

# This will work
Javinizer -Path "W:\JAV\Censored\A-G\ekw-019\ekw019.mp4" -Url "https://(...)"

# This will NOT work
Javinizer -Path "W:\JAV\Censored\A-G\ekw-019" -Url "https://(...)"

When you reference a directory path in -Path, it will automatically try to run a directory sort which is why it's still trying to search for the url.

In cases like this for single files, you probably wouldn't need to use -Multi. Additionally, -Apply should only be used in cases where you don't want to specify -Path or -DestinationPath in your command.

@fidofido300
Copy link
Author

Ohhh
OK
Thank You!

@jvlflame jvlflame self-assigned this Jan 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants