Welcome, Guest
Python Scripts for ComicRack

TOPIC: Duplicates Manager (v Alpha - 0.6)

Duplicates Manager (v Alpha - 0.6) 9 months 3 weeks ago #49253

  • krandor
  • krandor's Avatar
  • Offline
  • Gold Boarder
  • Posts: 313
  • Thank you received: 34
  • Karma: 5
This is a script I personally use a lot mainly because I'd rather download the same comic 2-3 times then miss one and if you do that you have to filter out the dupes in some way.

The script works well especially with my mod which was then expanded on to look at CVDB value for dupes.

The only issue is there are certain characters or strings that cause it to throw an exception which is annoying. I'd almost rather it just continue and ignore the exception then balk like it does because my process when they happens is to grab half the comics, run DM and then if that fails, run it on the other half and rinse repeat until I find the bad comic. It works but is time consuming.

So if I get to the point where I know if I run DM on these two dupes and that is what throws the exception, I normally just manually delete one and I'm good. What can I do to gather information to help determine why it is throwing an exception so we can find a fix? I appreciate any help anybody can give and I'll do what I can to capture that data. In fact I'm currently in the middle of doing the half by half process right now.
The administrator has disabled public write access.

Duplicates Manager (v Alpha - 0.6) 9 months 3 weeks ago #49254

  • krandor
  • krandor's Avatar
  • Offline
  • Gold Boarder
  • Posts: 313
  • Thank you received: 34
  • Karma: 5
This current issue was an issue number "1/2". Script wouldn't handle that and that makes sense that a non-number if the number field could cause the script an issue..
The administrator has disabled public write access.

Duplicates Manager (v Alpha - 0.6) 9 months 3 weeks ago #49262

  • boshuda
  • boshuda's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 335
  • Thank you received: 86
  • Karma: 10
krandor wrote:
This current issue was an issue number "1/2". Script wouldn't handle that and that makes sense that a non-number if the number field could cause the script an issue..

It's probably the character encoding. Python 2.7 defaults to ANSI, but various tools work in utf8, including ComicRack itself. So when you try to use the characters outside of that ANSI range (like ½) Python 2.7 doesn't know what to do with it, so you get the exception.

From duplicatesmanager.py, add the sys.setdefaultencoding("utf8") line, or use the attached file.

File Attachment:

File Name: duplicatesmanager.zip
File Size:5 KB


#########
#
#    Import section

import sys, traceback
import re
import clr
import System
import System.IO
from System.IO import Path, Directory, File, FileInfo

sys.setdefaultencoding("utf8")

clr.AddReference("System.Windows.Forms")
from System.Windows.Forms import DialogResult, MessageBox, MessageBoxButtons, MessageBoxIcon
The administrator has disabled public write access.
The following user(s) said Thank You: perezmu, James Spaceman

Duplicates Manager (v Alpha - 0.6) 9 months 3 weeks ago #49291

  • krandor
  • krandor's Avatar
  • Offline
  • Gold Boarder
  • Posts: 313
  • Thank you received: 34
  • Karma: 5
Thanks. I,l try that. I think character encoding is the biggest issues I'm seeing. No issues this week even without your patch while I plan to apply this weekend.
The administrator has disabled public write access.

Duplicates Manager (v Alpha - 0.6) 5 months 3 days ago #49895

  • Zaphod
  • Zaphod's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
Hey! Thank you for an amazing App!!! Im VEEERY New to all this with Comicrack & the Scripts (though been downloading digital comics for a long time). And was hoping for some help... I'm adding in 0 day packs, doing the comic vine scrapper on them, then run duplicate manager on them, and then eventually when all that is done... I will run Library Organizer (hopefully those are the right steps lol?). I've already scrapped and run duplicate manager on 2018 0 day packs and now working on 2017 packs. But from the start ive run into the same problem: While Most Duplicates seem to removed, many still remain.

Here is an example (see attachment)... I'll Do Action Comics 995 - 999 (though much more duplicates). I attached a photo of what happens. But basically it says:
Script Execution completed correctly on: 15 books.
- 5 duplicated groups processed.
- 5 duplicated groups remain.
- 15 comics remain.

I was just seeing if there was a way to still use Duplicate Manager to remove these duplicates? What does the groups processed mean? I mean.. is their a way to view the groups? LoL basically seeing if theres a way to remove the rest of the duplicates without manually going through everything lol.

........

One last question... sorry! Does it matter if the folder the dump folder __dupes__ is in a Drive that is pretty full? Wasn't sure if that could be or in the future be a problem if it can't hold the duplicates. Only if its a problem... Is there a way to change the drive where the duplicates go?
The Comic packs themselves are held on a different drive with plenty of space.

Appreciate any help!
Attachments:
Last Edit: 5 months 3 days ago by Zaphod.
The administrator has disabled public write access.

Duplicates Manager (v Alpha - 0.6) 4 months 3 weeks ago #50033

  • perezmu
  • perezmu's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 1135
  • Thank you received: 64
  • Karma: 51
The administrator has disabled public write access.
Time to create page: 0.183 seconds

Who's Online

We have 126 guests and 2 members online