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

Don't download from xvideos #60

Open
VanTuz5 opened this issue Dec 13, 2021 · 24 comments
Open

Don't download from xvideos #60

VanTuz5 opened this issue Dec 13, 2021 · 24 comments

Comments

@VanTuz5
Copy link

VanTuz5 commented Dec 13, 2021

image

@javidsho
Copy link
Contributor

Could you provide more information about the scenario here?
Also, please use the desktop app v4.1 since tests are passing for xvideos.

@VanTuz5
Copy link
Author

VanTuz5 commented Dec 13, 2021

Where can I find it?

@javidsho
Copy link
Contributor

I'm currently uploading a new release, wait a few minutes please.

@VanTuz5
Copy link
Author

VanTuz5 commented Dec 13, 2021

Ok, thanks

@javidsho
Copy link
Contributor

@VanTuz5
Copy link
Author

VanTuz5 commented Dec 13, 2021

Still not downloading. I paste the link from xvideos, click download, and I am offered to download ts file, but nothing is downloaded and this error appears.

@javidsho
Copy link
Contributor

This is weird. I found the video and I could easily download the video. Can you view the video in your browser?

Here's the URL I tried and worked:
https://www.xvideos.com/video66511813/futa_fun_at_work_2_full_sounds

@VanTuz5
Copy link
Author

VanTuz5 commented Dec 13, 2021

image

@javidsho
Copy link
Contributor

Are you a developer yourself? Can you debug and see what's causing this problem?
Also try downloading another quality.

image

@VanTuz5
Copy link
Author

VanTuz5 commented Dec 13, 2021

Nope. And I tried to download another quality - result the same.

@javidsho
Copy link
Contributor

Did you try your browser? It could be because your IP or region is restricted or something like that.

@VanTuz5
Copy link
Author

VanTuz5 commented Dec 13, 2021

Yes, I checked, there are no problems with opening the site.

@javidsho
Copy link
Contributor

Unfortunately I can't track down the problem with the information I have. I can't solve your problem today, and it won't be possible unless a diagnosis system is implemented in SharpGrabber.

@antineasoftware
Copy link

try this before call the lib.

Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;

@javidsho
Copy link
Contributor

Were you having the same problem?
If so, would you please submit a merge request?

@stewbuslo
Copy link

I have the same problem. Maybe FFMPEG is a cause of this error?

@javidsho
Copy link
Contributor

javidsho commented Nov 7, 2022

@stewbuslo Don't think so. You'd need to debug and see where this error is coming from since I cannot reproduce this bug. What string is passed to what method which had led to the 'Input string was not in a correct format' error?
If you tell me about the string and the exact file and line number that this happens I might be able to help or fix the bug.

@hswlab
Copy link

hswlab commented May 22, 2023

I'm not sure if this is the same issue that I noticed recentliy. Some URI's seems to be not supported. For these uris, the Id has less than 8 digits. Could it possibly be due to a regex check whitch is not matching on the video-Id?

Edit:
It is really hard to find an example URL with less than 8 digits. I found here a URL with 7 digits that can not be successfully validated by the grabber. "video1605676/blonde_teen_uspkirt_with_no_panties"

I suspect the problem from the thread creator is different though. In his example the id has 8 digits.

@javidsho
Copy link
Contributor

I'm not sure if this is the same issue that I noticed recentliy. Some URI's seems to be not supported. For these uris, the Id has less than 8 digits. Could it possibly be due to a regex check whitch is not matching on the video-Id?

Edit: It is really hard to find an example URL with less than 8 digits. I found here a URL with 7 digits that can not be successfully validated by the grabber. "video1605676/blonde_teen_uspkirt_with_no_panties"

I suspect the problem from the thread creator is different though. In his example the id has 8 digits.

Have you tried debugging it?

@hswlab
Copy link

hswlab commented May 22, 2023

The error message is comming from the url validation of the sharp grabber library. I'm currently using my own implementation of the User Interface and need to download the Grabber Desktop Project first for debugging. I can tell you tomorrow where the problem is exactly located.

By the way, I'm using the sharp grabber project to learn how you can download videostreams, Thank you very much for your Work :)

My own prototype helps me to test my learning progress. It is currently only support xvideos links.
https://github.com/hswlab/dist-pronothek

My goal is to implement a downloader for my favorite Websites, where I couldn't find a working Video Downloader yet. :)

@hswlab
Copy link

hswlab commented May 23, 2023

Oh man, I'm very sorry. I debugged this URL now with your desktop application but I could't find any problem. It works just fine. This seems to be a problem with my own implementation. I added some additional detection logic to detect also urls directly from the preview images on the profile sites. This additional code makes usually an url transformation in a format that sharp grabber can handle, but in my case the transformation was going wrong and passed a bad url to sharp grabber. So in this case I have to fix it myself, sorry^^'

I also remembered that from time to time there is an error with the following line.
SharpGrabber.Adult\XnxxGrabber.cs line 58

// grab resources
var hls = paramMap["VideoHLS"] as string;

This happens only sometimes for a certain period of time, then suddenly it works again. Apparently the hls info is missing when parsing the page and is therefore missing in the array. Could this probably be the problem of the thread creator? That the hls url was just not available in the html for grabbing it?

I am not sure why this happens. Maybe xvideos is doing maintenance on the site, or something similar.

@javidsho
Copy link
Contributor

Not sure really and currently I don't have enough free time to dig into it. It'd be nice if you could find a pattern and debug it :) I suggest writing a quick and dirty logger to log the source HTML file so you can examine what was responded by the server.

@hswlab
Copy link

hswlab commented May 24, 2023

I already have a suspicion why this happens. After all, I made so many requests for testing during development, that hd videos were probably blocked for me for a while. Google does it with their API's in a similar way :-)

Well, if this problem should occur again, I will make a text copy of the response. Then there would be at least something to test with :)

@hswlab
Copy link

hswlab commented Jun 5, 2023

I added an example of the content result in the attachment. This causes the following "Grab error".
NO HLS RESULT.txt
image

It seems that the paramMap has no such key "VideoHLS" in
\SharpGrabber.Adult\XnxxGrabber.cs
func: InternalGrabAsync (row58)
image

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

5 participants