Welcome, Guest
Python Scripts for ComicRack

TOPIC: Scan Information from Filename

Re: Scan Information from Filename 6 years 4 months ago #15264

  • Alan Scott
  • Alan Scott's Avatar
  • Offline
  • Gold Boarder
  • Posts: 237
  • Thank you received: 10
  • Karma: 10
@600 - Hey Bud, are you still doing any work on this? I think this is a fantastic plugin. If only I'd had it 4 years ago! I too would like to be able to grab YZ1 and WildBlueZero from the file names. In fact, I was wondering if there is an easy way to add one word names to the .py file, I come across others here and there. Also, Snout Spout got me thinking, would there be a way to expand this to parse scanner pages for names? Thanks a ton in advance!
... The failure to appreciate... is perfectly understandable, because the readership never evaluates old material in the context of the cultural climate in which it was created, or the state of the art at the time it was created.
Marty Pasko
The administrator has disabled public write access.

Re: Scan Information from Filename 6 years 4 months ago #15265

  • 600WPMPO
  • 600WPMPO's Avatar
  • Offline
  • Moderator
  • Posts: 3788
  • Thank you received: 557
  • Karma: 232
Alan Scott wrote:
I was wondering if there is an easy way to add one word names to the .py file, I come across others here and there. Also, Snout Spout got me thinking, would there be a way to expand this to parse scanner pages for names?
Maybe I'll ask Stonepaw if this would be possible :unsure:
Alan Scott wrote:
I too would like to be able to grab YZ1 and WildBlueZero from the file names.

Here it is! :)

I have updated the script to version 0.2. Nothing fancy, just support for some non-conventional scanner names. These include:
  • Jojo
  • YZ1
  • WildBlueZero
  • PeteThePIPster
  • clickwheel
  • Scalliwags
  • Dragonz

A demo example having these scanners in its raw form:



And now after running the script:



If you have other scanner names that aren't supported yet, please tell me.. I'll surely add them. :)

File Attachment:

File Name: Scan Infor...crplugin
File Size:4 KB
Now Playing: The ComicRack Manual (Online)

See my new comics & gadgets on: Tumblr!
Last Edit: 6 years 4 months ago by 600WPMPO.
The administrator has disabled public write access.
The following user(s) said Thank You: Alan Scott

Re: Scan Information from Filename 6 years 4 months ago #15270

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

Re: Scan Information from Filename 6 years 3 months ago #15271

  • Alan Scott
  • Alan Scott's Avatar
  • Offline
  • Gold Boarder
  • Posts: 237
  • Thank you received: 10
  • Karma: 10
Hey 600, the script is not parsing the Minutemen tags correctly. Instead of the full names like Minutemen-DTermined, the tags are only coming up "scanner:Minutemen".
... The failure to appreciate... is perfectly understandable, because the readership never evaluates old material in the context of the cultural climate in which it was created, or the state of the art at the time it was created.
Marty Pasko
The administrator has disabled public write access.

Re: Scan Information from Filename 6 years 3 months ago #15272

  • 600WPMPO
  • 600WPMPO's Avatar
  • Offline
  • Moderator
  • Posts: 3788
  • Thank you received: 557
  • Karma: 232
Alan Scott wrote:
Hey 600, the script is not parsing the Minutemen tags correctly. Instead of the full names like Minutemen-DTermined, the tags are only coming up "scanner:Minutemen".
:blush: Yes, I noted that right now, and have now bug-fixed it to v0.3. The Minutemen names would now be picked up correctly. Apologies for the error, but I'm still learning Python! :laugh:

Bugfix Update: v0.3

File Attachment:

File Name: Scan Infor...crplugin
File Size:4 KB


Please check it and do tell me if there are still any errors..
Now Playing: The ComicRack Manual (Online)

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

Re: Scan Information from Filename 6 years 3 months ago #15273

  • Alan Scott
  • Alan Scott's Avatar
  • Offline
  • Gold Boarder
  • Posts: 237
  • Thank you received: 10
  • Karma: 10
Working fine now, thanks a ton! I'll let you know how the new scanner names work once this week's CPS & Independent pack comes out.
... The failure to appreciate... is perfectly understandable, because the readership never evaluates old material in the context of the cultural climate in which it was created, or the state of the art at the time it was created.
Marty Pasko
The administrator has disabled public write access.

Re: Scan Information from Filename 6 years 3 months ago #15547

  • ChapeL
  • ChapeL's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 1
  • Karma: 0
Hi,

Another great script !!! One question though, why does it add Scanner: at the beginning? Because of this my Scan Information field is showing for example Scanner:Team-DCP. Is it necessary? Field is already appropriately named and it cause my file names look like this after using Library Organizer:

Critical Mass Vol.1990 #04 (April, 1990) - Scanner -Team-DCP.cbz

I would rather have is as:

Critical Mass Vol.1990 #04 (April, 1990) - Team-DCP.cbz

It makes file names longer for no reason, unless there is a reason for Scanner: to be there that I'm not aware of.

Thanks
ChapeL
The administrator has disabled public write access.

Re: Scan Information from Filename 6 years 3 months ago #15549

  • mizio66
  • mizio66's Avatar
  • Offline
  • Platinum Boarder
  • Started reading comics at 4... and still counting!
  • Posts: 451
  • Thank you received: 143
  • Karma: 67
So, 600, learning Python quickly I see... and also regex !

why don't you try to add a configuration section and button to this, where we can add the scanner's name and let you be free from modifying the script?
I have some italian scanners... but there are surely french or more... so this would solve the iseu and let you learn something more on python... no?

ciao!

M
The administrator has disabled public write access.

Re: Scan Information from Filename 6 years 3 months ago #15597

  • ChapeL
  • ChapeL's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 1
  • Karma: 0
ChapeL wrote:

... why does it add Scanner: at the beginning? Because of this my Scan Information field is showing for example Scanner:Team-DCP. Is it necessary? ...


NVM I managed to edit script myself so it doesn't add Scanner: to the field.

Cheers
ChapeL
The administrator has disabled public write access.

Re: Scan Information from Filename 6 years 3 months ago #15599

  • 600WPMPO
  • 600WPMPO's Avatar
  • Offline
  • Moderator
  • Posts: 3788
  • Thank you received: 557
  • Karma: 232
@ChapeL: You are correct. I'll remove the 'scanner:' prefix

@Mizio: I did not make this script by myself. I have modified it from the old script as mentioned in the credits: "Based on Arturo's New Comics Toolbox for ComicRack (v. 0.3) Regex by Stonepaw"

I am trying to learn python, and modify this script.

I understand that I'll have to make a dialog box as shown below, and then let it add the user-inputted scanner names to a scanner_list.txt file. And, finally let the script look up the names from that text file. Hope my basic needs/concepts are Ok..?

So, step 1: How do I make this dialog:



Help required from my friends Stonepaw, Mizio, perezmu, cbanack, pescuma and anyone willing to let this poor soul learn make better scripts...
Now Playing: The ComicRack Manual (Online)

See my new comics & gadgets on: Tumblr!
Last Edit: 6 years 3 months ago by 600WPMPO.
The administrator has disabled public write access.
The following user(s) said Thank You: ChapeL
Time to create page: 0.563 seconds

Who's Online

We have 217 guests and 6 members online