get_episode: fixed a crash for podcasts with missing description
This commit is contained in:
parent
3f27d9bd07
commit
4506c7eb12
4 changed files with 11 additions and 8 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue