From eda06db68ba50c134a7d61bdf5fe1917e2a633d1 Mon Sep 17 00:00:00 2001 From: yzqzss Date: Sat, 2 Sep 2023 01:31:49 +0800 Subject: [PATCH] feat: save video --- preserve_podcasts/preservePodcasts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preserve_podcasts/preservePodcasts.py b/preserve_podcasts/preservePodcasts.py index 158647d..16d341c 100644 --- a/preserve_podcasts/preservePodcasts.py +++ b/preserve_podcasts/preservePodcasts.py @@ -331,7 +331,7 @@ def archive_entries(d: feedparser.FeedParserDict, session: requests.Session, pod for entry in d.entries: is_episode = False for link in entry.get('links', []): - if link.has_key('type') and 'audio' in link['type']: + if link.has_key('type') and ('audio' in link['type'] or 'video' in link['type']): is_episode = True break