Welcome, Guest
Python Scripts for ComicRack

TOPIC: malor89's Perl Scripts

Re: malor89's Perl Scripts 6 years 9 months ago #11930

  • perezmu
  • perezmu's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 1114
  • Thank you received: 64
  • Karma: 51
Hi Malor,

Regarding the duplicate finder, I have a question and a humble request:

1) Question: I cannot understand this completely...
malor89 wrote:
Finddups.pl
Example Output:
/comics/Flatman/Flatman Compilation.cbz: [96]
   /comics/Flatman/Flatman 1 of 4.cbr: [13 of 13]

/comics/Ribbon/Ribbon 01.cbr: [26]
   /comics/Misc/Ribbon #1 - The Flattening (noads).cbr: [26 of 26]
   /comics/Unsorted/Ribbon 001 (of 04) (c2c) (2009).zip: [26 of 32]
Number in brackets is the number of files in the archive or the number matched out of the total number of files.

2) Request: Would it be hard to make a script that when finds files with exactly the same name except for 'noads' or 'c2c' would delete (or move) one of them?

Thanks.
The administrator has disabled public write access.

Re: malor89's Perl Scripts 6 years 9 months ago #12024

  • cYo
  • cYo's Avatar
  • Offline
  • Moderator
  • Posts: 3476
  • Thank you received: 676
  • Karma: 181
To my knowledge there is no perl implementation for .NET that can be used for scripting. If there is one, I can look into it.
The administrator has disabled public write access.

Re: malor89's Perl Scripts 6 years 9 months ago #12041

  • malor89
  • malor89's Avatar
  • Offline
  • Senior Boarder
  • Posts: 73
  • Thank you received: 16
  • Karma: 17
perezmu wrote:
Hi Malor,

Regarding the duplicate finder, I have a question and a humble request:

1) Question: I cannot understand this completely...

2) Request: Would it be hard to make a script that when finds files with exactly the same name except for 'noads' or 'c2c' would delete (or move) one of them?

Thanks.
Sorry, I forgot to answer this. The finddups.pl script works by looking inside the comic archives, so it can find duplicates reguardless of the file name. It wouldn't be too hard to make a script that just looks for the c2c and noads versions of the same archive. I'll see what I can do.
The administrator has disabled public write access.

Re: malor89's Perl Scripts 6 years 9 months ago #12231

  • malor89
  • malor89's Avatar
  • Offline
  • Senior Boarder
  • Posts: 73
  • Thank you received: 16
  • Karma: 17
finddupversions.pl
- Looks for both the c2c and noads version of the same comic archive
- Can set it to keep either the c2c or the noads version

This just does a simple name comparison, so it only matching the c2c and noads version by the same scanner, etc.

File has been updated in a later post.
Last Edit: 6 years 9 months ago by malor89.
The administrator has disabled public write access.

Re: malor89's Perl Scripts 6 years 9 months ago #12234

  • 600WPMPO
  • 600WPMPO's Avatar
  • Offline
  • Moderator
  • Posts: 3788
  • Thank you received: 557
  • Karma: 232
Thanks a lot malor!! I have also updated the first post with the new script..

However, when I try to run this script in a folder where I purposely have both c2c & noads versions of the same comic, a command prompt appears for a split-second and then disappears without making any changes. :(

Similar to this script, can we have a script (or additional options in this script) that looks for the word 'fixed' in two comic archives having otherwise similar filenames, and keeps the fixed version..?

And any updates to our old scripts? Any new project you working on, malor the mighty? B)
Now Playing: The ComicRack Manual (Online)

See my new comics & gadgets on: Tumblr!
Last Edit: 6 years 9 months ago by 600WPMPO.
The administrator has disabled public write access.

Re: malor89's Perl Scripts 6 years 9 months ago #12238

  • malor89
  • malor89's Avatar
  • Offline
  • Senior Boarder
  • Posts: 73
  • Thank you received: 16
  • Karma: 17
Are you 100% sure the file names are identical except for the c2c or noads? If so post the file names, and I'll see if I can figure out the problem. I can probably add a check for (fixed).

Nope, no other updates.
The administrator has disabled public write access.

Re: malor89's Perl Scripts 6 years 9 months ago #12239

  • 600WPMPO
  • 600WPMPO's Avatar
  • Offline
  • Moderator
  • Posts: 3788
  • Thank you received: 557
  • Karma: 232
malor89 wrote:
Are you 100% sure the file names are identical except for the c2c or noads?
No.. they are not identical
Brightest Day 016 (noads) (2 covers) (Archangel & FP-CPS).cbz
Brightest Day 16(c2c)(2 covers)(DC)(2011)(YZ1).cbz
I thought that the script would just see the name of the series and the issue number to guess that they were dupes. Basically, in the example above, it should just look at the name 'Brightest Day 16' and then let us choose between c2c and noads.. However, we already have the finddups.pl script at our hands for finer duplicate searchers. I guess this is a specialized script that requires 100% exact filenames.
malor89 wrote:
I can probably add a check for (fixed)
Thanks..
Now Playing: The ComicRack Manual (Online)

See my new comics & gadgets on: Tumblr!
Last Edit: 6 years 9 months ago by 600WPMPO.
The administrator has disabled public write access.

Re: malor89's Perl Scripts 6 years 9 months ago #12249

  • malor89
  • malor89's Avatar
  • Offline
  • Senior Boarder
  • Posts: 73
  • Thank you received: 16
  • Karma: 17
finddupversions.pl
- Looks for both the c2c and noads version of the same comic archive
- Can set it to keep either the c2c or the noads version

This just does a simple name comparison, so it only matching the c2c and noads version by the same scanner, etc.

Update:
- Now also scans for a non-fixed version of a (fixed) comic
- The command window now pauses before closing, so you aren't left wondering if it finished of errored out.
Attachments:
Last Edit: 6 years 9 months ago by malor89.
The administrator has disabled public write access.
The following user(s) said Thank You: 600WPMPO

Re: malor89's Perl Scripts 6 years 7 months ago #12965

  • flips
  • flips's Avatar
  • Offline
  • Senior Boarder
  • Posts: 45
  • Thank you received: 9
  • Karma: 1
I am using the setmodified script to try to rename a file based on the folder in the archive and it doesn’t seem to be working for me. I have tried with a number of files and most times I don’t get a renamed.txt file, if I do it is blank. I set restorefilename to 1 of course. Here is an example of the directory inside the cbz file:
The Amazing Spider-Man 650 (2011) (Minutemen-Megatonic)

I’m hoping to be able to get scanner credits back into the tags for my already re-named files. So… if I were to ask…. I would really like to be able to just put the directory name into the tags in one step… :D

Thanks,
flips
The administrator has disabled public write access.

Re: malor89's Perl Scripts 6 years 7 months ago #12966

  • malor89
  • malor89's Avatar
  • Offline
  • Senior Boarder
  • Posts: 73
  • Thank you received: 16
  • Karma: 17
Do the .cbz file names already include anything in parentheses? The script skips renaming files that already have ()'s.
The administrator has disabled public write access.
Time to create page: 0.215 seconds

Who's Online

We have 271 guests and 5 members online