mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge from trunk
This commit is contained in:
commit
35f05e2866
29
resources/recipes/wichita_eagle.recipe
Normal file
29
resources/recipes/wichita_eagle.recipe
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
|
class AdvancedUserRecipe1294938721(BasicNewsRecipe):
|
||||||
|
title = u'Wichita Eagle'
|
||||||
|
language = 'en'
|
||||||
|
__author__ = 'Jason Cameron'
|
||||||
|
description = 'Daily news from the Wichita Eagle'
|
||||||
|
oldest_article = 1
|
||||||
|
max_articles_per_feed = 30
|
||||||
|
keep_only_tags = [dict(name='div', attrs={'id':'wide'})]
|
||||||
|
feeds = [
|
||||||
|
(u'Local News',
|
||||||
|
u'http://www.kansas.com/news/local/index.rss'),
|
||||||
|
(u'National News',
|
||||||
|
u'http://www.kansas.com/news/nation-world/index.rss'),
|
||||||
|
(u'Sports',
|
||||||
|
u'http://www.kansas.com/sports/index.rss'),
|
||||||
|
(u'Opinion',
|
||||||
|
u'http://www.kansas.com/opinion/index.rss'),
|
||||||
|
(u'Life',
|
||||||
|
u'http://www.kansas.com/living/index.rss'),
|
||||||
|
(u'Entertainment',
|
||||||
|
u'http://www.kansas.com/entertainment/index.rss')
|
||||||
|
]
|
||||||
|
|
||||||
|
def print_version(self, url):
|
||||||
|
urlparts = url.split('/')
|
||||||
|
newadd = urlparts[5]+'/v-print'
|
||||||
|
return url.replace(url, newadd.join(url.split(urlparts[5])))
|
@ -13,6 +13,10 @@
|
|||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>This book is DRMed</string>
|
<string>This book is DRMed</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="windowIcon">
|
||||||
|
<iconset resource="../../../../resources/images.qrc">
|
||||||
|
<normaloff>:/images/document-encrypt.png</normaloff>:/images/document-encrypt.png</iconset>
|
||||||
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="label">
|
<widget class="QLabel" name="label">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user