Skip to content

Commit

Permalink
[onetpl] Add support for businessinsider.com.pl and plejada.pl
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Feb 14, 2017
1 parent 43a3d9e commit 04a7412
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion youtube_dl/extractor/onet.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def _real_extract(self, url):


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'

_TESTS = [{
Expand All @@ -201,6 +201,15 @@ class OnetPlIE(InfoExtractor):
}, {
'url': 'http://film.onet.pl/zwiastuny/ghost-in-the-shell-drugi-zwiastun-pl/5q6yl3',
'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):
Expand Down

0 comments on commit 04a7412

Please sign in to comment.