From 11bf25f0aa4b54e24f7376374fc2fda1c508c944 Mon Sep 17 00:00:00 2001 From: theyak Date: Tue, 26 Dec 2023 15:20:39 -0800 Subject: [PATCH] Move pop_songs_random_mix to be after results check. --- ytmusicapi/mixins/uploads.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ytmusicapi/mixins/uploads.py b/ytmusicapi/mixins/uploads.py index c4bbcf4..91655bf 100644 --- a/ytmusicapi/mixins/uploads.py +++ b/ytmusicapi/mixins/uploads.py @@ -46,9 +46,9 @@ def get_library_upload_songs(self, limit: int = 25, order: str = None) -> List[D body["params"] = prepare_order_params(order) response = self._send_request(endpoint, body) results = get_library_contents(response, MUSIC_SHELF) - pop_songs_random_mix(results) if results is None: return [] + pop_songs_random_mix(results) songs = parse_uploaded_items(results['contents']) if 'continuations' in results: