mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-02 09:12:40 +01:00
Add an extractor for on.aol.com
This commit is contained in:
parent
933a5b3792
commit
f82863851e
@ -2,6 +2,7 @@
|
|||||||
from .addanime import AddAnimeIE
|
from .addanime import AddAnimeIE
|
||||||
from .aftonbladet import AftonbladetIE
|
from .aftonbladet import AftonbladetIE
|
||||||
from .anitube import AnitubeIE
|
from .anitube import AnitubeIE
|
||||||
|
from .aol import AolIE
|
||||||
from .aparat import AparatIE
|
from .aparat import AparatIE
|
||||||
from .appletrailers import AppleTrailersIE
|
from .appletrailers import AppleTrailersIE
|
||||||
from .archiveorg import ArchiveOrgIE
|
from .archiveorg import ArchiveOrgIE
|
||||||
|
28
youtube_dl/extractor/aol.py
Normal file
28
youtube_dl/extractor/aol.py
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
import re
|
||||||
|
|
||||||
|
from .common import InfoExtractor
|
||||||
|
from .fivemin import FiveMinIE
|
||||||
|
|
||||||
|
|
||||||
|
class AolIE(InfoExtractor):
|
||||||
|
IE_NAME = 'on.aol.com'
|
||||||
|
_VALID_URL = r'http://on\.aol\.com/video/.*-(?P<id>\d+)($|\?)'
|
||||||
|
|
||||||
|
_TEST = {
|
||||||
|
'url': 'http://on.aol.com/video/u-s--official-warns-of-largest-ever-irs-phone-scam-518167793?icid=OnHomepageC2Wide_MustSee_Img',
|
||||||
|
'md5': '18ef68f48740e86ae94b98da815eec42',
|
||||||
|
'info_dict': {
|
||||||
|
'id': '518167793',
|
||||||
|
'ext': 'mp4',
|
||||||
|
'title': 'U.S. Official Warns Of \'Largest Ever\' IRS Phone Scam',
|
||||||
|
},
|
||||||
|
'add_ie': ['FiveMin'],
|
||||||
|
}
|
||||||
|
|
||||||
|
def _real_extract(self, url):
|
||||||
|
mobj = re.match(self._VALID_URL, url)
|
||||||
|
video_id = mobj.group('id')
|
||||||
|
self.to_screen('Downloading 5min.com video %s' % video_id)
|
||||||
|
return FiveMinIE._build_result(video_id)
|
Loading…
Reference in New Issue
Block a user