mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
36 lines
1.5 KiB
Plaintext
36 lines
1.5 KiB
Plaintext
|
|
__license__ = 'GPL v3'
|
|
__copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
|
|
'''
|
|
chetnixploitation.blogspot.com
|
|
'''
|
|
|
|
import re
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
class Chetnixploitation(BasicNewsRecipe):
|
|
title = 'Chetnixploitation'
|
|
__author__ = 'Darko Miletic'
|
|
description = 'Filmski blog'
|
|
oldest_article = 7
|
|
max_articles_per_feed = 100
|
|
language = 'sr'
|
|
publication_type = 'blog'
|
|
encoding = 'utf-8'
|
|
no_stylesheets = True
|
|
use_embedded_content = True
|
|
extra_css = ' @font-face {font-family: "serif1";src:url(res:///opt/sony/ebook/FONT/tt0011m_.ttf)} @font-face {font-family: "sans1";src:url(res:///opt/sony/ebook/FONT/tt0003m_.ttf)} body{font-family: "Trebuchet MS",Trebuchet,Verdana,sans1,sans-serif} .article_description{font-family: sans1, sans-serif} img{margin-bottom: 0.8em; border: 1px solid #333333; padding: 4px } '
|
|
|
|
conversion_options = {
|
|
'comment' : description
|
|
, 'tags' : 'film, blog, cetnici, srbija, ex-yu'
|
|
, 'publisher': 'Son of Man'
|
|
, 'language' : language
|
|
}
|
|
|
|
preprocess_regexps = [(re.compile(u'\u0110'), lambda match: u'\u00D0')]
|
|
feeds = [(u'Posts', u'http://chetnixploitation.blogspot.com/feeds/posts/default')]
|
|
|
|
def preprocess_html(self, soup):
|
|
return self.adeify_images(soup)
|