17 lines
No EOL
480 B
Cheetah
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 }} |