Compare commits

..

3 Commits

Author SHA1 Message Date
bashonly
ef8218936e
formatting 2023-10-09 17:41:00 +00:00
bashonly
ed80a9a4e1
isort 2023-10-09 17:39:30 +00:00
bashonly
cac71b05c8
cleanup 2023-10-09 17:38:21 +00:00
2 changed files with 7 additions and 12 deletions

View File

@ -1957,7 +1957,10 @@ from .tencent import (
WeTvSeriesIE,
)
from .tennistv import TennisTVIE
from .tenplay import TenPlayIE, TenPlaySeasonIE
from .tenplay import (
TenPlayIE,
TenPlaySeasonIE,
)
from .testurl import TestURLIE
from .tf1 import TF1IE
from .tfo import TFOIE

View File

@ -1,7 +1,7 @@
from datetime import datetime
import base64
import functools
import itertools
from datetime import datetime
from .common import InfoExtractor
from ..networking import HEADRequest
@ -119,27 +119,20 @@ class TenPlayIE(InfoExtractor):
class TenPlaySeasonIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?10play\.com\.au/(?P<show>[^/?#]+)/episodes/(?P<season>[^/?#]+)/?(?:$|[?#])'
_TESTS = [{
'url': 'https://10play.com.au/masterchef/episodes/season-14',
'info_dict': {
'title': 'Season 14',
'id': 'MjMyOTIy',
},
'playlist_count': 64,
'params': {
'skip_download': True,
},
'playlist_mincount': 64,
}, {
'url': 'https://10play.com.au/the-bold-and-the-beautiful-fast-tracked/episodes/season-2022',
'info_dict': {
'title': 'Season 2022',
'id': 'Mjc0OTIw',
},
'playlist_count': 256,
'params': {
'skip_download': True,
}
'playlist_mincount': 256,
}]
def _entries(self, load_more_url, display_id=None):
@ -159,7 +152,6 @@ class TenPlaySeasonIE(InfoExtractor):
def _real_extract(self, url):
show, season = self._match_valid_url(url).group('show', 'season')
season_info = self._download_json(
f'https://10play.com.au/api/shows/{show}/episodes/{season}', f'{show}/{season}')