Skip to content

Commit

Permalink
fix: 修复了tiktok下载播放列表(合辑)的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnserf-Seed committed Apr 8, 2024
1 parent 69157eb commit 05ee1c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions f2/apps/tiktok/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ async def select_playlist(
selected_index = int(
rich_prompt.ask(
# _("[bold yellow]请输入希望下载的合辑序号:[/bold yellow]"),
choices=[str(i) for i in range(len(playlists) + 1)],
choices=[str(i) for i in range(len(playlists.mixId) + 1)],
)
)

Expand Down Expand Up @@ -607,7 +607,7 @@ async def handler_user_mix(self):
if isinstance(mixId, str):
mixId = [mixId]

for mixId in playlist.get("mixId", []):
for mixId in playlist.mixId:
async for aweme_data_list in self.fetch_user_mix_videos(
mixId, cursor, page_counts, max_counts
):
Expand Down

0 comments on commit 05ee1c4

Please sign in to comment.