Merge pull request #2 from stefangrotz/master
added entry.link template for some feeds (e.g. youtube-rss)
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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),
|
||||||
|
|||||||
Reference in New Issue
Block a user