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

[extractors/rtvc] Add extractors #6578

Merged
merged 23 commits into from Apr 24, 2023
Merged

[extractors/rtvc] Add extractors #6578

merged 23 commits into from Apr 24, 2023

Conversation

elyse0
Copy link
Contributor

@elyse0 elyse0 commented Mar 20, 2023

IMPORTANT: PRs without the template will be CLOSED

Description of your pull request and other information

This PR add extractors for RTVC Play and some subdomains needed for embeded players like https://www.senalcolombia.tv/senal-en-vivo

Fixes #6457

SenalColombiaLiveIE

[debug] Command-line config: ['https://www.senalcolombia.tv/senal-en-vivo', '--verbose', '-F']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.03.04 [392389b7d] (source)
[debug] Lazy loading extractors is disabled
[debug] Git HEAD: 7de39a252
[debug] Python 3.10.7 (CPython x86_64 64bit) - Linux-5.19.0-35-generic-x86_64-with-glibc2.36 (OpenSSL 3.0.5 5 Jul 2022, glibc 2.36)
[debug] exe versions: ffmpeg N-108931-g4dda3b1653-20221104 (setts), ffprobe N-108931-g4dda3b1653-20221104, phantomjs broken, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.15.0, certifi-2022.09.24, mutagen-1.46.0, sqlite3-2.6.0, websockets-10.4
[debug] Proxy map: {}
[debug] Loaded 1792 extractors
[SenalColombiaLive] Extracting URL: https://www.senalcolombia.tv/senal-en-vivo
[SenalColombiaLive] senal-en-vivo: Downloading webpage
[RTVCKaltura] Extracting URL: https://media.rtvc.gov.co/kalturartvc/indexSC.html
[RTVCKaltura] indexSC: Downloading webpage
[RTVCKaltura] indexSC: Downloading m3u8 information
[RTVCKaltura] indexSC: Downloading JSON metadata
[RTVCKaltura] indexSC: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[info] Available formats for indexSC:
ID     EXT RESOLUTION │   TBR PROTO │ VCODEC    VBR ACODEC  ABR
───────────────────────────────────────────────────────────────
500-0  mp4 unknown    │  500k m3u8  │ unknown  500k unknown  0k
500-1  mp4 unknown    │  500k m3u8  │ unknown  500k unknown  0k
3500-0 mp4 unknown    │ 3500k m3u8  │ unknown 3500k unknown  0k
3500-1 mp4 unknown    │ 3500k m3u8  │ unknown 3500k unknown  0k

RTVCPlay

[debug] Command-line config: ['https://www.rtvcplay.co/peliculas-documentales/llinas-el-cerebro-y-el-universo', '--verbose', '-F']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.03.04 [392389b7d] (source)
[debug] Lazy loading extractors is disabled
[debug] Git HEAD: 7de39a252
[debug] Python 3.10.7 (CPython x86_64 64bit) - Linux-5.19.0-35-generic-x86_64-with-glibc2.36 (OpenSSL 3.0.5 5 Jul 2022, glibc 2.36)
[debug] exe versions: ffmpeg N-108931-g4dda3b1653-20221104 (setts), ffprobe N-108931-g4dda3b1653-20221104, phantomjs broken, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.15.0, certifi-2022.09.24, mutagen-1.46.0, sqlite3-2.6.0, websockets-10.4
[debug] Proxy map: {}
[debug] Loaded 1792 extractors
[RTVCPlay] Extracting URL: https://www.rtvcplay.co/peliculas-documentales/llinas-el-cerebro-y-el-universo
[RTVCPlay] llinas-el-cerebro-y-el-universo: Downloading webpage
[download] Downloading playlist: Llinás, el cerebro y el universo
[RTVCPlay] Playlist Llinás, el cerebro y el universo: Downloading 3 items of 3
[download] Downloading item 1 of 3
[RTVCPlay] Extracting URL: https://www.rtvcplay.co/peliculas-documentales/llinas-el-cerebro-y-el-universo/llinas-cerebro-universo
[RTVCPlay] llinas-cerebro-universo: Downloading webpage
[RTVCPlay] llinas-cerebro-universo: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[info] Available formats for llinas-cerebro-universo:
ID  EXT RESOLUTION │  TBR PROTO │ VCODEC   VBR ACODEC  ABR
──────────────────────────────────────────────────────────
270 mp4 unknown    │ 270k m3u8  │ unknown 270k unknown  0k
360 mp4 unknown    │ 360k m3u8  │ unknown 360k unknown  0k
720 mp4 unknown    │ 720k m3u8  │ unknown 720k unknown  0k
[download] Downloading item 2 of 3
[RTVCPlay] Extracting URL: https://www.rtvcplay.co/peliculas-documentales/llinas-el-cerebro-y-el-universo/concierto-cerebro
[RTVCPlay] concierto-cerebro: Downloading webpage
[RTVCPlay] concierto-cerebro: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[info] Available formats for concierto-cerebro:
ID  EXT RESOLUTION │  TBR PROTO │ VCODEC   VBR ACODEC  ABR
──────────────────────────────────────────────────────────
270 mp4 unknown    │ 270k m3u8  │ unknown 270k unknown  0k
360 mp4 unknown    │ 360k m3u8  │ unknown 360k unknown  0k
720 mp4 unknown    │ 720k m3u8  │ unknown 720k unknown  0k
[download] Downloading item 3 of 3
[RTVCPlay] Extracting URL: https://www.rtvcplay.co/peliculas-documentales/llinas-el-cerebro-y-el-universo/llinas-audio-descriptivo-lenguaje-senas
[RTVCPlay] llinas-audio-descriptivo-lenguaje-senas: Downloading webpage
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?

yt_dlp/extractor/rtvcplay.py Outdated Show resolved Hide resolved
yt_dlp/extractor/rtvcplay.py Show resolved Hide resolved
yt_dlp/extractor/rtvcplay.py Outdated Show resolved Hide resolved
yt_dlp/extractor/rtvcplay.py Outdated Show resolved Hide resolved
yt_dlp/extractor/rtvcplay.py Outdated Show resolved Hide resolved
yt_dlp/extractor/rtvcplay.py Outdated Show resolved Hide resolved
if not podcast_episodes:
raise ExtractorError('Could not find asset_id nor program playlist nor podcast episodes')

return self.playlist_result([self.url_result(episode['file'], **traverse_obj(episode, {
Copy link
Member

@bashonly bashonly Mar 21, 2023

Choose a reason for hiding this comment

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

url_transparent=True, right? or else the entry metadata being passed is only for --flat-playlist?

Also, the test URL https://www.rtvcplay.co/series-al-oido/diez-versiones has its playlist result handed off to the generic extractor because the URLs are direct mp3 links. Should we be returning info_dict entries instead of url_results here?

Copy link
Contributor Author

@elyse0 elyse0 Mar 22, 2023

Choose a reason for hiding this comment

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

Yep we could, I'll fix this

Maybe it's better like this because we don't have an id for the entry, at least Generic uses the filename

yt_dlp/extractor/rtvcplay.py Outdated Show resolved Hide resolved
yt_dlp/extractor/rtvcplay.py Outdated Show resolved Hide resolved
@bashonly bashonly added site-request Request to support a new website pending-fixes PR has had changes requested labels Mar 21, 2023
elyse0 and others added 10 commits March 21, 2023 13:22
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
elyse0 and others added 2 commits March 21, 2023 21:03
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
@bashonly bashonly removed the pending-fixes PR has had changes requested label Mar 22, 2023
@denaunistic
Copy link

@bashonly This can be merged or changes are still pending?

@elyse0
Copy link
Contributor Author

elyse0 commented Apr 23, 2023

@denaunistic In the meantime you could load these extractors (rtvcplay.py, senalcolombia.py) as a plugin

https://github.com/yt-dlp/yt-dlp#plugins

@bashonly bashonly requested a review from pukkandan April 23, 2023 22:22
@bashonly
Copy link
Member

@bashonly This can be merged or changes are still pending?

needs a review from the maintainer-in-chief before it can be merged

@bashonly bashonly merged commit 9b30cd3 into yt-dlp:master Apr 24, 2023
11 checks passed
aalsuwaidi pushed a commit to aalsuwaidi/yt-dlp that referenced this pull request Apr 21, 2024
* Add `RTVCPlay` extractor
* Add `RTVCPlayEmbed` extractor
* Add `RTVCKaltura` extractor
* Add `SenalColombiaLive` extractor

Closes yt-dlp#6457
Authored by: elyse0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site-request Request to support a new website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Señalcolombia.tv
5 participants