11-20-2011, 07:03 AM | #151 |
Grand Sorcerer
Posts: 11,939
Karma: 7219261
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Thanks. Both sets of changes will be in the next release.
|
11-21-2011, 10:52 AM | #152 |
Enthusiast
Posts: 48
Karma: 12654
Join Date: Dec 2009
Location: UK
Device: Likebook Ares, Kindle 3G, Nook STR, 511eb
|
Oh, two other things.
The meta language declaration is deprecated. http://www.w3.org/TR/2011/WD-html-ma...-language.html Should just use Code:
<html lang="en"> Code:
<span style="font-size:large">{{$page_title}}<br></span><span style="font-size:medium">{{$title}}</span></span> Last edited by edent; 11-21-2011 at 10:59 AM. |
11-22-2011, 05:18 AM | #153 |
Grand Sorcerer
Posts: 11,939
Karma: 7219261
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Changes made ...
|
11-22-2011, 10:25 AM | #154 |
Junior Member
Posts: 1
Karma: 10
Join Date: Nov 2011
Device: Kindle
|
I can not get this to work
I have binded the directory to 8060 port so they will goto webaddress and not need a directory. but have also tried adding the folder to an existing settings. Download latest smarty and placed in /SmartyRelease/libs I have edit config.local as follows and i just get a blank page. please help $config['library_dir'] = 'C:\\Users\\jamie\\Calibre Library'; $config['web_dir'] = '/'; $config['smarty_web_dir'] = $config['web_dir'] . '/smarty'; $config['smarty_dir'] = 'C:\Moodle\smartyTemp'; $config['smarty'] = '/SmartyRelease/libs'; edit: forgot to say i have IIS 7.5 and PHP 5.?? Last edited by ruaware; 11-22-2011 at 10:31 AM. |
11-22-2011, 11:29 AM | #155 | |
Grand Sorcerer
Posts: 11,939
Karma: 7219261
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
|
|
11-29-2011, 09:02 AM | #156 |
Junior Member
Posts: 4
Karma: 10
Join Date: Nov 2011
Device: kindle 2011
|
Had some Issues with filetype
Hey there,
thank you very much for the lightweight script. I was figgling around to get it to work yesterday - ending up installing the calibre content server, to just find out it is too much of a resource hog to have it running all the time, for simply just idling around. The problem was, that I could not download any files. Figured out, that it actually did not properly look for the file extensions - patched the version 2.7 to now run smoothly for me. Additionally I changed the behavior for serving images to write the thumbnails to a cache and serve them directly to the client. (Does speed up load times for me) If you are interrested in patches , please let me know. Another question: Do you think it easily possible to create an opds catalog in the php script aswell? Would really enhance the experience (maybe for stanza?) |
11-29-2011, 09:14 AM | #157 | |
Wizard
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
Quote:
|
|
11-29-2011, 09:40 AM | #158 | ||
Grand Sorcerer
Posts: 11,939
Karma: 7219261
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
I and others don't have problems downloading books, so I don't know what you mean when you say 'did not properly look at extensions'. I suppose that the patch will tell me. As for caching thumbnails, I did it and than yanked it out. I found that invalidating the cache (checking mod times on the thumbnail against the cache) cost almost as much as serving the image directly (at least on my servers), and the cache increased both complexity and memory usage. However, it seems to work for you, which is good. Quote:
|
||
11-29-2011, 12:10 PM | #159 |
hopeless n00b
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Curious, does the PHP script have search functionality? For me, that's probably the biggest draw of the native calibre content server.
|
11-29-2011, 12:16 PM | #160 | |
Grand Sorcerer
Posts: 11,939
Karma: 7219261
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
However, the native server also has search. The search box is at the right near the top (see the attachment), and supports (I think) all of calibre's search expressions. Are you looking for something else? |
|
11-29-2011, 01:18 PM | #161 | |
hopeless n00b
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
Last edited by ilovejedd; 11-29-2011 at 01:21 PM. |
|
11-29-2011, 06:11 PM | #162 | |||
Junior Member
Posts: 4
Karma: 10
Join Date: Nov 2011
Device: kindle 2011
|
Quote:
The String $fmt usually has the whole file name in my request (i.e. somebookname.epub). Instead of using epub as the format, the script used the whole bookname including extension to query the database and did not find the required file (hence whitespaces etc have been replaced with '_') That's the issue I had on my server. I was testing your Demo and it works without problems over there Quote:
I am running the script on a plugcomputer with a lowvoltage arm cpu. It does ages to convert the images. Even though there are about 8 php-cgi proccesses spawned, handling all the image requests is a lot for the small server. So by just serving the already converted images through the http server, it does enhance the speed and usability a lot. ;-) Quote:
And last but not least, I would loose the search capabilities that your script / calibre does provide. I am not too familiar with smarty (yet), but if there are some more people that would contribute, we can try to enhance your script to even server a valid opds catalog and thus provide an even more convenient alternative to the resource intensive calibre-server. (There might be a couple of more people out there running a NAS box with an arm cpu that would actually love to use this? ) |
|||
11-30-2011, 12:15 AM | #163 | |
hopeless n00b
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
|
|
12-01-2011, 04:48 AM | #164 |
Junior Member
Posts: 5
Karma: 10
Join Date: Dec 2011
Device: Android
|
Some bugs
Hello.
I'm using calibre php server and i see some bugs in error log: Code:
PHP Notice: Undefined index: page in /tmp/smarty_templates_c/2a71e5f90020f71cbe2b81a3ee8a7666420dac97.file.header.tpl.php on line 79 PHP Notice: Trying to get property of non-object in /tmp/smarty_templates_c/2a71e5f90020f71cbe2b81a3ee8a7666420dac97.file.header.tpl.php on line 79 PHP Notice: Undefined index: use_back in /tmp/smarty_templates_c/2a71e5f90020f71cbe2b81a3ee8a7666420dac97.file.header.tpl.php on line 130 PHP Notice: Trying to get property of non-object in /tmp/smarty_templates_c/2a71e5f90020f71cbe2b81a3ee8a7666420dac97.file.header.tpl.php on line 130 PHP Notice: Undefined index: up_url in /tmp/smarty_templates_c/2a71e5f90020f71cbe2b81a3ee8a7666420dac97.file.header.tpl.php on line 132 PHP Notice: Trying to get property of non-object in /tmp/smarty_templates_c/2a71e5f90020f71cbe2b81a3ee8a7666420dac97.file.header.tpl.php on line 132" while reading response header from upstream, client: 91.116.141.14, server: my.host, request: "POST /index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "my.host", referrer: "http://my.host/ Greetings! More info: The smarty-libs are the latest version: 3.1.5 Last edited by ogarcia; 12-01-2011 at 04:52 AM. Reason: Added version of smarty-libs |
12-01-2011, 05:25 AM | #165 | |
Grand Sorcerer
Posts: 11,939
Karma: 7219261
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
If I were you, I would start with downgrading smarty to V2 and see if the errors go away. I would also switch to loaded modules, unless there is some overriding reason you want to use fastcgi. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre Command Line usage with PHP | artoros | Related Tools | 13 | 07-01-2010 09:57 AM |
Web Content Server | mezme | Calibre | 7 | 01-08-2010 09:59 PM |
Calibre web server on MAC I cant get to work.. any help appreciated. | stustaff | Calibre | 5 | 01-06-2010 06:05 PM |
Calibre - web server problems | eclpmb | Calibre | 9 | 11-28-2008 02:04 PM |