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

https://mediasetinfinity.mediaset.it #32491

Open
4 tasks
nanni61 opened this issue Aug 1, 2023 · 3 comments · May be fixed by #32498
Open
4 tasks

https://mediasetinfinity.mediaset.it #32491

nanni61 opened this issue Aug 1, 2023 · 3 comments · May be fixed by #32498
Labels
site-support-request Add extractor(s) for a new domain

Comments

@nanni61
Copy link

nanni61 commented Aug 1, 2023

Checklist

  • [ x] I'm reporting a new site support request
  • I've verified that I'm running youtube-dl version 2021.12.17
  • 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

WRITE DESCRIPTION HERE

@nanni61 nanni61 added the site-support-request Add extractor(s) for a new domain label Aug 1, 2023
@nanni61
Copy link
Author

nanni61 commented Aug 1, 2023

ERROR: Unsupported URL: https://mediasetinfinity.mediaset.it

@dirkf
Copy link
Contributor

dirkf commented Aug 1, 2023

You need to provide the URL of a page that plays a video and in this case, because mediaset has form, show that it plays in your browser session with DRM disabled.

@dirkf
Copy link
Contributor

dirkf commented Aug 2, 2023

For anyone who wants to work on this (subject to the above):

  • I looked at https://mediasetinfinity.mediaset.it/video/tg4/edizione-ore-1900-dell-1-agosto_F312336801042601
  • there is a full json+ld block whose @id seems to be the URL of a embedded player: the JS loaded from this includes references to Widevine, PlayReady and FairPlay, supporting my point above
  • the page has a gigantic window.INITIAL_STATE JS string that is a base64-encode of compressed (presumably) JSON
  • JS atob() decodes the string to some binary stuff but Python's base64.decode() seems to need some tweaking of the trailing/padding end of the string, eg strippingA== and appending ===
  • the compressed data doesn't decode with Python's zlib (includes gzip) nor bzip2
  • the site JS includes a function decompressFromBase64() that calls _decompress(), but there is some external linkage in these.

@aaron-tan aaron-tan linked a pull request Aug 9, 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
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
@dirkf @nanni61 and others