mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-01-18 23:03:05 +01:00
autopep8 format
This commit is contained in:
parent
f186a2a750
commit
66530018e8
1 changed files with 2 additions and 2 deletions
|
@ -222,7 +222,7 @@ class XimalayaAlbumIE(XimalayaBaseIE):
|
||||||
playlist_id = self._match_id(url)
|
playlist_id = self._match_id(url)
|
||||||
|
|
||||||
meta = self._download_json('https://www.ximalaya.com/revision/album/v1/simple',
|
meta = self._download_json('https://www.ximalaya.com/revision/album/v1/simple',
|
||||||
playlist_id, note='Downloading album info', query={'albumId': playlist_id})
|
playlist_id, note='Downloading album info', query={'albumId': playlist_id})
|
||||||
title = traverse_obj(meta, ('data', 'albumPageMainInfo', 'albumTitle'))
|
title = traverse_obj(meta, ('data', 'albumPageMainInfo', 'albumTitle'))
|
||||||
|
|
||||||
page_size = 30
|
page_size = 30
|
||||||
|
@ -238,7 +238,7 @@ class XimalayaAlbumIE(XimalayaBaseIE):
|
||||||
page_count = page_idx
|
page_count = page_idx
|
||||||
|
|
||||||
entries = InAdvancePagedList(
|
entries = InAdvancePagedList(
|
||||||
lambda idx: self._get_entries(page_cache.get(str(idx+1))),
|
lambda idx: self._get_entries(page_cache.get(str(idx + 1))),
|
||||||
page_count, page_size)
|
page_count, page_size)
|
||||||
|
|
||||||
return self.playlist_result(entries, playlist_id, title)
|
return self.playlist_result(entries, playlist_id, title)
|
||||||
|
|
Loading…
Add table
Reference in a new issue