mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-28 22:24:34 +01:00
[myvidster] Added support for Myvidster
This commit is contained in:
parent
de9bd74bc2
commit
ecd7ea1e6b
2 changed files with 29 additions and 0 deletions
|
@ -245,6 +245,7 @@ from .muzu import MuzuTVIE
|
||||||
from .myspace import MySpaceIE, MySpaceAlbumIE
|
from .myspace import MySpaceIE, MySpaceAlbumIE
|
||||||
from .myspass import MySpassIE
|
from .myspass import MySpassIE
|
||||||
from .myvideo import MyVideoIE
|
from .myvideo import MyVideoIE
|
||||||
|
from .myvidster import MyVidsterIE
|
||||||
from .naver import NaverIE
|
from .naver import NaverIE
|
||||||
from .nba import NBAIE
|
from .nba import NBAIE
|
||||||
from .nbc import (
|
from .nbc import (
|
||||||
|
|
28
youtube_dl/extractor/myvidster.py
Normal file
28
youtube_dl/extractor/myvidster.py
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from .common import InfoExtractor
|
||||||
|
|
||||||
|
|
||||||
|
class MyVidsterIE(InfoExtractor):
|
||||||
|
_VALID_URL = r'http://(?:www\.)?myvidster\.com/video/(?P<id>\d+)/.*$'
|
||||||
|
|
||||||
|
_TEST = {
|
||||||
|
'url': 'http://www.myvidster.com/video/32059805/Hot_chemistry_with_raw_love_making',
|
||||||
|
'md5': '95296d0231c1363222c3441af62dc4ca',
|
||||||
|
'info_dict': {
|
||||||
|
'id': '3685814',
|
||||||
|
'title': 'md5:7d8427d6d02c4fbcef50fe269980c749',
|
||||||
|
'upload_date': '20141027',
|
||||||
|
'uploader_id': 'utkualp',
|
||||||
|
'ext': 'mp4',
|
||||||
|
},
|
||||||
|
'add_ie': ['XHamster'],
|
||||||
|
}
|
||||||
|
|
||||||
|
def _real_extract(self, url):
|
||||||
|
video_id = self._match_id(url)
|
||||||
|
webpage = self._download_webpage(url, video_id)
|
||||||
|
|
||||||
|
return self.url_result(self._html_search_regex(
|
||||||
|
r'rel="videolink" href="(?P<real_url>.*)">',
|
||||||
|
webpage, 'real video url'))
|
Loading…
Reference in a new issue