1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-25 19:52:11 +00:00

[onetpl] Add support for businessinsider.com.pl and plejada.pl

This commit is contained in:
Sergey M․ 2017-02-15 01:23:55 +07:00
parent 43a3d9edfc
commit 04a741232f
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -184,7 +184,7 @@ class OnetChannelIE(OnetBaseIE):
class OnetPlIE(InfoExtractor): class OnetPlIE(InfoExtractor):
_VALID_URL = r'https?://(?:[^/]+\.)?onet\.pl/(?:[^/]+/)+(?P<id>[0-9a-z]+)' _VALID_URL = r'https?://(?:[^/]+\.)?(?:onet|businessinsider\.com|plejada)\.pl/(?:[^/]+/)+(?P<id>[0-9a-z]+)'
IE_NAME = 'onet.pl' IE_NAME = 'onet.pl'
_TESTS = [{ _TESTS = [{
@ -201,6 +201,15 @@ class OnetPlIE(InfoExtractor):
}, { }, {
'url': 'http://film.onet.pl/zwiastuny/ghost-in-the-shell-drugi-zwiastun-pl/5q6yl3', 'url': 'http://film.onet.pl/zwiastuny/ghost-in-the-shell-drugi-zwiastun-pl/5q6yl3',
'only_matching': True, 'only_matching': True,
}, {
'url': 'http://moto.onet.pl/jak-wybierane-sa-miejsca-na-fotoradary/6rs04e',
'only_matching': True,
}, {
'url': 'http://businessinsider.com.pl/wideo/scenariusz-na-koniec-swiata-wedlug-nasa/dwnqptk',
'only_matching': True,
}, {
'url': 'http://plejada.pl/weronika-rosati-o-swoim-domniemanym-slubie/n2bq89',
'only_matching': True,
}] }]
def _real_extract(self, url): def _real_extract(self, url):