Compare commits

...

2 Commits

Author SHA1 Message Date
Raphaël Droz
659bd5f867
Update yt_dlp/extractor/lbry.py (review)
Co-authored-by: Simon Sawicki <accounts@grub4k.xyz>
2023-09-27 11:04:45 -03:00
Raphaël Droz
53215f472d
Update yt_dlp/extractor/lbry.py (review)
Co-authored-by: Simon Sawicki <accounts@grub4k.xyz>
2023-09-27 11:02:24 -03:00

View File

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