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

[Mildom] Add new extractor #25958

Closed
wants to merge 8 commits into from
Closed

[Mildom] Add new extractor #25958

wants to merge 8 commits into from

Conversation

rli99
Copy link

@rli99 rli99 commented Jul 10, 2020

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

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.

@rli99 rli99 changed the title Add new extractor for Mildom. [Mildom] Add new extractor Jul 10, 2020
'info_dict': {
'id': '10819667-1594032863',
'ext': 'mp4',
'title': '月曜!雀荘ほめちぎり #1',
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
'title': '月曜!雀荘ほめちぎり #1',
'title': '月曜!雀荘ほめちぎり #1 【麻雀】',

(according to json)

def _real_extract(self, url):
channel_id, video_id = re.match(self._VALID_URL, url).groups()

webpage = self._download_webpage(url, video_id)
Copy link
Contributor

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?

if not thumbnail:
thumbnail = self._html_search_meta(
'og:image',
webpage, 'thumbnail', default=None)
Copy link
Contributor

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)


webpage = self._download_webpage(url, video_id)
video_data = self._download_json(
self._VIDEO_INFO_BASE_URL + '?v_id=%s' % video_id, video_id)
Copy link
Contributor

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.

@dstftw dstftw force-pushed the master branch 2 times, most recently from 5e26784 to da2069f Compare September 13, 2020 13:50
@morning-paradigm
Copy link

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?
I don't know if it actually works as intended, but it's been 3 months since the last activity.

@adrianheine
Copy link
Contributor

This is waiting to be reviewed and merged by one of the maintainers.

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.

3 participants