Skip to content

Commit

Permalink
feat: save video
Browse files Browse the repository at this point in the history
  • Loading branch information
yzqzss committed Sep 1, 2023
1 parent 5078178 commit eda06db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion preserve_podcasts/preservePodcasts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit eda06db

Please sign in to comment.