Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
xhamster.com broken site support - new video_id with letters #25789
Comments
|
JChris246 thx for the pull request. I noticed a small problem. Your change cut the video_id, if there is a capital letter. I chanaged the line : but i'm not sure, if this catch to much. Is your expresion extended with capital letters (something like [\da-zA-Z]+) the same expression as \w+ |
Ahhh yess, my bad. I changed the regex to [\dA-z]+ to include capital letters. To answer your question \w+ and [\da-zA-Z]+ are quite similar. However the difference (to my knowledge) is that \w+ will include _. |
Ah, I got it. Thanks for the change and the tip. I think I'm going to read up on the regular expressions AND git. |
|
Please commit the PR, its been 20 days. |
|
still broken in youtube-dl 2020-07-28:
|
Checklist
Verbose log
Description
Trying to download video at this location:
https://de.xhamster.com/videos/skinny-girl-fucks-herself-hard-in-the-forest-xhnBJZx
New URL scheme with letters instead of numbers for the video_id (in the example xhnBJZx). I think this is the problem. Letters are used since 2 days for all new videos.
Tested with Python version 2.7.16 and 3.7.3.
I am not so good at regular expressions and have never made a pull request, but I was able to create a working version of the extractor xhamster.py. But I think it would be better if it was changed by someone who knew about it.