From fb48dcc103adb9ad1e14faa8c2199fee4537316a Mon Sep 17 00:00:00 2001 From: sigma67 Date: Mon, 1 Jan 2024 18:51:39 +0100 Subject: [PATCH] test_home: hotfix failing podcast entries on homepage --- ytmusicapi/parsers/browsing.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ytmusicapi/parsers/browsing.py b/ytmusicapi/parsers/browsing.py index 2348395..4b2a493 100644 --- a/ytmusicapi/parsers/browsing.py +++ b/ytmusicapi/parsers/browsing.py @@ -32,7 +32,9 @@ def parse_mixed_content(rows): elif page_type == "MUSIC_PAGE_TYPE_PLAYLIST": content = parse_playlist(data) else: - data = nav(result, [MRLIR]) + data = nav(result, [MRLIR], True) + if not data: + continue content = parse_song_flat(data) contents.append(content)