Welcome, Guest
Python Scripts for ComicRack

TOPIC: malor89's Perl Scripts

Re: malor89's Perl Scripts 6 years 10 months ago #11245

  • malor89
  • malor89's Avatar
  • Offline
  • Senior Boarder
  • Posts: 73
  • Thank you received: 16
  • Karma: 17
Yes, I forgot to change the discription for $showmissingonly. It was orginally named $showall, but I figured that might confuse people because it still wouldn't show absolutely everything.

It ignores any title that you have less than 3 issues. If you really want to show everything you can change:
"if ($#issues > 1) {" to "if ($#issues >= 0) {"
$years = ""
$showfinished = 1;	
$showmissingonly = 0;
if $showmissingonly = 0 and $showfinished = 0 it should skip showing any title that you have the last issue for the series. In order for this to work the filename for at least one of the matching comic for the year must contain the number of issues ex. (of 4).
Last Edit: 6 years 10 months ago by malor89.
The administrator has disabled public write access.

Re: malor89's Perl Scripts 6 years 10 months ago #11246

  • 600WPMPO
  • 600WPMPO's Avatar
  • Offline
  • Moderator
  • Posts: 3788
  • Thank you received: 557
  • Karma: 232
Ok.. that makes it more clear..

I personally feel that this would have made a nice stand-alone script. When the user does not wish to sort them, but just to find about dupes & misses, 2 scripts would have been better: makesort.pl for sorting comics on the basis of listsort.txt, and something like comiclist.pl for generating listing of comics with missing and duplicate issues..
Now Playing: The ComicRack Manual (Online)

See my new comics & gadgets on: Tumblr!
The administrator has disabled public write access.

Re: malor89's Perl Scripts 6 years 10 months ago #11247

  • malor89
  • malor89's Avatar
  • Offline
  • Senior Boarder
  • Posts: 73
  • Thank you received: 16
  • Karma: 17
600WPMPO wrote:
I personally feel that this would have made a nice stand-alone script. When the user does not wish to sort them, but just to find about dupes & misses, 2 scripts would have been better: makesort.pl for sorting comics on the basis of listsort.txt, and something like comiclist.pl for generating listing of comics with missing and duplicate issues..
Just make a second copy and rename it comiclist.pl. ;) Then you'll have your wish. The majority of the processing time is taken reading the list of files from the hard drive. So there is minimal cost to doing both things at once.
The administrator has disabled public write access.

Re: malor89's Perl Scripts 6 years 10 months ago #11316

  • malor89
  • malor89's Avatar
  • Offline
  • Senior Boarder
  • Posts: 73
  • Thank you received: 16
  • Karma: 17
Finddups.pl
Scans for duplicate files in archives
- results are saved in a file named "dup.txt"
- can set the minimum number of matched files before listing
- caches file data in a database for future comparisons
- can skip listing old matches

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.

Note: 7-Zip must be installed for this script to work. The path to 7z.exe can be set in the script if the default isn't correct.
Attachments:
Last Edit: 6 years 10 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 10 months ago #11317

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

Re: malor89's Perl Scripts 6 years 10 months ago #11335

  • 600WPMPO
  • 600WPMPO's Avatar
  • Offline
  • Moderator
  • Posts: 3788
  • Thank you received: 557
  • Karma: 232
[Request]

Sorry for another request, but this would be quite helpful for people like me.. :unsure:

Currently, I am in the proces of organizing my folder structure, where I'm naming them by series, followed by the year in brackets. Too much of a work looking for the right year for every series from the filename. I purposely do not like to use the Organize Library Files & Folders Script, as it always screws up a lot of things in my library. Hence, I was really looking forward to malor89, if he could spare some time for making a script like the one I requested earlier:
600WPMPO wrote:
A script that suffixes the year (from which the archives start) to the folder name.
e.g. If a folder contains files like
Wolverine 01 (2010).cbz
  	Wolverine 02 (2010).cbz
  	Wolverine 03 (2011).cbz
The folder would be renamed as
Wolverine (2010)
I know this would be kid's play for malor..

Too bad I do not know anything about perl :-(

Edit: Or somehow I can tweak the already existing makedirs.pl script to add the year ?
Now Playing: The ComicRack Manual (Online)

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

Re: malor89's Perl Scripts 6 years 10 months ago #11336

  • perezmu
  • perezmu's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 1114
  • Thank you received: 64
  • Karma: 51
600WPMPO wrote:
I was just using the makesort + listsort scripts for arranging last week's 0-days,

600... all these scripts seem great, but I must admit I am having a hard time keeping up with so may of them and the constant changes....! So, I was wondering, what is exactly your workflow with the 0-days folders, please?

Thanks

(and of course thanks malor89, you are trapped in the terrible 600's web!!!)
Last Edit: 6 years 10 months ago by perezmu.
The administrator has disabled public write access.

Re: malor89's Perl Scripts 6 years 10 months ago #11337

  • malor89
  • malor89's Avatar
  • Offline
  • Senior Boarder
  • Posts: 73
  • Thank you received: 16
  • Karma: 17
folder-namer.pl
Adds/updates year and mini-series suffix at end of folder name
- can turn off the mini-series style
- can turn off complete/ongoing for the mini-series style

Usage: Place the the script in the directory containing all your comics and double click it.

Note: I didn't go overboard trying to handle every possible naming scheme. It expects the year to be in parentheses and just replaces whatever was in [] or () at the end of the folder name.
600WPMPO wrote:
A script that suffixes the year (from which the archives start) to the folder name.
e.g. If a folder contains files like
Wolverine 01 (2010).cbz
  	Wolverine 02 (2010).cbz
  	Wolverine 03 (2011).cbz
The folder would be renamed as
Wolverine (2010)
A mini-series folder renaming script: a script that uses the filenames of archives having # (of #) in the filename to rename their containing folder having th suffix ongoing or complete, based on the # (of #) values. e.g. a folder containing files
Infinite Horizon 01 (of 04) (2010).cbz
  Infinite Horizon 02 (of 04) (2010).cbz
  Infinite Horizon 03 (of 04) (2010).cbz
would be renamed something like
Infinite Horizon [4 issue mini-series 2010, ongoing]
"ongoing" since the folder has only 3 of the 4 files required to label the mini-series as "complete". Once this folder also gets the last file in the series.. i.e.
Infinite Horizon 04 (of 04) (2010).cbz
, the script would re-name the folder to
Infinite Horizon [4 issue mini-series 2010, complete]
Attachments:
Last Edit: 6 years 10 months ago by malor89.
The administrator has disabled public write access.

Re: malor89's Perl Scripts 6 years 10 months ago #11338

  • 600WPMPO
  • 600WPMPO's Avatar
  • Offline
  • Moderator
  • Posts: 3788
  • Thank you received: 557
  • Karma: 232
malor89 wrote:
folder-namer.pl
Adds/updates year and mini-series suffix at end of folder name
- can turn off the mini-series style
- can turn off complete/ongoing for the mini-series style
:woohoo: :woohoo: :woohoo: Thank you so much malor !! That makes me a firm believer in you & perl !

Good karma overflows !
perezmu wrote:
So, I was wondering, what is exactly your workflow with the 0-days folders, please?
All 0-days go in one folder. All publishers get their own folders, inside which are series (year) folders. I earlier used the Move files script to move comics to their individual series folders, but now malor the mighty has made it very easy !

Once I finish with organizing the library (basically, the PC hard disc is full, so I plan to move a lot to extenal HD & then convert a lot to fileless), I am planning to make thread on how to organize your eComics..you guys might like it..
perezmu wrote:
..malor89, you are trapped in the terrible 600's web!!!
:laugh: the evil {Oo} would love your comment !


Edit: I have updated the first post with all the new scripts & updates till today (2010_12_18)
Now Playing: The ComicRack Manual (Online)

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

Re: malor89's Perl Scripts 6 years 8 months ago #11920

  • Samael69
  • Samael69's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 381
  • Thank you received: 47
  • Karma: 21
I'm also a Perl programmer, are there any plans to integrate Perl scripts directly in to ComicRack in a similar fashion to the Python scripts?
The administrator has disabled public write access.
Time to create page: 0.218 seconds

Who's Online

We have 171 guests and 6 members online