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

[YouPorn] Fix and improve extraction; add playlist extraction #32740

Merged
merged 4 commits into from
Apr 22, 2024

Conversation

dirkf
Copy link
Contributor

@dirkf dirkf commented Mar 10, 2024

Boilerplate: own/yt-dlp code, bug fix/improvement

Please follow the guide below

  • You will be asked some questions, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your pull request (like that [x])
  • Use Preview tab to see how your pull request will actually look like

Before submitting a pull request make sure you have:

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

  • I am the original author of this code and I am willing to release it under Unlicense, except for code taken from yt-dlp for which this or the below have already been asserted
  • I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

  • Bug fix
  • Improvement
  • New extractor
  • New feature

Description of your pull request and other information

This PR aligns the YouPorn extractor with yt-dlp extractor and fixes the problem reported in yt-dlp/yt-dlp#7967. It also adds playlist extractors.

Summary of changes to the YouPornIE ezxtractor:

The playlist extractors are:

  • YouPornCategoryIE
  • YouPornChannelIE
  • YouPornCollectionIE
  • YouPornStarIE
  • YouPornTagIE
  • YouPornVideosIE

The site's processing of playlist URLs appears to be broken in various ways, especially for tags. A work-around is included to delay and retry in case a tag page is empty or appears to be the same as the last page fetched, with which the extractor seems robust.

@dirkf dirkf changed the title Df youporn extractor ovrhaul [YouPorn] Fix and improve extraction Mar 10, 2024
dirkf added 2 commits April 7, 2024 15:34
* from yt-dlp/yt-dlp#8827
* extract from webpage instead of broken API URL
* thx The-MAGI
* parallel to `playlist_mincount'
* specify both for a range of playlist lengths
* if max < min the test will always fail!
@dirkf dirkf force-pushed the df-youporn-extractor-ovrhaul branch 2 times, most recently from 53d0f6c to 5c9636c Compare April 12, 2024 11:39
dirkf added 2 commits April 12, 2024 13:03
* detect unwatchable videos
* improve duration extraction
* fix count extraction and support large values
* detect and remove SEO spam boilerplate description
* YouPornCategoryIE
* YouPornChannelIE
* YouPornCollectionIE
* YouPornStarIE
* YouPornTagIE
* YouPornVideosIE,
@dirkf dirkf force-pushed the df-youporn-extractor-ovrhaul branch from 5c9636c to f66e450 Compare April 12, 2024 12:03
@dirkf dirkf changed the title [YouPorn] Fix and improve extraction [YouPorn] Fix and improve extraction; add playlist extraction Apr 12, 2024
@dirkf dirkf merged commit 668332b into ytdl-org:master Apr 22, 2024
14 checks passed
@dirkf
Copy link
Contributor Author

dirkf commented May 2, 2024

If your program is yt-dlp, it won't (yet) have this PR code. Review #30839 and the yt-dlp home page.

Regarding last week, blame GH devs for over-enthusiastically relative time display. You can see the exact timestamp by viewing the source if hover isn't available (but failing to map the hover action is an issue for the mobile browser devs).

@GfEW
Copy link

GfEW commented May 6, 2024

It turns out I'd initially confused youtube-dl with yt-dlp. Yesterday, the fix has been merged into the latter.
Sorry to involve you in this pointless conversation - and thanks for all the code! <3

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

Successfully merging this pull request may close these issues.

2 participants