mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Move all China related recipes into a single category
Fixes #1338001 [Change in categorization of news sources](https://bugs.launchpad.net/calibre/+bug/1338001)
This commit is contained in:
parent
14dc446536
commit
172977dbf5
@ -18,7 +18,7 @@ class AsianReviewOfBooks(BasicNewsRecipe):
|
|||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
use_embedded_content = False
|
use_embedded_content = False
|
||||||
encoding = 'cp1252'
|
encoding = 'cp1252'
|
||||||
language = 'en_HK'
|
language = 'en_CN'
|
||||||
publication_type = 'magazine'
|
publication_type = 'magazine'
|
||||||
masthead_url = 'http://www.asianreviewofbooks.com/new/images/mob_arb.png'
|
masthead_url = 'http://www.asianreviewofbooks.com/new/images/mob_arb.png'
|
||||||
extra_css = """
|
extra_css = """
|
||||||
@ -45,7 +45,7 @@ class AsianReviewOfBooks(BasicNewsRecipe):
|
|||||||
def print_version(self, url):
|
def print_version(self, url):
|
||||||
root, sep, artid = url.rpartition('?ID=')
|
root, sep, artid = url.rpartition('?ID=')
|
||||||
return root + 'getarticle.php?articleID=' + artid + '&stats=web'
|
return root + 'getarticle.php?articleID=' + artid + '&stats=web'
|
||||||
|
|
||||||
def preprocess_raw_html(self, raw, url):
|
def preprocess_raw_html(self, raw, url):
|
||||||
return '<html><head><title>title</title></head><body>' + raw + '</body></html>'
|
return '<html><head><title>title</title></head><body>' + raw + '</body></html>'
|
||||||
|
|
||||||
|
@ -184,7 +184,6 @@ _extra_lang_codes = {
|
|||||||
'pt_BR' : _('Brazilian Portuguese'),
|
'pt_BR' : _('Brazilian Portuguese'),
|
||||||
'en_GB' : _('English (UK)'),
|
'en_GB' : _('English (UK)'),
|
||||||
'zh_CN' : _('Simplified Chinese'),
|
'zh_CN' : _('Simplified Chinese'),
|
||||||
'zh_HK' : _('Chinese (HK)'),
|
|
||||||
'zh_TW' : _('Traditional Chinese'),
|
'zh_TW' : _('Traditional Chinese'),
|
||||||
'en' : _('English'),
|
'en' : _('English'),
|
||||||
'en_US' : _('English (United States)'),
|
'en_US' : _('English (United States)'),
|
||||||
@ -207,7 +206,6 @@ _extra_lang_codes = {
|
|||||||
'en_PK' : _('English (Pakistan)'),
|
'en_PK' : _('English (Pakistan)'),
|
||||||
'en_PL' : _('English (Poland)'),
|
'en_PL' : _('English (Poland)'),
|
||||||
'en_HR' : _('English (Croatia)'),
|
'en_HR' : _('English (Croatia)'),
|
||||||
'en_HK' : _('English (Hong Kong)'),
|
|
||||||
'en_HU' : _('English (Hungary)'),
|
'en_HU' : _('English (Hungary)'),
|
||||||
'en_ID' : _('English (Indonesia)'),
|
'en_ID' : _('English (Indonesia)'),
|
||||||
'en_IL' : _('English (Israel)'),
|
'en_IL' : _('English (Israel)'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user