mirror of
https://github.com/l1ving/youtube-dl
synced 2025-01-21 20:22:53 +08:00
Added Support for HGTV.ca
Since both hgtv.ca and hgtv.com are using the same CMS, by updating the existing script to support both domains, it works well.
This commit is contained in:
parent
bee6451fe8
commit
810dfad7b9
@ -425,7 +425,7 @@ from .heise import HeiseIE
|
|||||||
from .hellporno import HellPornoIE
|
from .hellporno import HellPornoIE
|
||||||
from .helsinki import HelsinkiIE
|
from .helsinki import HelsinkiIE
|
||||||
from .hentaistigma import HentaiStigmaIE
|
from .hentaistigma import HentaiStigmaIE
|
||||||
from .hgtv import HGTVComShowIE
|
from .hgtv import HGTVShowIE
|
||||||
from .hketv import HKETVIE
|
from .hketv import HKETVIE
|
||||||
from .hidive import HiDiveIE
|
from .hidive import HiDiveIE
|
||||||
from .historicfilms import HistoricFilmsIE
|
from .historicfilms import HistoricFilmsIE
|
||||||
|
@ -4,17 +4,17 @@ from __future__ import unicode_literals
|
|||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
|
|
||||||
|
|
||||||
class HGTVComShowIE(InfoExtractor):
|
class HGTVShowIE(InfoExtractor):
|
||||||
IE_NAME = 'hgtv.com:show'
|
IE_NAME = 'hgtv:show'
|
||||||
_VALID_URL = r'https?://(?:www\.)?hgtv\.com/shows/[^/]+/(?P<id>[^/?#&]+)'
|
_VALID_URL = r'https?://(?:www\.)?hgtv\.(?:com|ca)/shows/[^/]+/(?P<id>[^/?#&]+)'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
# data-module="video"
|
# data-module="video"
|
||||||
'url': 'http://www.hgtv.com/shows/flip-or-flop/flip-or-flop-full-episodes-season-4-videos',
|
'url': 'https://www.hgtv.com/shows/fixer-upper/fixer-upper-full-episodes-videos',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': 'flip-or-flop-full-episodes-season-4-videos',
|
'id': 'fixer-upper-full-episodes-videos',
|
||||||
'title': 'Flip or Flop Full Episodes',
|
'title': 'Fixer Upper - Full Episodes',
|
||||||
},
|
},
|
||||||
'playlist_mincount': 15,
|
'playlist_mincount': 14,
|
||||||
}, {
|
}, {
|
||||||
# data-deferred-module="video"
|
# data-deferred-module="video"
|
||||||
'url': 'http://www.hgtv.com/shows/good-bones/episodes/an-old-victorian-house-gets-a-new-facelift',
|
'url': 'http://www.hgtv.com/shows/good-bones/episodes/an-old-victorian-house-gets-a-new-facelift',
|
||||||
|
Loading…
Reference in New Issue
Block a user