Skip to content

Commit

Permalink
Move pop_songs_random_mix to be after results check.
Browse files Browse the repository at this point in the history
  • Loading branch information
theyak authored and sigma67 committed Dec 27, 2023
1 parent 67d8b7c commit 11bf25f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ytmusicapi/mixins/uploads.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 11bf25f

Please sign in to comment.