Welcome, Guest
Python Scripts for ComicRack

TOPIC: 2iPad (copy to iPad/iPhone: SyncDocs/ComicZeal, FTP, DropBox, WebDAV) v2.01

Re: 2iPad (copy and rename files to be used with SyncDocs and ComicZeal) 6 years 11 months ago #11669

  • mizio66
  • mizio66's Avatar
  • Offline
  • Platinum Boarder
  • Started reading comics at 4... and still counting!
  • Posts: 451
  • Thank you received: 143
  • Karma: 67
Surfal666 wrote:
Take a look at stackoverflow.com/questions/295135/turn-...d-filename-in-python for help with cleaning the file names. The whitelist approach with some code lifted from comment #9 would probably do the trick.

The java exception is a subprocess timeout. Notice that os.system is a blocking function (you can't click back into the main comicrack app until after the exception fires). Try invoking syncdocs with os.spawn or even better Popen. (See 17.1.3.4 on docs.python.org/library/subprocess.html#subprocess-replacements and really you can just throw away the pid.)

Thanks for the tips...I'm learning a lot in these days, reninds me of my ol' time as developer... really long time ago!

Would you test this? Is a beta of 1.32 with the changes you suggested, No / in filename and new way to run syncdocs,,, thanks !

(********) For all but surfall (**********)
This is a beta. I would advise not to download it for the moment
(********) For all but surfall (**********)

Attachment not found

Last Edit: 6 years 10 months ago by mizio66.
The administrator has disabled public write access.

Re: 2iPad (copy and rename files to be used with SyncDocs and ComicZeal) 6 years 11 months ago #11674

  • Surfal666
  • Surfal666's Avatar
  • Offline
  • Senior Boarder
  • Posts: 64
  • Thank you received: 4
  • Karma: 2
The change for copying forward slashes works. They make it to the syncdocs folder and I see them in the list when it runs. I'm not able to get ComicZeal to display them, but I really don't think that has anything to with your script.

No joy on the execution exception.

(ComicZeal itself kinda sucks. ComicBookLover has a better interface but a worse way of handling metadata. Know of any other comic reader apps for iOS?)
The administrator has disabled public write access.

Re: 2iPad (copy and rename files to be used with SyncDocs and ComicZeal) 6 years 10 months ago #11795

  • mizio66
  • mizio66's Avatar
  • Offline
  • Platinum Boarder
  • Started reading comics at 4... and still counting!
  • Posts: 451
  • Thank you received: 143
  • Karma: 67
Last version 1.32 is in the first post.

Changelog:
v 1.32 - 21 Jan 2011 - More invalid characters removed from filename - launching SyncDocs in a proper/better way

Bugs or enhancemente upon request :unsure:
The administrator has disabled public write access.

Re: 2iPad (copy and rename files to be used with SyncDocs and ComicZeal) 6 years 10 months ago #11808

  • perezmu
  • perezmu's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 1114
  • Thank you received: 64
  • Karma: 51
Thanks! I love this, really!
The administrator has disabled public write access.

Re: 2iPad (copy and rename files to be used with SyncDocs and ComicZeal) 6 years 10 months ago #11809

  • bronzeage
  • bronzeage's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Surfal666 wrote:
(ComicZeal itself kinda sucks. ComicBookLover has a better interface but a worse way of handling metadata. Know of any other comic reader apps for iOS?)

iComic Viewer HD is my favorite, although not cheap at $9.99. If you want a freebie, ComicBookLover or ComicFlow are pretty basic but functional options.
The administrator has disabled public write access.

Re: 2iPad (copy and rename files to be used with SyncDocs and ComicZeal) 6 years 10 months ago #12171

  • mizio66
  • mizio66's Avatar
  • Offline
  • Platinum Boarder
  • Started reading comics at 4... and still counting!
  • Posts: 451
  • Thank you received: 143
  • Karma: 67
V1.4 adds the possibility to transfer comics via FTP.

Define the configuration in the main screen, checking the Config box.

Hopr you'll enjoy,

ciao!
The administrator has disabled public write access.
The following user(s) said Thank You: perezmu

Re: 2iPad (copy and rename files to be used with SyncDocs and ComicZeal) 6 years 10 months ago #12303

  • perezmu
  • perezmu's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 1114
  • Thank you received: 64
  • Karma: 51
Hi, I get this error: "no module called ftplib"
The administrator has disabled public write access.

Re: 2iPad (copy and rename files to be used with SyncDocs and ComicZeal) 6 years 10 months ago #12311

  • mizio66
  • mizio66's Avatar
  • Offline
  • Platinum Boarder
  • Started reading comics at 4... and still counting!
  • Posts: 451
  • Thank you received: 143
  • Karma: 67
mmmmm

could be i have another version of ironpython...ro i just forget to add the ftplib.py!!!
attached the new build, same release, in first post.
The administrator has disabled public write access.

Re: 2iPad (copy and rename files to be used with SyncDocs and ComicZeal) 6 years 10 months ago #12314

  • perezmu
  • perezmu's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 1114
  • Thank you received: 64
  • Karma: 51
Thanks!
The administrator has disabled public write access.

Re: 2iPad (copy/rename to iPad/iPhone with SyncDocs and ComicZeal or FTP app) v1.5 6 years 9 months ago #12438

  • mizio66
  • mizio66's Avatar
  • Offline
  • Platinum Boarder
  • Started reading comics at 4... and still counting!
  • Posts: 451
  • Thank you received: 143
  • Karma: 67
;) Version 1.5 is out !!! Get it in the first post !!! :woohoo:

# v 1.5 - 27 Feb 2011 - Corrected some problems with saving INI file - added debug prints - corrected some default folders

Enjoy,

M
The administrator has disabled public write access.
Time to create page: 1.125 seconds

Who's Online

We have 882 guests and 4 members online