5
5
__copyright__ = '2014, Joey Korkames <github.com/kfix>'
6
6
__docformat__ = 'restructuredtext en'
7
7
8
- PLUGINNAME = 'djvumaker' # Name of the plugin
8
+ PLUGINNAME = 'djvumaker'
9
+ PLUGINVER = (1 ,0 ,0 )
9
10
10
- #run this file directly to self-install the plugins to calibre
11
11
if __name__ == '__main__' :
12
- import os , sys
13
- os .system ("calibre-customize -b %s" % os .path .dirname (os .path .abspath (__file__ )))
14
- print 'plugin installed.'
15
- print 'install support programs with: `calibre-debug -r djvumaker install_deps`'
16
- print 'test & debug with: `calibre-debug -r djvumaker -- test.pdf`'
12
+ import sys
13
+ sys .stdout .write ("." .join (str (i ) for i in PLUGINVER )) #Makefile needs this to do releases
17
14
sys .exit ()
18
15
19
16
import errno , os , sys , subprocess , traceback
@@ -143,7 +140,7 @@ class DJVUmaker(FileTypePlugin, InterfaceActionBase): #multiple inheritance for
143
140
description = 'Convert raster-based document files (Postscript, PDF) to DJVU with GUI button and on-import'
144
141
supported_platforms = ['linux' , 'osx' , 'windows' ] # Platforms this plugin will run on
145
142
author = 'Joey Korkames' # The author of this plugin
146
- version = ( 1 , 0 , 1 ) # The version number of this plugin
143
+ version = PLUGINVER # The version number of this plugin
147
144
file_types = set (['pdf' ,'ps' , 'eps' ]) # The file types that this plugin will be automatically applied to
148
145
on_postimport = True # Run this plugin after books are addded to the database
149
146
minimum_calibre_version = (1 , 0 , 0 ) #needs the new db api and id bugfix
@@ -163,8 +160,8 @@ def prints(p): print p
163
160
self .postimport (id_or_path , fmt )
164
161
elif id_or_path == "convert_all" :
165
162
'`calibre-debug -r djvumaker convert_all`'
166
- prints ("Copy -convert all PDFs to DJVU? (press CTRL+C to abort) " )
167
- icl_user = raw_input ('' )
163
+ prints ("Press Enter to copy -convert all PDFs to DJVU, or CTRL+C to abort... " )
164
+ raw_input ('' )
168
165
from calibre .library import db
169
166
db = db () # initialize calibre library database
170
167
for book_id in list (db .all_ids ()):
0 commit comments