mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
...
This commit is contained in:
parent
f2f81550db
commit
d3aacc01d5
@ -8,8 +8,8 @@ www.nin.co.rs
|
|||||||
import re
|
import re
|
||||||
from calibre import strftime
|
from calibre import strftime
|
||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
from contextlib import nested, closing
|
from contextlib import closing
|
||||||
from calibre.ebooks.BeautifulSoup import BeautifulSoup, NavigableString, CData, Tag
|
from calibre.ebooks.BeautifulSoup import BeautifulSoup
|
||||||
from calibre import entity_to_unicode
|
from calibre import entity_to_unicode
|
||||||
|
|
||||||
class Nin(BasicNewsRecipe):
|
class Nin(BasicNewsRecipe):
|
||||||
@ -29,14 +29,14 @@ class Nin(BasicNewsRecipe):
|
|||||||
use_embedded_content = False
|
use_embedded_content = False
|
||||||
language = 'sr'
|
language = 'sr'
|
||||||
publication_type = 'magazine'
|
publication_type = 'magazine'
|
||||||
extra_css = """
|
extra_css = """
|
||||||
@font-face {font-family: "sans1";src:url(res:///opt/sony/ebook/FONT/tt0003m_.ttf)}
|
@font-face {font-family: "sans1";src:url(res:///opt/sony/ebook/FONT/tt0003m_.ttf)}
|
||||||
body{font-family: Verdana, Lucida, sans1, sans-serif}
|
body{font-family: Verdana, Lucida, sans1, sans-serif}
|
||||||
.article_description{font-family: Verdana, Lucida, sans1, sans-serif}
|
.article_description{font-family: Verdana, Lucida, sans1, sans-serif}
|
||||||
.artTitle{font-size: x-large; font-weight: bold; color: #900}
|
.artTitle{font-size: x-large; font-weight: bold; color: #900}
|
||||||
.izjava{font-size: x-large; font-weight: bold}
|
.izjava{font-size: x-large; font-weight: bold}
|
||||||
.columnhead{font-size: small; font-weight: bold;}
|
.columnhead{font-size: small; font-weight: bold;}
|
||||||
img{margin-top:0.5em; margin-bottom: 0.7em; display: block}
|
img{margin-top:0.5em; margin-bottom: 0.7em; display: block}
|
||||||
b{margin-top: 1em}
|
b{margin-top: 1em}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@ -148,4 +148,4 @@ class Nin(BasicNewsRecipe):
|
|||||||
img.extract()
|
img.extract()
|
||||||
tbl.replaceWith(img)
|
tbl.replaceWith(img)
|
||||||
return soup
|
return soup
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user