Apps
Knowledge
People
Register
Login


-
- Content .- Fans (14) .- Knowledge Base  . 

EPub and Comics online reader (oc5)

   0.7.5  

ownCloud Productivity

Score 67%
EPub and Comics online reader (oc5)
zoom


EPub and Comics online reader (oc5)
zoom


Homepage:  Link
other:  Link
Minimum required   ownCloud 5
Maximum required   ownCloud 5
Downloads:  5741
Submitted:  Mar 20 2013
Updated:  Aug 18 2014

Description:

let you read your ebooks and comics online !

This requires that your servers detects the mime type of epubs and comics : application/epub+zip
application/x-cbr
application/x-cbz

If it not the case :
- complete owncloud/lib/mimetypes.list.php
- then refresh your database because the mime type of each file is stored in the database (move the content of your data directory out of owncloud, visit your owncloud, restore the content of your data directory)

In order to read .epub and .cbz, your PHP must be compiled with zip support (wich is often the case)
In order to read .cbr your PHP must have the PECL RAR extension. If it is not the case you can easily compile it after having installed the PECL package.

If the app update is not yet validated, you can get it here : http://www.les-charles.net/files/files_epubviewer_oc5.tar.gz




Changelog:

v0.5.0 : full rewrite of table of content handling. Now the ToC is generated by parsing full book and the full book is loaded in one time. (book progression will be lost, sorry)
v0.5.1 : fixed location system and toc display on mobile devices
v0.5.2 : fixed table of content for books wich correctly use it and have no html titles in content. Incorporated stylesheets are now correctly handled.
v0.6.0 : now you can change font size
v0.6.1 : you can store one bookmark manualy
v0.6.2 : fixed some CSS layout issues. added current page number
v0.7.0 : added shortcut icon for smartphones bookmarks ; added comics cbr/cbz files support
v0.7.1 : fixed some encoding issues. Enhanced CBZ/CBR support
v0.7.2 : added encryption support ; fixed Postgre SQL issues
v0.7.3 : fixed MySql regression
v0.7.4 : fixed syntax error for old PHP
v0.7.5 : fixed DOM error for old PHP

v7.0.0 : created a new app for OwnCloud 7 compatibility (http://apps.owncloud.com/content/show.php?content=166614)

last update : 2014-08-18




LicenseLGPL
All Versions
Send to a friend
Subscribe
Other  Apps  from gRRosminet
Report inappropriate content



goto page: prev   1  2  3  4 

-

 Failed to get table of content

 
 by mhoerche on: Mar 6 2014
 
Score 50%

This message gets to the user if I share a .epub file in owncloud:
Failed to get table of content
EPub.JS Build: 2014.02.27


Reply to this

-
.

 Re: Failed to get table of content

 
 by gRRosminet on: Mar 6 2014
 
Score 50%

Could you give some complementary informations :
- owncloud version
- php version
- apache error logs (if you can activate debug in files_epubviewer/ajax/readepub.php it would be helpfull)
- are you using encryption ?


Reply to this

-

 Re: Re: Failed to get table of content

 
 by mhoerche on: Mar 6 2014
 
Score 50%

OS: opesuse 13.1
owncloud-6.0.2-6.1
PHP 5.4.20 (cli)
Apache 2.4.6
no encryption

i have activate debug in readepub.php but can't see anything in /var/log/apache2/error_log


Reply to this

-

 Re: Re: Re: Failed to get table of content

 
 by gRRosminet on: Mar 7 2014
 
Score 50%

It's really strange that you have no log.
Could you take a look at the javascript console in your navigator ?


Reply to this

-

 Re: Re: Re: Re: Failed to get table of content

 
 by mrolston on: Mar 21 2014
 
Score 50%

i also receive this error.
System Details:
ubuntu 12.04
PHP 5.3.10-1ubuntu3.10 with Suhosin-Patch
owncloud 6.0.2 (stable)

the associated log entry is

PHP Fatal error: Class 'RarArchive' not found in /var/www/owncloud/apps/files_epubviewer/ajax/readcb.php on line 49, referer: https://my.domain.com/index.php/apps/files_epubviewer/viewer.php?dir=/Comics/Ex%20Machina&file=Ex%20Machina%20001%20(Resin-DCP).cbr

thanks for your help.


Reply to this

-

 Re: Re: Re: Re: Re: Failed to get table of content

 
 by gRRosminet on: Mar 21 2014
 
Score 50%

To read cbr files, you must install the PECL RAR extension wich is quite never provided by distros. PECL is easy to install (you might find some php-PECL package and php-devel package). Then PECL will download source and compile modules. All you have to do is fill the php.ini in the apache configuration.


Reply to this

-

 Re: Re: Re: Re: Re: Re: Failed to get table of con

 
 by arunciks on: May 13 2014
 
Score 50%

I think these type of errors might be caused by epub format... or some sort of epub file handling.
I receive this error with some of the epub files, but not all of them. The file opens normally in standalone epub viewer.
The same error: EPub.JS Build: 2014.02.27
occurs in Ubuntu server +Apache2+php5+ownCloud 6.0.1+dfsg-1ubuntu1 (Debian) (stable) and on Windows IIS+php-cgi 5+ownCloud 6.0.2 (stable).

The log does log these errors:
Warning PHP DOMDocument::loadHTML(): Tag image invalid in Entity, line: 14 at /usr/share/owncloud/apps/files_epubviewer/ajax/epubhandler.php#132
Warning PHP DOMDocument::loadHTML(): Tag svg invalid in Entity, line: 14 at /usr/share/owncloud/apps/files_epubviewer/ajax/epubhandler.php#132
Warning PHP DOMDocument::loadHTML(): Tag image invalid in Entity, line: 15 at /usr/share/owncloud/apps/files_epubviewer/ajax/epubhandler.php#125
Warning PHP DOMDocument::loadHTML(): Tag svg invalid in Entity, line: 14 at /usr/share/owncloud/apps/files_epubviewer/ajax/epubhandler.php#125



-
.

 Re: Re: Re: Re: Re: Re: Failed to get table of con

 
 by gRRosminet on: May 13 2014
 
Score 50%

It looks like the HTML contained inside your epub is not valid ...



-
.

 help me db error

 
 by yongdev on: Mar 24 2014
 
Score 50%

help me Activation error..
My OC6.0.2

An exception occurred while executing 'INSERT INTO `oc_appconfig` ( `appid`, `configkey`, `configvalue` ) VALUES( ?, ?, ? )': SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'appid' cannot be null


Reply to this

-
.

 Re: help me db error

 
 by yongdev on: Mar 24 2014
 
Score 50%

Resolved
Thank you for a great plugin


Reply to this

-
.

 How to start?

 
 by Narddawg314 on: Mar 27 2014
 
Score 50%

I downloaded the gzip file and extracted it to the apps directory under owncloud. Then I noticed this in the instructions:
Quote:
In order to read .cbr your PHP must have the PECL RAR extension. If it is not the case you can easily compile it after having installed the PECL package.


I googled how to complete this action and found this command for Ubuntu:
Quote:
pecl -v install rar


ran that and everything installed correctly

now I'm not sure what's left to make this work. I disabled the app in the control panel on Owncloud, and then re-enabled. After I re-enabled, I got an error:
Quote:
App "" can't be installed because it is not compatible with this version of ownCloud

That doesn't make sense...I am running ownCloud 5.0 and I'm guessing there should be something in between the "" telling me what app can't be installed. Also, the app successfully enabled before I installed the rar PECL package.

Does anyone know what this means:
Quote:
.... you can easily compile it after having installed the PECL package.


How can I get this to work?


Reply to this

-

 Re: How to start?

 
 by gRRosminet on: Mar 27 2014
 
Score 50%

Hi
Concerning the pecl rar module you are just missing the php.ini configuration (a reference to the library you have compiled must be added to the extension variable)

Concerning the activation error I dont understand : Im using oc 5 too and have no problem. Are you using v5.0.0 or is it a quite up to date version ?


Reply to this

-

 Re: Re: How to start?

 
 by Narddawg314 on: Mar 27 2014
 
Score 50%

Quote:
Concerning the pecl rar module you are just missing the php.ini configuration (a reference to the library you have compiled must be added to the extension variable)


I have edited the php.ini file in /etc/php5/apache2/ to include "extension=rar.so" if that is what you mean by that. I am confused when I read "the library I compiled". When does this happen? I didn't compile anything...


Reply to this

-

 Re: Re: How to start?

 
 by Narddawg314 on: Mar 27 2014
 
Score 50%

Quote:
Concerning the pecl rar module you are just missing the php.ini configuration (a reference to the library you have compiled must be added to the extension variable)


I have edited the php.ini file in /etc/php5/apache2/ to include "extension=rar.so" if that is what you mean by that. I am confused when I read "the library I compiled". When does this happen? I didn't compile anything...


Reply to this

-

 Re: Re: Re: How to start?

 
 by Narddawg314 on: Mar 27 2014
 
Score 50%

I don't know why that posted twice...sorry about that...

anyway. I found out why it failed to enable the second time. If you disable this application, it deletes the directory from the apps folder.. That still doesn't help me get it to work though. Whenever I click on a .cbr file, Owncloud presents the file for download instead of opening as a comic to read. What am I doing wrong?


Reply to this

-

 Re: Re: Re: Re: How to start?

 
 by Narddawg314 on: Mar 27 2014
 
Score 50%

I understand what you meant about compiling now.

Quote:
Build process completed successfully
Installing '/usr/lib/php5/20090626+lfs/rar.so'
about to commit 395 file operations for rar
successfully committed 395 file operations
install ok: channel://pecl.php.net/rar-3.0.2
configuration option "php_ini" is not set to php.ini location
You should add "extension=rar.so" to php.ini


That is the output after I installed the rar.so and compiled. I then added the line to php.ini to include rar.so

I still don't know how I'm suppose to use ePubViewer


Reply to this

-

 Re: Re: Re: Re: Re: How to start?

 
 by gRRosminet on: Mar 27 2014
 
Score 50%

Well this might be due to mime error. Have you adjusted your owncloud detection ?
If yes have you made those adjustments before or after uploading cbr file? Owncloud does not update mime info after first upload so you might have to download, delete and then re upload the file


Reply to this

-

 Re: Re: Re: Re: Re: Re: How to start?

 
 by Narddawg314 on: Mar 27 2014
 
Score 50%

What does that mean?

Quote:
adjust owncloud detection


I can definitely try downloading, deleting, and re-upload...have not done that.



-

 Re: Re: Re: Re: Re: Re: How to start?

 
 by gRRosminet on: Mar 27 2014
 
Score 50%

You have to complete owncloud/lib/mimetypes.list.php with cbr/cbz mime types



-

 Re: Re: Re: How to start?

 
 by gRRosminet on: Mar 27 2014
 
Score 50%

Actualy when you do "pecl install rar" it downloads and compile the extension


Reply to this

-

 Re: Re: Re: Re: How to start?

 
 by Narddawg314 on: Mar 27 2014
 
Score 50%

Thank you for confirming that! Now how do you use the application? I have .cbr files stored in a folder and when I click on them they try to download..how do I use this application to read them instead of download???


Reply to this

-

 Re: Re: Re: Re: How to start?

 
 by Narddawg314 on: Mar 27 2014
 
Score 50%

Quote:
You have to complete owncloud/lib/mimetypes.list.php with cbr/cbz mime types


do I need to edit the file or install something additional and edit the file as well?

Thank you very much for helping :)


Reply to this

-

 Re: Re: Re: Re: How to start?

 
 by Narddawg314 on: Mar 27 2014
 
Score 50%

Quote:
You have to complete owncloud/lib/mimetypes.list.php with cbr/cbz mime types


do I need to edit the file or install something additional and edit the file as well?

Thank you very much for helping :)


Reply to this

-

 Re: Re: Re: Re: Re: How to start?

 
 by gRRosminet on: Mar 27 2014
 
Score 50%

You only have to complete the file


Reply to this

-

 Re: Re: Re: Re: Re: How to start?

 
 by Narddawg314 on: Mar 27 2014
 
Score 50%

OK, I'm good now! To sum it up..if you've already uploaded the files before doing these steps, you'll need to delete them and reupload.

1) install PECL
sudo pecl -v install rar


2) add this line
extension=rar.so
to
/etc/php5/apache2/php.ini


3) add this line
'cbr' => 'application/x-cbr'
to
/PATH_TO_owncloud/lib/mimetypes.list.php



Then restart Apache webserver!


Reply to this

-

 Re: Re: Re: Re: Re: Re: How to start?

 
 by gRRosminet on: Mar 27 2014
 
Score 50%

Happy To see that it finally works for you too 😊



-

 Re: Re: Re: Re: How to start?

 
 by mrolston on: Mar 27 2014
 
Score 50%

oh that's perfect works like a charm. thanks mate!


Reply to this

-

 Problem with cbz?

 
 by jadefalkner on: Apr 7 2014
 
Score 50%

Alright, i have a problem with cbz-files, cbr works fine for me:

The log says

[Mon Apr 07 19:45:18 2014] [error] [client xx.xx.xx.xx] ==== Opening file de7fffb09f6f930ea977700e1e90b921cbz, referer: https://xxx/index.php/apps/files_epubviewer/ajax/epubhandler.php?dir=%2F&file=Daken+Dark+Wolverine+%2312.cbz&function=getContent
[Mon Apr 07 19:45:18 2014] [error] [client xx.xx.xx.xx] ext = cbz, referer: https://xxx/index.php/apps/files_epubviewer/ajax/epubhandler.php?dir=%2F&file=Daken+Dark+Wolverine+%2312.cbz&function=getContent
[Mon Apr 07 19:45:18 2014] [error] [client xx.xx.xx.xx] opening as a ZIP file, referer: https://xxx/index.php/apps/files_epubviewer/ajax/epubhandler.php?dir=%2F&file=Daken+Dark+Wolverine+%2312.cbz&function=getContent
[Mon Apr 07 19:45:18 2014] [error] [client xx.xx.xx] looking for Daken - Dark Wolverine 12 (2011) (DarthScanner Minutemen-ThosTew)/Daken 12_0001.jpg, referer: https://xxx/index.php/apps/files_epubviewer/ajax/epubhandler.php?dir=%2F&file=Daken+Dark+Wolverine+%2312.cbz&function=getContent

for me it looks fine, but there is nothing else to see than the cover and a "circle of death". The apache process takes 100% of a cpu.

Any ideas?


Reply to this

-

 Almost working

 
 by rschauer on: Apr 25 2014
 
Score 50%

Hi! Thanks for your work on this app; I'm excited to get it working.

I'm running 0.7.5 on OC 6.0.2. Server is Debian Wheezy, PHP 5.4.4.

I can open epub files only if the table of contents is OK , otherwise I get the "Failed to get table of contents" error (I'm assuming it's because the file has a bad TOC; I didn't test epub extensively). This isn't a big issue for me; the real problem is that cbr and cbz files don't work at all. Both Chrome and FF want to download the files.

I have installed pecl and compiled the rar module, added the extensions line to php.ini, and added the mimetypes to owncloud/lib/private/mimetypes.list.php. Any ideas?


Reply to this

-

 Re: Almost working

 
 by gRRosminet on: Apr 25 2014
 
Score 50%

Hello
I think this is because your cbr/cbz files where uploaded before you completed the mimetypes.list.php
You must download, remove and re-upload the files (usualy I rename the directory containing files using ssh to force OC scan)


Reply to this

-

 Re: Re: Almost working

 
 by rschauer on: Apr 25 2014
 
Score 50%

Thanks for the response. I don't think that's the case, though. I already tried moving the files and refreshing OC, then re-adding them. It's an "external storage" mount point using SFTP; could that be making a difference? The epub files that work are shared the same way, so I kind of don't think so...


Reply to this

-

 Re: Re: Re: Almost working

 
 by gRRosminet on: Apr 25 2014
 
Score 50%

It's the only ideau I have for this behaviour.

If you inspect a file row with a tool like firebug, you should have something like this :
<tr data-permissions="27" data-size="35889057" data-mime="application/x-cbr" data-type="file" data-file="Action Comics 01.cbz" data-id="14984">

if data-mime is miss-filled, it's because owncloud didn't detect it properly => the database refresh is needed.
Otherwise it might be a javascript error (take a look at JS console in firebug or equivalent).

you can clean OC database directly with mysql client or phpmyadmin :
DELETE FROM oc_filecache WHERE LOWER(name) LIKE '%.cbr' OR LOWER(name) LIKE '%.cbz'


Reply to this

-

 Re: Re: Re: Re: Almost working

 
 by rschauer on: Apr 25 2014
 
Score 50%

An example of the code line you pointed me to:
<tr class="selected" data-permissions="27" data-etag="5359b396f388a" data-size="82306434" data-mime="application/octet-stream" data-type="file" data-file="28 Days Later - The Aftermath.cbr" data-id="3797">

So what did I do wrong? Does the mimetypes file need to be copied somewhere, or did I add the wrong line? This is what the entries I added look like:

'cbr' => 'application/x-cbr',
'cbz' => 'application/x-cbz'

Sorry about the double/triple posts by the way; I'll try not to do that again.


Reply to this

-

 Re: Re: Re: Re: Re: Almost working

 
 by rschauer on: Apr 26 2014
 
Score 50%

It was definitely a problem with the database. I don't know why moving the directory out and back again didn't refresh it. However, I reinstalled OC and chose MySQL instead of SQLite and the app works fine now! Thanks for your help.

Now, two questions:
1) Is there any way to enable pre-loading? Turning pages is very slow, especially on larger images (I'm on the local network at the moment, so I don't think it's just download time).
2) Is there a chance a future version could support additional eBook formats? I personally would get a lot more use out of the eBook features if .mobi was supported, for example.


Reply to this

-

 Re: Re: Re: Re: Re: Re: Almost working

 
 by gRRosminet on: Apr 26 2014
 
Score 50%

1) Pre-loading could be done. I didn't have time to do it, so maybe later

2) If I can find specs to decode mobi files it might be realisable ... when I'll have some time



-

 Re: Re: Almost working

 
 by rschauer on: Apr 25 2014
 
Score 50%

Thanks for the response. I don't think that's the case, though. I already tried moving the files and refreshing OC, then re-adding them. It's an "external storage" mount point using SFTP; could that be making a difference? The epub files that work are shared the same way, so I kind of don't think so...


Reply to this

-

 Re: Re: Almost working

 
 by rschauer on: Apr 25 2014
 
Score 50%

Thanks for the response. I don't think that's the case, though. I already tried moving the files and refreshing OC, then re-adding them. It's an "external storage" mount point using SFTP; could that be making a difference? The epub files that work are shared the same way, so I kind of don't think so...


Reply to this

-

 Owncloud 7

 
 by horstk on: Aug 17 2014
 
Score 50%

Are there any plans to support Owncloud 7?


Reply to this

-

 Re: Owncloud 7

 
 by gRRosminet on: Aug 17 2014
 
Score 50%

so far, there is no plan.
As I think I'll migrate my own server from oc5 to oc7 I sould migrate this app too at the same time.


Reply to this

-
.

 Re: Owncloud 7

 
 by gRRosminet on: Aug 18 2014
 
Score 50%

Ok, it's done.
As this is not backward compatible, I have added a new app : http://apps.owncloud.com/content/show.php?content=166614


Reply to this

goto page: prev   1  2  3  4 

Add commentBack




-
 
 Who we are
Contact
Register
Explore
Apps
Knowledge
People
Participate
Add App
Public API
About apps.ownCloud.com
Legal Notice
Report Abuse
 

Copyright 2011-2016 apps.ownCloud.com Team  
All rights reserved. apps.ownCloud.com is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.