-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
[einthusan] adding .com tld #21775
[einthusan] adding .com tld #21775
Conversation
youtube_dl/extractor/einthusan.py
Outdated
@@ -18,7 +19,7 @@ | |||
|
|||
|
|||
class EinthusanIE(InfoExtractor): | |||
_VALID_URL = r'https?://einthusan\.tv/movie/watch/(?P<id>[^/?#&]+)' | |||
_VALID_URL = r'https?://einthusan\.(?P<tld>tv|com)/movie/watch/(?P<id>[^/?#&]+)' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Capture entire host with scheme.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
youtube_dl/extractor/einthusan.py
Outdated
@@ -18,7 +19,7 @@ | |||
|
|||
|
|||
class EinthusanIE(InfoExtractor): | |||
_VALID_URL = r'https?://einthusan\.tv/movie/watch/(?P<id>[^/?#&]+)' | |||
_VALID_URL = r'https?://(?P<host>einthusan\.(tv|com))/movie/watch/(?P<id>[^/?#&]+)' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not capture groups you don't use.
youtube_dl/extractor/einthusan.py
Outdated
@@ -18,7 +19,7 @@ | |||
|
|||
|
|||
class EinthusanIE(InfoExtractor): | |||
_VALID_URL = r'https?://einthusan\.tv/movie/watch/(?P<id>[^/?#&]+)' | |||
_VALID_URL = r'https?://(?P<host>einthusan\.(tv|com))/movie/watch/(?P<id>[^/?#&]+)' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add test.
…1775)" This reverts commit 97d98a8.
…1775)" This reverts commit 97d98a8.
Please follow the guide below
x
into all the boxes [ ] relevant to your pull request (like that [x])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:
What is the purpose of your pull request?
Description of your pull request and other information
einthusan.tv is having some issues with their normal domain, and have added einthusan.com as an additional domain. My addition extracts the tld and downloads from that tld, specifically.