From bff2b667da1d7c2f59b34e12ca9db672228fd118 Mon Sep 17 00:00:00 2001 From: nick42d <133559267+nick42d@users.noreply.github.com> Date: Wed, 19 Jul 2023 23:34:41 +0800 Subject: [PATCH] Removed redundant loop counter The count in parse_playlist_items is not referenced elsewhere in the function. --- ytmusicapi/parsers/playlists.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/ytmusicapi/parsers/playlists.py b/ytmusicapi/parsers/playlists.py index 3552bb8..4fdecb9 100644 --- a/ytmusicapi/parsers/playlists.py +++ b/ytmusicapi/parsers/playlists.py @@ -5,9 +5,7 @@ from ._utils import * def parse_playlist_items(results, menu_entries: List[List] = None): songs = [] - count = 1 for result in results: - count += 1 if MRLIR not in result: continue data = result[MRLIR]