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

[bbc] Get all available formats, deprioritize audio description #1717

Merged
merged 2 commits into from Nov 19, 2021

Conversation

0xallie
Copy link
Contributor

@0xallie 0xallie commented Nov 19, 2021

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

  • Bug fix
  • Improvement
  • New extractor
  • New feature

Description of your pull request and other information

Audio description is available in a separate manifest which is (at least sometimes) SD only. Sometimes BBC iPlayer will mistakenly mark it as the default format too.

Example:

yt-dlp --playlist-items 1 -F "https://www.bbc.co.uk/iplayer/episodes/p09twdp8/showtrial?seriesId=p09twdth"

I've changed the extractor to return all available formats, add the types field to format notes, and deprioritize audio described tracks.

Note: In this example audio description is tagged as DubbedAudioDescribed, but I check if the type contains AudioDescribed anywhere like get_iplayer does just in case.

Audio description is available in a separate manifest which is SD only.
Sometimes BBC iPlayer will mistakenly mark it as the default format too.

Example:

yt-dlp --playlist-items 1 -F "https://www.bbc.co.uk/iplayer/episodes/p09twdp8/showtrial?seriesId=p09twdth"

I've changed the extractor to return all available formats, add the
"types" field to format notes, and deprioritize audio described tracks.
yt_dlp/extractor/bbc.py Outdated Show resolved Hide resolved
yt_dlp/extractor/bbc.py Outdated Show resolved Hide resolved
@pukkandan pukkandan added the site-enhancement Feature request for some website label Nov 19, 2021
@pukkandan pukkandan merged commit c45b874 into yt-dlp:master Nov 19, 2021
gaming-hacker added a commit to gaming-hacker/yt-dlp that referenced this pull request Nov 23, 2021
* commit 'ff51ed588fa75256b98ead67bdef7edda08b66f0': (45 commits)
  Clarify video/audio-only formats in -F Related: yt-dlp#1759
  [jsinterp] Fix splice to handle float Needed for new youtube js player f1ca6900 Closes yt-dlp#1767
  [tv2] Expand valid URL Closes yt-dlp#1764
  [sbs] Fix for movies and livestreams Closes yt-dlp#1640
  [itv] Fix for Python 3.6/3.7 Closes yt-dlp#1758
  [extractor] Extract `average_rating` from JSON-LD Eg: Crunchyroll
  [ARDBetaMediathek] Handle new URLs Adapted from ytdl-org/youtube-dl@8562218 Closes yt-dlp#1601
  Ensure path for link files exists (yt-dlp#1755) Authored by: Zirro
  [mediaklikk] Expand valid URL Partial fix for yt-dlp#1409
  [vimeo] Add fallback for config URL Closes yt-dlp#1662
  [downloader/ffmpeg] Fix for direct videos inside mpd manifests Closes yt-dlp#1751
  [WDR] Expand valid URL Closes yt-dlp#1749
  [xvideos] Detect embed URLs (yt-dlp#1729)
  [CozyTV] Add extractor (yt-dlp#1727)
  [willow] Add extractor (yt-dlp#1723)
  Fix `--check-formats` for `mhtml` Closes yt-dlp#1709
  [utils] Fix error when copying `LazyList`
  [utils] Fix `PagedList` Bug in d8cf8d9
  [utils] Allow alignment in `render_table` and add tests
  [bbc] Get all available formats (yt-dlp#1717)
  ...

# Conflicts:
#	README.md
#	yt_dlp/utils.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site-enhancement Feature request for some website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants