Nothing Special   »   [go: up one dir, main page]

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

Add fragment_query generic extractor arg for DASH and native HLS #5528

Merged
merged 6 commits into from
Nov 21, 2022

Conversation

bashonly
Copy link
Member
@bashonly bashonly commented Nov 13, 2022

Some DASH and HLS streams require the query from the manifest URL to be appended to its segment/fragment URLs as well, even if the segment/fragment URLs listed in the media playlist or manifest do not have any query.

A couple examples:
#4786 (comment)
#5604

This PR:

  • Adds support to the DASH downloader for query passthrough to fragments via the info_dict field extra_param_to_segment_url(the native HLS downloader already supported this)
  • Adds an extractor arg for the GenericIE, fragment_query, which when passed will add the manifest URL's query to the info_dict's extra_param_to_segment_url field

Usage: yt-dlp --extractor-args generic:fragment_query "GENERIC_M3U8_OR_MPD_URL"

Unfortunately this will not work with ffmpeg.

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 one of the following options:

  • 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?

@bashonly bashonly mentioned this pull request Nov 14, 2022
10 tasks
yt_dlp/extractor/generic.py Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
yt_dlp/extractor/generic.py Outdated Show resolved Hide resolved
@pukkandan pukkandan added the enhancement New feature or request label Nov 20, 2022
@bashonly bashonly changed the title [extractor/generic] Add hls_segment_query extractor arg Add fragment_query generic extractor arg for DASH and native HLS Nov 20, 2022
@bashonly bashonly merged commit 3b021ea into yt-dlp:master Nov 21, 2022
@bashonly bashonly deleted the feature/generic-hls-query branch November 21, 2022 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants