bookworm/templates/recipe.tmpl

17 lines
480 B
Cheetah
Raw Permalink Normal View History

2024-05-29 10:24:13 +01:00
{{- define "recipe" }}
#!/usr/bin/env python
from calibre.web.feeds.news import BasicNewsRecipe
class AdvancedUserRecipe1709396452(BasicNewsRecipe):
title = '{{ .Title }}'
oldest_article = {{ .OldestArticle }}
max_articles_per_feed = {{ .MaxArticlesPerFeed }}
auto_cleanup = True
remove_empty_feeds = True
feeds = [
{{- range $index, $feed := .Feeds }}
("{{ $feed.Title }}", "{{ $feed.FeedURL }}"),
{{- end }}
]
{{- end }}