Welcome, Guest
Python Scripts for ComicRack

TOPIC: Export/Import eComic info via XML file

Export/Import eComic info via XML file 9 years 9 months ago #748

  • wadegiles
  • wadegiles's Avatar
  • Offline
  • Gold Boarder
  • Posts: 248
  • Thank you received: 3
  • Karma: 20
I wrote this script to "backup" the information ComicRack saves to the alternate data streams in NTFS file systems. The information is saved as an XML file named the same as the eComic file but with an "xml" extension.

To install, download the attached ZIP file and extract the contents to your \ComicRack\Scripts folder. Restart ComicRack and right click on the library or a selected group of comics in the list window. Right click and select Automation->Export Comic Info from the menu. When the script completes a Message Box will notify you. If for some reason the XML can't be generated for a file, it will be skipped and the next file is examined.

One limitation of the script is that if you have two eComics of the same name in the same folder but of different eComic types, the XML will only be valid for the last file the script processed. To overcome this limitation, you will have to rename one of the files.

File Attachment:

File Name: ExportComi...L1_0.zip
File Size:8 KB
Last Edit: 9 years 9 months ago by wadegiles.
The administrator has disabled public write access.

Re:Export eComic info to XML file 9 years 9 months ago #750

  • Knight Rider
  • Knight Rider's Avatar
  • Offline
  • Expert Boarder
  • Posts: 135
  • Thank you received: 11
  • Karma: 16
In case of a reinstall of the operation system, how i import the information in this files?
The administrator has disabled public write access.

Re:Export eComic info to XML file 9 years 9 months ago #751

  • wadegiles
  • wadegiles's Avatar
  • Offline
  • Gold Boarder
  • Posts: 248
  • Thank you received: 3
  • Karma: 20
I'm working on the script to do that, but I thought everyone might want this one as soon as I finished it.

Let me know if you have problems with this script in the mean time.
The administrator has disabled public write access.

Re:Export eComic info to XML file 9 years 9 months ago #756

  • Knight Rider
  • Knight Rider's Avatar
  • Offline
  • Expert Boarder
  • Posts: 135
  • Thank you received: 11
  • Karma: 16
it work very fine, thanks.
don't have bugs at the moment
The administrator has disabled public write access.

Re:Export/Import eComic info via XML file 9 years 9 months ago #757

  • wadegiles
  • wadegiles's Avatar
  • Offline
  • Gold Boarder
  • Posts: 248
  • Thank you received: 3
  • Karma: 20
Here is the complementary script to import eComic info from a corresponding XML file. Please note that the XML file MUST have the exact same base file name as the eComic file. Any variation other than the file extension will silently fail to import the data. In addition, the import doesn't care about existing information for the eComic so any fields coming from the import will automatically be overwritten.

Installation is the same as the export script. After restarting Comic Rack, select some eComics for which there is a corresponding XML file and right click to bring up the menu. There will now be a Automation->Import Comic Info from XML entry which you can select to start the import process.

File Attachment:

File Name: ImportComi...L1_0.zip
File Size:8 KB
The administrator has disabled public write access.

Re:Export/Import eComic info via XML file 9 years 9 months ago #758

  • Knight Rider
  • Knight Rider's Avatar
  • Offline
  • Expert Boarder
  • Posts: 135
  • Thank you received: 11
  • Karma: 16
wow, that's a good news, thank you wadegiles, with your scripts comicrack is perfect.
The administrator has disabled public write access.

Re:Export/Import eComic info via XML file 9 years 9 months ago #764

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

Re:Export/Import eComic info via XML file 9 years 1 month ago #2205

  • EyeCandy
  • EyeCandy's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
Hi

Could you help me import my comic book data into Comic Rack?

I have an XML file (sample below) with data for approx 8000 comics. I would like to use your script to import this data into comic rack.

<comic>
<id>8786</id>
<name>X-23 Target X 01</name>
<location>E:\Shared Media\Comics\0277 X-23 Target X\X-23 Target X 01.cbz</location>
<image>C:\Users\TheBigDog\Comic Collector\Images\X23TargetX1ATargetXP130241_f.jpg</image>
<title>Part One: Innocence Lost</title>
<characters>Dr. Martin Sutter; X-23 (Laura Kinney); Sarah Kinney; Zander Rice; Kimura; Captain America (Steve Rogers); Daredevil (Matt Murdock)</characters>
<series>X-23: Target X</series>
<publisher>Marvel Comics</publisher>
<issuenr>1</issuenr>
<publicationdate>01/02/07</publicationdate>
<seriesgroup>X-23</seriesgroup>
<fulltitle>Target X, Part One: Innocence Lost</fulltitle>
<allcreators>Christopher Yost; Craig Kyle; Mike Choi; Sonia Oback; Troy Peteri; Mike Choi; Sonia Oback; Axel Alonso; Joe Quesada</allcreators>
<storyarc>Target X</storyarc>
</comic>

I've tried to change the tags to match the ones displayed when you go into the "Get Info" screen but no luck...

Please help..

SW
The administrator has disabled public write access.

Re:Export/Import eComic info via XML file 9 years 1 month ago #2206

  • EyeCandy
  • EyeCandy's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
I figured it out - upper/lowercase problem.... D'oh!

SW
The administrator has disabled public write access.

Re:Export/Import eComic info via XML file 9 years 1 month ago #2207

  • wadegiles
  • wadegiles's Avatar
  • Offline
  • Gold Boarder
  • Posts: 248
  • Thank you received: 3
  • Karma: 20
Cool. Sometimes you just have to externalize the problem to solve it yourself.
The administrator has disabled public write access.
Time to create page: 0.221 seconds

Who's Online

We have 179 guests and 6 members online