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

[ie/Vbox7] Fix extractor #9100

Merged
merged 7 commits into from Jan 29, 2024
Merged

[ie/Vbox7] Fix extractor #9100

merged 7 commits into from Jan 29, 2024

Conversation

seproDev
Copy link
Collaborator

IMPORTANT: PRs without the template will be CLOSED

Description of your pull request and other information

Workaround for Vbox7 while DASH http ranges are not yet supported. Works by modifying the URL to get direct http and hls urls.

Fixes #1098

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?

@seproDev seproDev added the site-bug Issue with a specific website label Jan 29, 2024
Comment on lines 67 to 70
if '.mp4' in data['src']:
base_url = data['src'].rpartition('_')[0]
else:
base_url = data['src'].rpartition('.')[0]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do some data['src'] values look like?

Copy link
Collaborator Author

@seproDev seproDev Jan 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This depends on the video. As far as I can tell for older videos:
"https://media34.vbox7.com/sl/KWDFgB4GVvBbRXryw8afsw/1706738400/24/249bb972c2/249bb972c2_720.mp4"
For newer videos:
"https://edge349.vbox7.com/sl/SCfALacEV7f-Cbbs7iqbrQ/1706738400/3e/3e18bac5ad/3e18bac5ad.mpd"
For removed/broken(?) videos:
"" or "blank"

@seproDev seproDev merged commit 67bb70c into yt-dlp:master Jan 29, 2024
6 checks passed
@seproDev seproDev deleted the vbox7-hotfix branch January 29, 2024 20:16
FletcherD pushed a commit to FletcherD/yt-dlp that referenced this pull request Feb 14, 2024
'uploader': 'svideteliat_ot_varshava',
'view_count': int,
'timestamp': 1360215023,
'thumbnail': 'https://i49.vbox7.com/design/iconci/png/noimg6.png',
Copy link
Contributor

@dirkf dirkf Feb 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really? noimg6.png isn't a likely name for a useful image (and the image isn't). Should it be filtered out?
I get:

            'thumbnail': 'https://i49.vbox7.com/o/249/249bb972c20.jpg',

and that is an image that looks like a frame of the video.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this to #8968. I am not sure why the API responded like this when I wrote the extractor. Maybe the image took some time to be generated?
We will have to see how many of the videos remain in ~4 days, when the site will supposedly delete most user-generated content.

dirkf added a commit to dirkf/youtube-dl that referenced this pull request Feb 18, 2024


* changes from yt-dlp/yt-dlp#9100 (thx
seproDev):
  - attempt HLS extraction
  - re-enable XFF
  - test `view_count`, `duration` extraction
* improve commenting, error checks
dirkf added a commit to ytdl-org/youtube-dl that referenced this pull request Feb 19, 2024
* changes from yt-dlp/yt-dlp#9100 (thx
seproDev):
  - attempt HLS extraction
  - re-enable XFF
  - test `view_count`, `duration` extraction
* improve commenting, error checks
dirkf added a commit to ytdl-org/ytdl-nightly that referenced this pull request Feb 19, 2024
* changes from yt-dlp/yt-dlp#9100 (thx
seproDev):
  - attempt HLS extraction
  - re-enable XFF
  - test `view_count`, `duration` extraction
* improve commenting, error checks
aalsuwaidi pushed a commit to aalsuwaidi/yt-dlp that referenced this pull request Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site-bug Issue with a specific website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Broken] Vbox7 issues
3 participants