bookworm/templates/recipe.tmpl
Miguel de la Cruz c898be82de Adds recipe
2024-05-29 11:24:13 +02:00

17 lines
No EOL
480 B
Cheetah

{{- 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 }}