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 extraction of video URLs #8827

Merged
merged 14 commits into from
May 5, 2024
Merged

Conversation

The-MAGI
Copy link
Contributor

The API seems to be gone, but video_player_setup object will contain playervars, with URLs to fetch the format definitions.

IMPORTANT: PRs without the template will be CLOSED

Description of your pull request and other information

Fixes extraction of YouPorn video URLs. The API seems to be gone, but video_player_setup object will contain playervars, with URLs to fetch the format definitions.

Fixes #7967.

Template

Before submitting a pull request make sure you have:

In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check all of the following options that apply:

  • I am the original author of this code and I am willing to release it under Unlicense
  • 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?

The API seems to be gone, but video_player_setup object will contain playervars, with URLs to fetch the format definitions.
@seproDev seproDev added site-bug Issue with a specific website NSFW labels Dec 22, 2023
@bashonly bashonly self-requested a review December 24, 2023 18:29
@seproDev seproDev added the pending-fixes PR has had changes requested label Jan 21, 2024
@seproDev seproDev added the stale-pr PR that has been pending fixes for a long time label Feb 22, 2024
dirkf added a commit to dirkf/youtube-dl that referenced this pull request Mar 8, 2024
* from yt-dlp/yt-dlp#8827
* extract from webpage instead of broken API URL
* thx The-MAGI
dirkf added a commit to dirkf/youtube-dl that referenced this pull request Mar 10, 2024
* from yt-dlp/yt-dlp#8827
* extract from webpage instead of broken API URL
* thx The-MAGI
@dirkf
Copy link
Contributor

dirkf commented Mar 10, 2024

@dirkf
Copy link
Contributor

dirkf commented Apr 9, 2024

This is the failing Linter output (CI log now expired):

$ flake8 yt_dlp/extractor/youporn.py
yt_dlp/extractor/youporn.py:4:1: F401 '..utils.url_or_none' imported but unused
yt_dlp/extractor/youporn.py:98:38: E203 whitespace before ':'
yt_dlp/extractor/youporn.py:101:16: E713 test for membership should be 'not in'
$

dirkf added a commit to dirkf/youtube-dl that referenced this pull request Apr 12, 2024
* from yt-dlp/yt-dlp#8827
* extract from webpage instead of broken API URL
* thx The-MAGI
dirkf added a commit to ytdl-org/youtube-dl that referenced this pull request Apr 22, 2024
* from yt-dlp/yt-dlp#8827
* extract from webpage instead of broken API URL
* thx The-MAGI
dirkf added a commit to ytdl-org/ytdl-nightly that referenced this pull request Apr 22, 2024
* from yt-dlp/yt-dlp#8827
* extract from webpage instead of broken API URL
* thx The-MAGI
github-actions bot added a commit to hellopony/youtube-dl that referenced this pull request Apr 22, 2024
* https://github.com/ytdl-org/youtube-dl:
  [YouPorn] Add playlist extractors * YouPornCategoryIE * YouPornChannelIE * YouPornCollectionIE * YouPornStarIE * YouPornTagIE * YouPornVideosIE,
  [YouPorn] Improve extraction * detect unwatchable videos * improve duration extraction * fix count extraction and support large values * detect and remove SEO spam boilerplate description
  [test/test_download] Support 'playlist_maxcount:count' expected value * parallel to `playlist_mincount' * specify both for a range of playlist lengths * if max < min the test will always fail!
  [YouPorn] Incorporate yt-dlp PR 8827 * from yt-dlp/yt-dlp#8827 * extract from webpage instead of broken API URL * thx The-MAGI
Authored by: bashonly
Authored by: bashonly
Authored by: bashonly
Authored by: bashonly
@bashonly bashonly removed pending-fixes PR has had changes requested stale-pr PR that has been pending fixes for a long time labels May 5, 2024
@bashonly bashonly self-assigned this May 5, 2024
Authored by: bashonly
Authored by: bashonly
Authored by: bashonly
Authored by: bashonly
Authored by: bashonly
Authored by: bashonly
Authored by: bashonly
Authored by: bashonly
@bashonly bashonly merged commit 351368c into yt-dlp:master May 5, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NSFW site-bug Issue with a specific website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

YouPorn extractor not working
5 participants