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

[mediaset] Update extractor #32498

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aaron-tan
Copy link
Contributor

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 youtube-dl 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

Mediaset underwent a name change. It used to be called mediasetplay but it's now called mediainfinity. Hence why downloads were failing. I've looked through previous pull requests and this isn't the first time it has undergone a name change so this is the latest update. It's basically the same site so I didn't change much in the extractor, only updated the regex to capture the new format of the URL.

  • Updated the regex to reflect the name change.
  • Changed the site URL of the first test to one that uses the new name change.

This should close #32491

Mediaset underwent a name change. It used to be called mediasetplay but it's now called mediainfinity. Hence why downloads were failing.

- Updated the regex to reflect the name change.
- Changed the site URL of the first test to one that uses the new name change.
Correct regex to not capture URL that doesn't exist

Co-authored-by: dirkf <fieldhouse@gmx.net>
@aaron-tan
Copy link
Contributor Author

Thanks for the suggestion. I had not realised that static3.mediasetinfinity.mediaset.it did not exist

@audetto
Copy link

audetto commented Aug 28, 2023

This PR does fix the mediasetinfinity download issue.

@dirkf dirkf mentioned this pull request Oct 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

https://mediasetinfinity.mediaset.it
3 participants