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

Support for online channel M3 on MTVA Archívum (HU) #21430

Open
5 tasks done
RevSnowfox opened this issue Jun 17, 2019 · 2 comments · May be fixed by #32589
Open
5 tasks done

Support for online channel M3 on MTVA Archívum (HU) #21430

RevSnowfox opened this issue Jun 17, 2019 · 2 comments · May be fixed by #32589
Labels
Good first issue An issue that should be easier to solve site-support-request Add extractor(s) for a new domain

Comments

@RevSnowfox
Copy link

RevSnowfox commented Jun 17, 2019

Checklist

  • I'm reporting a new site support request
  • I've verified that I'm running youtube-dl version 2019.06.08
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that none of provided URLs violate any copyrights
  • I've searched the bugtracker for similar site support requests including closed ones

Example URLs

Description

MTVA (Media Services and Support Trust Fund) is Hungary's state-owned national public-service broadcasting organization, and it's the successor of MTV (state television service) and MR (state radio service). Its archives provide paid access to media, but they recently incorporated the public channel M3.
M3 was an archive channel airing old programming from MTVA's archives, but as of June 1, 2019, it stopped airing as a traditional TV station, and became an online station on MTVA's archive site:
https://archivum.mtva.hu/m3/

According to the site, M3 now follows an online airing schedule where there is a currently airing program, and any program in the schedule is available for 2 hours prior and 8 hours after streaming, giving a 10-hour window for people to access and replay a certain program which is on the schedule.
There are (Hungarian) subtitles provided at least for some of the programs.
On the video pages, the titles are displayed like this:
Lejátszóban: (In the player:)
[program title]
[episode title]

The links provided were available and playable at the time of filing this request.
The programs are available without a registration, and I don't know if the site uses georestriction.

@RevSnowfox RevSnowfox added the site-support-request Add extractor(s) for a new domain label Jun 17, 2019
@a-sync
Copy link

a-sync commented Jul 27, 2019

Url pattern: https://archivum.mtva.hu/m3/*
eg:
https://archivum.mtva.hu/m3/M3-K0VSbHU3Z2JUcWJQK0VjL3RQOVBxb3BYaEZMS3hOZW1wSktmWEhiSmYraz0

Parsable infos in document:

video id

var ACTIVE = "M3-87130999959999A59";

title

<meta property="og:title" content="Mirr-Murr kandúr kalandjai - IV. Sorozat" />

sub-title / episode name (if it exists, it can be concated to the title with space or dash)

<h6 class="active-subtitle hidden">Tengerparti napsütés</h6>
Some other meta that that might be useful 👇
<meta property="og:url" content="https://archivum.mtva.hu/m3/M3-K0VSbHU3Z2JUcWJQK0VjL3RQOVBxb3BYaEZMS3hOZW1wSktmWEhiSmYraz0" />

<meta property="og:site_name" content="MTVA Archívum"/>
<meta property="og:type" content="article" />
<meta property="og:title" content="Mirr-Murr kandúr kalandjai - IV. Sorozat" />
<meta property="og:description" content="Mirr-Murr nagyon vágyik a "tengerparti napsütésre", ezért az egerek nagy szívességet tesznek neki..." />
<meta property="og:image" content="https://archivum.mtva.hu/images/m3/M3-87130999959999A59" />
<meta property="og:image:width" content="1000" />
<meta property="og:image:height" content="1000" />
<link rel="icon" href="https://archivum.mtva.hu/public/img/logo_100_100.png" type="image/x-icon"/>
<link rel="shortcut icon" href="https://archivum.mtva.hu/public/img/logo_100_100.png" type="image/x-icon"/>

Requesting the m3u8 / hls url

A get request must be made to the following url, with the video id.
https://archivum.mtva.hu/m3/stream?no_lb=1&target=M3-87130999959999A59

This returns a nice json, with the url:

{
  "source": "nava",
  "url": "https://stream5.nava.hu/m3_vod/_definst_/amlst:M3-87130999959999A59/playlist.m3u8?type=m3u8&sessid=rwuyue9xdp8yvcek1ula6n49u870df376guqwmq1g7t25xj6g8npdkucsvup305t&lb=rxmD1FPZ8PKJhtRUi1RX6UbE%2B4NSjIBAujqvNjlanxV%2FAfUImxITGHPJ%2FS01nWIl4vNNO8rshPKI%0D%0AxH5sEpHThQ%3D%3D%0D%0A",
  "token": "kwuyuyvec1e9xdp8yula6n49u870df376guqwgq1g7t25xj6m8npdkucsvup305t"
}

All requests need a believable user-agent header.

Subtitles are also available via the video id in srt format:
https://archivum.mtva.hu/subtitle/M3-87130999959999A59.srt

Running the response url with youtube-dl successfully downloads the video.

@dirkf
Copy link
Contributor

dirkf commented Apr 13, 2023

I find:

stream5.nava.hu uses an invalid security certificate.

The certificate is only valid for the following names: *.digitfilm.net, digitfilm.net

The certificate expired on 9 September 2021, 00:59. The current time is 13 April 2023, 10:14. 

However this URL returned using the procedure seems good and isn't geo-blocked from UK:
https://stream10.nava.hu/rQlnPpEAPXpZePZo/_definst_/amlst:M3-87130999959999A59/playlist.m3u8?type=m3u8&sessid=DkSCzFz9e6ZRzsG1J6wVkSWzeg4t6GpAtvy5CH4OHeqONN7bEst5HwaSTAsYscoU&lb=wgxe5FBLanggBObW8n%2FWbtY5vYyqR72hpew8RHQGPI6XdMhJAdy7JU06WnZQahY2S%2FnFVi098ymS%0D%0AIMLDOQs9ow%3D%3D%0D%0A

@dirkf dirkf added the Good first issue An issue that should be easier to solve label Apr 13, 2023
aaron-tan added a commit to aaron-tan/youtube-dl that referenced this issue Oct 10, 2023
Add new extractor for MTVA Archivum site.

Closes ytdl-org#21430
@aaron-tan aaron-tan linked a pull request Oct 10, 2023 that will close this issue
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good first issue An issue that should be easier to solve site-support-request Add extractor(s) for a new domain
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants