1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-02 17:22:31 +01:00

[DIYNetwork] Support new format (#934)

Authored by: Sipherdrakon
This commit is contained in:
Sipherdrakon 2021-09-14 20:25:03 -04:00 committed by GitHub
parent cc33cc4395
commit b5a39ed43b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 1 deletions

View File

@ -389,3 +389,23 @@ class ScienceChannelIE(DiscoveryPlusIE):
_PRODUCT = 'sci' _PRODUCT = 'sci'
_API_URL = 'us1-prod-direct.sciencechannel.com' _API_URL = 'us1-prod-direct.sciencechannel.com'
class DIYNetworkIE(DiscoveryPlusIE):
_VALID_URL = r'https?://(?:watch\.)?diynetwork\.com/video' + DPlayIE._PATH_REGEX
_TESTS = [{
'url': 'https://watch.diynetwork.com/video/pool-kings-diy-network/bringing-beach-life-to-texas',
'info_dict': {
'id': '2309730',
'display_id': 'pool-kings-diy-network/bringing-beach-life-to-texas',
'ext': 'mp4',
'title': 'Bringing Beach Life to Texas',
'description': 'The Pool Kings give a family a day at the beach in their own backyard.',
'season_number': 10,
'episode_number': 2,
},
'skip': 'Available for Premium users',
}]
_PRODUCT = 'diy'
_API_URL = 'us1-prod-direct.watch.diynetwork.com'

View File

@ -339,7 +339,8 @@
DPlayIE, DPlayIE,
DiscoveryPlusIE, DiscoveryPlusIE,
HGTVDeIE, HGTVDeIE,
ScienceChannelIE ScienceChannelIE,
DIYNetworkIE
) )
from .dreisat import DreiSatIE from .dreisat import DreiSatIE
from .drbonanza import DRBonanzaIE from .drbonanza import DRBonanzaIE