mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 01:11:25 +01:00
Compare commits
3 Commits
e244a2f073
...
ef8218936e
Author | SHA1 | Date | |
---|---|---|---|
|
ef8218936e | ||
|
ed80a9a4e1 | ||
|
cac71b05c8 |
|
@ -1957,7 +1957,10 @@ from .tencent import (
|
||||||
WeTvSeriesIE,
|
WeTvSeriesIE,
|
||||||
)
|
)
|
||||||
from .tennistv import TennisTVIE
|
from .tennistv import TennisTVIE
|
||||||
from .tenplay import TenPlayIE, TenPlaySeasonIE
|
from .tenplay import (
|
||||||
|
TenPlayIE,
|
||||||
|
TenPlaySeasonIE,
|
||||||
|
)
|
||||||
from .testurl import TestURLIE
|
from .testurl import TestURLIE
|
||||||
from .tf1 import TF1IE
|
from .tf1 import TF1IE
|
||||||
from .tfo import TFOIE
|
from .tfo import TFOIE
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
from datetime import datetime
|
|
||||||
import base64
|
import base64
|
||||||
import functools
|
import functools
|
||||||
import itertools
|
import itertools
|
||||||
|
from datetime import datetime
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..networking import HEADRequest
|
from ..networking import HEADRequest
|
||||||
|
@ -119,27 +119,20 @@ class TenPlayIE(InfoExtractor):
|
||||||
|
|
||||||
class TenPlaySeasonIE(InfoExtractor):
|
class TenPlaySeasonIE(InfoExtractor):
|
||||||
_VALID_URL = r'https?://(?:www\.)?10play\.com\.au/(?P<show>[^/?#]+)/episodes/(?P<season>[^/?#]+)/?(?:$|[?#])'
|
_VALID_URL = r'https?://(?:www\.)?10play\.com\.au/(?P<show>[^/?#]+)/episodes/(?P<season>[^/?#]+)/?(?:$|[?#])'
|
||||||
|
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'https://10play.com.au/masterchef/episodes/season-14',
|
'url': 'https://10play.com.au/masterchef/episodes/season-14',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'title': 'Season 14',
|
'title': 'Season 14',
|
||||||
'id': 'MjMyOTIy',
|
'id': 'MjMyOTIy',
|
||||||
},
|
},
|
||||||
'playlist_count': 64,
|
'playlist_mincount': 64,
|
||||||
'params': {
|
|
||||||
'skip_download': True,
|
|
||||||
},
|
|
||||||
}, {
|
}, {
|
||||||
'url': 'https://10play.com.au/the-bold-and-the-beautiful-fast-tracked/episodes/season-2022',
|
'url': 'https://10play.com.au/the-bold-and-the-beautiful-fast-tracked/episodes/season-2022',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'title': 'Season 2022',
|
'title': 'Season 2022',
|
||||||
'id': 'Mjc0OTIw',
|
'id': 'Mjc0OTIw',
|
||||||
},
|
},
|
||||||
'playlist_count': 256,
|
'playlist_mincount': 256,
|
||||||
'params': {
|
|
||||||
'skip_download': True,
|
|
||||||
}
|
|
||||||
}]
|
}]
|
||||||
|
|
||||||
def _entries(self, load_more_url, display_id=None):
|
def _entries(self, load_more_url, display_id=None):
|
||||||
|
@ -159,7 +152,6 @@ class TenPlaySeasonIE(InfoExtractor):
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
show, season = self._match_valid_url(url).group('show', 'season')
|
show, season = self._match_valid_url(url).group('show', 'season')
|
||||||
|
|
||||||
season_info = self._download_json(
|
season_info = self._download_json(
|
||||||
f'https://10play.com.au/api/shows/{show}/episodes/{season}', f'{show}/{season}')
|
f'https://10play.com.au/api/shows/{show}/episodes/{season}', f'{show}/{season}')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user