Welcome, Guest
Python Scripts for ComicRack

TOPIC: Remove scanner credits

Re:Remove scanner credits 9 years 4 months ago #1867

  • dfuse
  • dfuse's Avatar
  • Offline
  • Senior Boarder
  • Posts: 76
  • Thank you received: 3
  • Karma: 4
Can you tell me how to get a page type? I tried GetPageType(page) but that doesn't work...
The administrator has disabled public write access.

Re:Remove scanner credits 9 years 4 months ago #1868

  • cYo
  • cYo's Avatar
  • Offline
  • Moderator
  • Posts: 3476
  • Thank you received: 676
  • Karma: 182
The call to get a page is GetPage(page)
But changing properties there do not propagate back to ComicRack. So you need to use SetPageType
The administrator has disabled public write access.

Re:Remove scanner credits 9 years 4 months ago #1869

  • dfuse
  • dfuse's Avatar
  • Offline
  • Senior Boarder
  • Posts: 76
  • Thank you received: 3
  • Karma: 4
Immutable Objects FTW!

I'm just trying to get this line to work:
if (book.GetPage(i).pageType != ComicPageType.Advertisment):
but now it says me pageType doesn't exist anymore, can tell you me what property I have to check? Or is there some documentation somewhere about the domain model? Last time I just decompiled it but then I've got to install .NET and all the tools again... I'm a Java developer myself ;)
The administrator has disabled public write access.

Re:Remove scanner credits 9 years 4 months ago #1933

  • dfuse
  • dfuse's Avatar
  • Offline
  • Senior Boarder
  • Posts: 76
  • Thank you received: 3
  • Karma: 4
Had some time today to dig into the source, the script should work again (tested with 0.9.90)

File Attachment:

File Name: RemoveScan...49f6.zip
File Size:1 KB
The administrator has disabled public write access.

Re:Remove scanner credits 8 years 3 days ago #4714

  • matrixik
  • matrixik's Avatar
  • Offline
  • Junior Boarder
  • Posts: 29
  • Karma: 1
Thank You for that excelent script.

I have one question:

Get Info -> Pages and here we have option: "Move to End"
How I can call that from script?

Cheers
I am what I am.
The administrator has disabled public write access.

Re:Remove scanner credits 8 years 1 day ago #4721

  • Alan Scott
  • Alan Scott's Avatar
  • Offline
  • Gold Boarder
  • Posts: 264
  • Thank you received: 20
  • Karma: 10
@ matrixik - That's an excellent question. I was just thinking this recently.
... 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:Remove scanner credits 8 years 1 day ago #4723

  • dfuse
  • dfuse's Avatar
  • Offline
  • Senior Boarder
  • Posts: 76
  • Thank you received: 3
  • Karma: 4
I'm afraid I don't understand the question...
The administrator has disabled public write access.

Re:Remove scanner credits 8 years 2 hours ago #4731

  • Alan Scott
  • Alan Scott's Avatar
  • Offline
  • Gold Boarder
  • Posts: 264
  • Thank you received: 20
  • Karma: 10
@ dfuse - Thanks for replying. When using the script, even though it removes the scanner page from display in the browser area, when you open the comic, it is still there until you read on. So the question is, could we could have the script also move the scanner page to the end of the comic's pages?
... 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:Remove scanner credits 8 years 2 hours ago #4733

  • dfuse
  • dfuse's Avatar
  • Offline
  • Senior Boarder
  • Posts: 76
  • Thank you received: 3
  • Karma: 4
okay I'll take a look at it in the weekend. I haven't been using it myself anymore lately because somewhere along the line Comicrack changed it's algorithm how it parses filenames and my entire collection of comics which I spent many hours sorting and cleaning got totally scrambled. haven't had the courage yet to start all over again.
The administrator has disabled public write access.

Re:Remove scanner credits 6 years 8 months ago #13024

  • Alan Scott
  • Alan Scott's Avatar
  • Offline
  • Gold Boarder
  • Posts: 264
  • Thank you received: 20
  • Karma: 10
I was wondering if anyone has this working with 64-bit Windows 7? I get an Exception Thrown error. Hopefully someone has a solution; I would really miss having this script.
... 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.
Time to create page: 0.196 seconds

Who's Online

We have 221 guests and one member online