mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-13 17:57:20 +08:00
Added new Site gaskrank.TV Fixes #11659
This commit is contained in:
parent
068be1293c
commit
6e6b3a4813
@ -339,6 +339,7 @@ from .gameone import (
|
|||||||
from .gamersyde import GamersydeIE
|
from .gamersyde import GamersydeIE
|
||||||
from .gamespot import GameSpotIE
|
from .gamespot import GameSpotIE
|
||||||
from .gamestar import GameStarIE
|
from .gamestar import GameStarIE
|
||||||
|
from .gaskrank import GaskrankIE
|
||||||
from .gazeta import GazetaIE
|
from .gazeta import GazetaIE
|
||||||
from .gdcvault import GDCVaultIE
|
from .gdcvault import GDCVaultIE
|
||||||
from .generic import GenericIE
|
from .generic import GenericIE
|
||||||
|
32
youtube_dl/extractor/gaskrank.py
Normal file
32
youtube_dl/extractor/gaskrank.py
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
# coding: utf-8
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from .common import InfoExtractor
|
||||||
|
|
||||||
|
class GaskrankIE(InfoExtractor):
|
||||||
|
IE_NAME = 'Gaskrank'
|
||||||
|
_VALID_URL = r'(http.?://)www\.gaskrank\.tv/tv/.*?/(?P<id>.*?)\.htm.?'
|
||||||
|
_TEST = {
|
||||||
|
'url': 'http://www.gaskrank.tv/tv/motorradtreffen/elefantentreffen-2017-mit-suzuki-gsx-r-750-auf-winterreifen.htm',
|
||||||
|
'md5': '23c91b49a5d599430824e586854081dd',
|
||||||
|
'info_dict': {
|
||||||
|
'id': 'elefantentreffen-2017-mit-suzuki-gsx-r-750-auf-winterreifen',
|
||||||
|
'ext': 'mp4',
|
||||||
|
'title': 'Elefantentreffen 2017 mit Suzuki GSX-R 750 auf Winterreifen '
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
def _real_extract(self, url):
|
||||||
|
video_id = self._match_id(url)
|
||||||
|
webpage = self._download_webpage(url, video_id)
|
||||||
|
|
||||||
|
title = self._html_search_regex(r'<title>(.*?)</title>', webpage, 'title')
|
||||||
|
url_medium_qual = self._html_search_regex(r'0: { src:"(.*?)", type:', webpage, 'url')
|
||||||
|
url_high_qual = self._html_search_regex(r'1: { src:"(.*?)", type:', webpage, 'url')
|
||||||
|
|
||||||
|
return {
|
||||||
|
'id': video_id,
|
||||||
|
'title': title,
|
||||||
|
'url': url_high_qual
|
||||||
|
}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user