mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix Indianpolis Star
This commit is contained in:
parent
b4914f4548
commit
be5dd81544
@ -1,16 +1,20 @@
|
|||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
from calibre.web.feeds.recipes import BasicNewsRecipe
|
||||||
|
|
||||||
class AdvancedUserRecipe1234144423(BasicNewsRecipe):
|
class IndianapolisStar(BasicNewsRecipe):
|
||||||
title = u'Indianapolis Star'
|
title = u'Indianapolis Star'
|
||||||
oldest_article = 5
|
oldest_article = 10
|
||||||
language = 'en'
|
auto_cleanup = True
|
||||||
|
language = 'en'
|
||||||
|
__author__ = 'Owen Kelly'
|
||||||
|
max_articles_per_feed = 100
|
||||||
|
cover_url = u'http://www2.indystar.com/frontpage/images/today.jpg'
|
||||||
|
feeds = [(u'Community Headlines', u'http://www.indystar.com/apps/pbcs.dll/section?Category=LOCAL&template=rss'),
|
||||||
|
(u'News Headlines', u'http://www.indystar.com/apps/pbcs.dll/section?Category=NEWS&template=rss'),
|
||||||
|
(u'Business Headlines', u'http://www.indystar.com/apps/pbcs.dll/section?Category=BUSINESS&template=rss'),
|
||||||
|
(u'Politics and Government', u'http://www.indystar.com/apps/pbcs.dll/section?Category=NEWS05&template=rss'),
|
||||||
|
(u'Lifestyle Headlines', u'http://www.indystar.com/apps/pbcs.dll/section?Category=LIVING&template=rss&mime=XML'),
|
||||||
|
(u'Opinion Headlines', u'http://www.indystar.com/apps/pbcs.dll/section?Category=OPINION&template=rss&mime=XML')
|
||||||
|
]
|
||||||
|
|
||||||
__author__ = 'Owen Kelly'
|
def print_version(self, url):
|
||||||
max_articles_per_feed = 100
|
return url + '&template=printart'
|
||||||
|
|
||||||
cover_url = u'http://www2.indystar.com/frontpage/images/today.jpg'
|
|
||||||
|
|
||||||
feeds = [(u'Community Headlines', u'http://www.indystar.com/apps/pbcs.dll/section?Category=LOCAL&template=rss&mime=XML'), (u'News Headlines', u'http://www.indystar.com/apps/pbcs.dll/section?Category=NEWS&template=rss&mime=XML'), (u'Business Headlines', u'http://www..indystar.com/apps/pbcs.dll/section?Category=BUSINESS&template=rss&mime=XML'), (u'Sports Headlines', u'http://www.indystar.com/apps/pbcs.dll/section?Category=SPORTS&template=rss&mime=XML'), (u'Lifestyle Headlines', u'http://www.indystar.com/apps/pbcs.dll/section?Category=LIVING&template=rss&mime=XML'), (u'Opinion Headlines', u'http://www.indystar.com/apps/pbcs.dll/section?Category=OPINION&template=rss&mime=XML')]
|
|
||||||
|
|
||||||
def print_version(self, url):
|
|
||||||
return url + '&template=printart'
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user