Skip to content

Commit

Permalink
enclosure_tags: prefer feed user title to feed title if available. #344
Browse files Browse the repository at this point in the history
  • Loading branch information
lemon24 committed Jun 24, 2024
1 parent 3c2f8aa commit 6a8c3ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/reader/_plugins/enclosure_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ def enclosure_tags_filter(enclosure, entry, feed_tags):
args = {'url': enclosure.href, 'filename': filename}
if entry.title:
args['title'] = entry.title
if entry.feed.title:
args['album'] = entry.feed.title
if entry.author or entry.feed.author:
args['artist'] = entry.author or entry.feed.author
if album := (entry.feed.user_title or entry.feed.title):
args['album'] = album
if artist := (entry.author or entry.feed.author):
args['artist'] = artist

for tag in feed_tags:
if 'podcast' in tag.lower():
Expand Down

0 comments on commit 6a8c3ad

Please sign in to comment.