diff --git a/tests/mixins/test_podcasts.py b/tests/mixins/test_podcasts.py index 0f3d8e9c..355e0bdb 100644 --- a/tests/mixins/test_podcasts.py +++ b/tests/mixins/test_podcasts.py @@ -29,8 +29,10 @@ def test_get_podcast(self, config, yt, yt_brand): def test_many_podcasts(self, yt): results = yt.search("europe", filter="podcasts") for result in results: - results = yt.get_podcast(result["browseId"]) - assert len(results) > 0 + if result["browseId"] is None: + continue # search can surface non-podcast results even with the podcasts filter + podcast = yt.get_podcast(result["browseId"]) + assert len(podcast) > 0 def test_get_episode(self, config, yt, yt_brand): episode_id = config["podcasts"]["episode_id"]