-
Notifications
You must be signed in to change notification settings - Fork 10k
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
[Mildom] Add new extractor #25958
[Mildom] Add new extractor #25958
Conversation
youtube_dl/extractor/mildom.py
Outdated
'info_dict': { | ||
'id': '10819667-1594032863', | ||
'ext': 'mp4', | ||
'title': '月曜!雀荘ほめちぎり #1', |
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.
'title': '月曜!雀荘ほめちぎり #1', | |
'title': '月曜!雀荘ほめちぎり #1 【麻雀】', |
(according to json)
youtube_dl/extractor/mildom.py
Outdated
def _real_extract(self, url): | ||
channel_id, video_id = re.match(self._VALID_URL, url).groups() | ||
|
||
webpage = self._download_webpage(url, video_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.
Maybe this could be done only if necessary to save one request?
youtube_dl/extractor/mildom.py
Outdated
if not thumbnail: | ||
thumbnail = self._html_search_meta( | ||
'og:image', | ||
webpage, 'thumbnail', default=None) |
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.
This could use _og_search_thumbnail
instead:
thumbnail = self._og_search_thumbnail(webpage, default=None)
youtube_dl/extractor/mildom.py
Outdated
|
||
webpage = self._download_webpage(url, video_id) | ||
video_data = self._download_json( | ||
self._VIDEO_INFO_BASE_URL + '?v_id=%s' % video_id, video_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.
I think it's better to directly include '?v_id=%s'
in _VIDEO_INFO_BASE_URL
.
5e26784
to
da2069f
Compare
I'm not sure if it's okay to ask here, but is there any estimate when this is going to pushed into the master branch? |
This is waiting to be reviewed and merged by one of the maintainers. |
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
This Pull Request adds a new extractor for Mildom (mildom.com). Mildom is a relatively new Japanese live-streaming and video hosting platform with a focus on games. This PR adds an extractor for downloading videos from the site.