added openings.moe support
This commit is contained in:
parent
609af1ae1c
commit
1fe55ac872
@ -132,7 +132,6 @@ from .dfb import DFBIE
|
|||||||
from .dhm import DHMIE
|
from .dhm import DHMIE
|
||||||
from .dotsub import DotsubIE
|
from .dotsub import DotsubIE
|
||||||
from .douyutv import DouyuTVIE
|
from .douyutv import DouyuTVIE
|
||||||
from .dplay import DPlayIE
|
|
||||||
from .dramafever import (
|
from .dramafever import (
|
||||||
DramaFeverIE,
|
DramaFeverIE,
|
||||||
DramaFeverSeriesIE,
|
DramaFeverSeriesIE,
|
||||||
@ -453,6 +452,7 @@ from .ooyala import (
|
|||||||
OoyalaIE,
|
OoyalaIE,
|
||||||
OoyalaExternalIE,
|
OoyalaExternalIE,
|
||||||
)
|
)
|
||||||
|
from .openingsmoe import OpeningsMoeIE
|
||||||
from .orf import (
|
from .orf import (
|
||||||
ORFTVthekIE,
|
ORFTVthekIE,
|
||||||
ORFOE1IE,
|
ORFOE1IE,
|
||||||
|
29
youtube_dl/extractor/openingsmoe.py
Normal file
29
youtube_dl/extractor/openingsmoe.py
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
from .common import InfoExtractor
|
||||||
|
|
||||||
|
class OpeningsMoeIE(InfoExtractor):
|
||||||
|
_VALID_URL = r'(?:http://)?(?:www\.)?openings\.moe/.*'
|
||||||
|
_TEST = {
|
||||||
|
u"url": u"http://openings.moe/?video=InstallLinux.webm",
|
||||||
|
u"md5": u"0197c23fb5124395a51d4bc483506d61",
|
||||||
|
u"info_dict": {
|
||||||
|
u"id": "InstallLinux",
|
||||||
|
u"url": u"http://openings.moe/video/InstallLinux.webm",
|
||||||
|
u"ext": u"webm",
|
||||||
|
u"title": u"openings.moe",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
def _real_extract(self, url):
|
||||||
|
webpage = self._download_webpage(url, "")
|
||||||
|
self.report_extraction("")
|
||||||
|
|
||||||
|
video_id = self._html_search_regex(
|
||||||
|
r'<source src="video/([^"]+).webm" type="video/webm">',
|
||||||
|
webpage, u"Video URL")
|
||||||
|
|
||||||
|
return {
|
||||||
|
u"id": video_id,
|
||||||
|
u"url": u"http://openings.moe/video/" + video_id + u".webm",
|
||||||
|
u"ext": u"webm",
|
||||||
|
u"title": u"openings.moe",
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user