mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
IGN:...
This commit is contained in:
parent
b0a88174d9
commit
ff0f3515b4
5
Makefile
5
Makefile
@ -1,6 +1,9 @@
|
||||
PYTHON = python
|
||||
|
||||
all : gui2 translations resources pictureflow
|
||||
all : plugins gui2 translations resources pictureflow
|
||||
|
||||
plugins:
|
||||
mkdir -p src/calibre/plugins
|
||||
|
||||
clean :
|
||||
cd src/calibre/gui2 && ${PYTHON} make.py clean
|
||||
|
@ -1,37 +0,0 @@
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
|
||||
|
||||
|
||||
'''
|
||||
Fetch Dilbert.
|
||||
'''
|
||||
import os
|
||||
|
||||
from calibre.ebooks.lrf.web.profiles import DefaultProfile
|
||||
|
||||
class Dilbert(DefaultProfile):
|
||||
|
||||
title = 'Dilbert'
|
||||
timefmt = ' [%d %b %Y]'
|
||||
max_recursions = 2
|
||||
max_articles_per_feed = 6
|
||||
html_description = True
|
||||
no_stylesheets = True
|
||||
|
||||
def get_feeds(self):
|
||||
return [ ('Dilbert', 'http://feeds.feedburner.com/tapestrydilbert') ]
|
||||
|
||||
def get_article_url(self, item):
|
||||
return item.find('enclosure')['url']
|
||||
|
||||
def build_index(self):
|
||||
index = os.path.join(self.temp_dir, 'index.html')
|
||||
articles = list(self.parse_feeds(require_url=False).values())[0]
|
||||
res = ''
|
||||
for item in articles:
|
||||
res += '<h3>%s</h3><img style="page-break-after:always" src="%s" />\n'%(item['title'], item['url'])
|
||||
res = '<html><body><h1>Dilbert</h1>%s</body></html'%res
|
||||
open(index, 'wb').write(res)
|
||||
return index
|
||||
|
||||
|
1028
src/calibre/gui2/images/arrow-down.svg
Normal file
1028
src/calibre/gui2/images/arrow-down.svg
Normal file
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 35 KiB |
1028
src/calibre/gui2/images/arrow-up.svg
Normal file
1028
src/calibre/gui2/images/arrow-up.svg
Normal file
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 35 KiB |
@ -7,8 +7,15 @@ Manage translation of user visible strings.
|
||||
import sys, os, cStringIO, tempfile, subprocess, functools, tarfile, re
|
||||
check_call = functools.partial(subprocess.check_call, shell=True)
|
||||
|
||||
try:
|
||||
from calibre.translations.pygettext import main as pygettext
|
||||
from calibre.translations.msgfmt import main as msgfmt
|
||||
except ImportError:
|
||||
sys.path.insert(1, os.path.abspath('..'))
|
||||
from calibre.translations.pygettext import main as pygettext
|
||||
from calibre.translations.msgfmt import main as msgfmt
|
||||
|
||||
|
||||
|
||||
TRANSLATIONS = [
|
||||
'sl',
|
||||
|
Loading…
x
Reference in New Issue
Block a user