Merge pull request #2 from stefangrotz/master

added entry.link template for some feeds (e.g. youtube-rss)
This commit is contained in:
Ed Summers
2020-09-29 10:19:24 -04:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,7 @@ like so:
Bookmark: {title} {url} {summary} Bookmark: {title} {url} {summary}
`{hashtags}` will look for tags in the feed entry and turn them into a space `{hashtags}` will look for tags in the feed entry and turn them into a space
separated list of hashtags. separated list of hashtags. For some feeds (e.g. youtube-rss) you should use `{link}` instead of `{url}`.
## Multiple Feeds ## Multiple Feeds

View File

@ -69,6 +69,7 @@ def get_entry(entry):
hashtags.append('#{}'.format(t)) hashtags.append('#{}'.format(t))
return { return {
'url': entry.id, 'url': entry.id,
'link': entry.link,
'title': entry.title, 'title': entry.title,
'summary': entry.get('summary', ''), 'summary': entry.get('summary', ''),
'hashtags': ' '.join(hashtags), 'hashtags': ' '.join(hashtags),