mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Fix #5914 (New recipe for official Vatican newspaper L'Osservatore Romano)
This commit is contained in:
parent
fe8fa4e68e
commit
a29718aa30
48
resources/recipes/losservatoreromano_it.recipe
Normal file
48
resources/recipes/losservatoreromano_it.recipe
Normal file
@ -0,0 +1,48 @@
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
|
||||
'''
|
||||
www.vatican.va/news_services/or/or_quo
|
||||
'''
|
||||
|
||||
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
class LOsservatoreRomano_it(BasicNewsRecipe):
|
||||
title = "L'Osservatore Romano"
|
||||
__author__ = 'Darko Miletic'
|
||||
description = 'Quiornale quotidiano, politico, religioso del Vaticano'
|
||||
publisher = 'La Santa Sede'
|
||||
category = 'news, politics, religion, Vatican'
|
||||
no_stylesheets = True
|
||||
INDEX = 'http://www.vatican.va'
|
||||
FEEDPAGE = INDEX + '/news_services/or/or_quo/index.html'
|
||||
CONTENTPAGE = INDEX + '/news_services/or/or_quo/text.html'
|
||||
use_embedded_content = False
|
||||
encoding = 'cp1252'
|
||||
language = 'it'
|
||||
publication_type = 'newspaper'
|
||||
|
||||
|
||||
conversion_options = {
|
||||
'comment' : description
|
||||
, 'tags' : category
|
||||
, 'publisher' : publisher
|
||||
, 'language' : language
|
||||
, 'linearize_tables' : True
|
||||
}
|
||||
|
||||
def parse_index(self):
|
||||
articles = []
|
||||
articles.append({
|
||||
'title' :self.title
|
||||
,'date' :''
|
||||
,'url' :self.CONTENTPAGE
|
||||
,'description':''
|
||||
})
|
||||
return [(self.title, articles)]
|
||||
|
||||
def preprocess_html(self, soup):
|
||||
for item in soup.findAll(style=True):
|
||||
del item['style']
|
||||
return self.adeify_images(soup)
|
||||
|
@ -190,11 +190,16 @@ The most likely cause of this is your antivirus program. Try temporarily disabli
|
||||
Why is my device not detected in linux?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|app| uses something called SYSFS to detect devices in linux. The linux kernel can export two version of SYSFS, one of which is deprecated. Some linux distributions still ship with kernels that support the deprecated version of SYSFS, even though it was deprecated a long time ago. In this case, device detection in |app| will not work. You can check what version of SYSFS is exported by your kernel with the following command::
|
||||
|app| needs your linux kernel to have been setup correctly to detect devices. If your devices are not detected, perform the following tests::
|
||||
|
||||
grep SYSFS_DEPRECATED /boot/config-`uname -r`
|
||||
|
||||
You should see something like ``CONFIG_SYSFS_DEPRECATED_V2 is not set``. If you don't you have to either recompile your kernel with the correct setting, or upgrade your linux distro to a more modern version, where this will not be set.
|
||||
You should see something like ``CONFIG_SYSFS_DEPRECATED_V2 is not set``.
|
||||
Also, ::
|
||||
|
||||
grep CONFIG_SCSI_MULTI_LUN /boot/config-`uname -r`
|
||||
|
||||
must return ``CONFIG_SCSI_MULTI_LUN=y``. If you don't see either, you have to recompile your kernel with the correct settings.
|
||||
|
||||
Library Management
|
||||
------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user