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

[CPTwentyFour] Add extractor #1769

Merged
merged 4 commits into from
Nov 27, 2021
Merged

[CPTwentyFour] Add extractor #1769

merged 4 commits into from
Nov 27, 2021

Conversation

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

Closes #1768

@Ashish0804 Ashish0804 marked this pull request as ready for review November 24, 2021 10:52
class CPTwentyFourIE(InfoExtractor):
IE_NAME = 'cp24'
_GEO_COUNTRIES = ['CA']
_VALID_URL = r'https?://(?:www\.)?cp24\.com/news/.*'
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
_VALID_URL = r'https?://(?:www\.)?cp24\.com/news/.*'
_VALID_URL = r'https?://(?:www\.)?cp24\.com/news/(?P<id>[^?#]+)'

and use this id for the webpage download message
and maybe also return as display_id

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks ugly tbh but okay

yt_dlp/extractor/ninecninemedia.py Outdated Show resolved Hide resolved
yt_dlp/extractor/ninecninemedia.py Outdated Show resolved Hide resolved
Ashish0804 and others added 2 commits November 27, 2021 11:43
Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
@pukkandan pukkandan merged commit 3938a92 into yt-dlp:master Nov 27, 2021
@Ashish0804 Ashish0804 deleted the cp24 branch December 26, 2021 12:27
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.

CP24 (should be added to 9c9media extractor)
2 participants