get_episode: fixed a crash for podcasts with missing description

This commit is contained in:
sigma67 2025-07-24 21:15:24 +02:00 • committed by sigma67
commit 4506c7eb12
4 changed files with 11 additions and 8 deletions

View file

@ -44,7 +44,7 @@ class TestPodcasts:
results = yt.search("episode", filter="episodes")
for result in results:
result = yt.get_episode(result["videoId"])
assert len(result["description"].text) > 0
assert result["description"] is None or len(result["description"].text) > 0
def test_get_episodes_playlist(self, yt_brand):
playlist = yt_brand.get_episodes_playlist()