Compare commits

..

No commits in common. "659bd5f8674a7dd4d1c4820249824fb0a2302970" and "db672ab51e25e7370d4022030851ab25d3f68b18" have entirely different histories.

View File

@ -334,7 +334,7 @@ class LBRYChannelIE(LBRYBaseIE):
} }
page_params.update(params) page_params.update(params)
result = self._call_api_proxy( result = self._call_api_proxy(
'claim_search', claim_ids, page_params, f'page {page}') 'claim_search', claim_ids, page_params, 'page %d' % page)
for item in (result.get('items') or []): for item in (result.get('items') or []):
stream_claim_name = item.get('name') stream_claim_name = item.get('name')
stream_claim_id = item.get('claim_id') stream_claim_id = item.get('claim_id')
@ -358,8 +358,7 @@ class LBRYChannelIE(LBRYBaseIE):
return self._call_api_proxy('claim_search', claim_id, page_params, 'playlist') return self._call_api_proxy('claim_search', claim_id, page_params, 'playlist')
def _real_extract(self, url): def _real_extract(self, url):
playlist_id = self._match_valid_url(url).group('id2') if playlist_id := self._match_valid_url(url).group('id2'):
if playlist_id:
is_playlist = True is_playlist = True
r = self._fetch_playlist_items(playlist_id) r = self._fetch_playlist_items(playlist_id)
result = r.get('items', [])[0] result = r.get('items', [])[0]