Welcome, Guest
Python Scripts for ComicRack

TOPIC: the CR Data Manager - enter data automatically based on rules - 0.1.14

Re: the CR Data Manager - a plugin to enter data automatically based on rules 4 years 8 months ago #30976

  • 600WPMPO
  • 600WPMPO's Avatar
  • Offline
  • Moderator
  • Posts: 3788
  • Thank you received: 557
  • Karma: 233
Faba wrote:
Wow! This is amazing!

I created my personal ruleset for the "Main Series"

Feel free to comment on it. I'm not sure myself with somebody would consider a "Main Series"
Nice rules there, but you need to eliminate limited series & annuals from 'Main series'.

Here are mine (from here: code.google.com/p/cr-data-manager/wiki/SampleRulesLO )
#rules to prepare for LibraryOrganizer (Format) 
<<Series.Contains:Annual>> => <<Format:Annual>> 
<<FileDirectory.Contains:Annual>> => <<Format:Annual>> 
<<Series.StartsWith:Age of Ultron>> => <<Format:Crossover>> 
<<FilePath.Contains:Annual>> => <<Format:Annual>> 
# 
#rules to prepare for LibraryOrganizer (Count) 
<<Format:>> <<Count.Greater:0>> <<Publisher:Marvel>> => <<Format:Limited Series>> 
<<Format:>> <<Count.Greater:0>> <<Publisher:DC Comics>> => <<Format:Limited Series>> 
<<Format:>> <<Count.Greater:0>> <<Publisher.Not:Marvel>> <<MainCharacterOrTeam.Not:>> => <<Format:Limited Series>> 
<<Format:>> <<Count.Greater:0>> <<Publisher.Not:DC Comics>> <<MainCharacterOrTeam.Not:>> => <<Format:Limited Series>> 
<<Format:>> <<Count.Less:1>> <<Publisher:Marvel>> => <<Format:Main Series>> 
<<Format:>> <<Count.Less:1>> <<Publisher:DC Comics>> => <<Format:Main Series>> 
<<Format:>> <<Count.Less:1>> <<Publisher.Not:Marvel>> <<MainCharacterOrTeam.Not:>> => <<Format:Main Series>> 
<<Format:>> <<Count.Less:1>> <<Publisher.Not:DC Comics>> <<MainCharacterOrTeam.Not:>> => <<Format:Main Series>>

So, basically a simple rule like this:
<<Series:Green Lantern Corps>> => <<Format:Main Series>>

....could be improved to this:
<<Series:Green Lantern Corps>> <<Format:>> <<Count.Less:1>> <<Number.More:1>> => <<Format:Main Series>>
Now Playing: The ComicRack Manual (Online)

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

Re: the CR Data Manager - a plugin to enter data automatically based on rules 4 years 8 months ago #30977

  • Faba
  • Faba's Avatar
  • Offline
  • Senior Boarder
  • Posts: 43
  • Thank you received: 2
  • Karma: 0
To be honest I didn't really tested it because I didn't have any untagged files laying around. But the syntax is quiet easy to understand.

@600WPMPO

I just took my "Main Series" smartlist and converted it, and there might be room for improvement ;)
Last Edit: 4 years 8 months ago by Faba.
The administrator has disabled public write access.
The following user(s) said Thank You: 600WPMPO

Re: the CR Data Manager - a plugin to enter data automatically based on rules 4 years 8 months ago #30978

  • docdoom
  • docdoom's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 320
  • Thank you received: 89
  • Karma: 31
@ 600WPMPO:
<<Series:Green Lantern Corps>> <<Format:>> <<Count.Less:1>> <<Number.More:1>> => <<Format:Main Series>>
will not work, because "More" is no valid modifier. Use "Greater" or "GreaterEq" instead
<<Format:>> <<Count.Less:1>> <<Publisher.Not:Marvel>> <<MainCharacterOrTeam.Not:>> => <<Format:Main Series>> 
<<Format:>> <<Count.Less:1>> <<Publisher.Not:DC Comics>> <<MainCharacterOrTeam.Not:>> => <<Format:Main Series>>

These two lines can be reduced to one line:
<<Format:>> <<Count.Less:1>> <<Publisher.Not:Marvel>> <<Publisher.Not:DC Comics>> <<MainCharacterOrTeam.Not:>> => <<Format:Main Series>> 
Author of the CR Data Manager. Download and manual at google code - please post feature requests and bugs here
Last Edit: 4 years 8 months ago by docdoom.
The administrator has disabled public write access.
The following user(s) said Thank You: Mammut

Re: the CR Data Manager - a plugin to enter data automatically based on rules 4 years 8 months ago #30981

  • Mammut
  • Mammut's Avatar
  • Offline
  • Gold Boarder
  • Posts: 196
  • Thank you received: 25
  • Karma: 7
Hi,

this is a great plugin, thank you for it!

But this line does not work (from the Manual.pdf):

<<Series:The Amazing Spider-Man>> <<Volume:1963>> <<Number.Range:442,499>> => <<Volume:1999>> <<Number.Calc:{Number}-441>>

It changes the Volume correctly, but the Number remains 477. Here is the log, the new number value is missing:

The Amazing Spider-Man v1963 #477 was touched
book.Volume - old value: 1963
book.Volume - new value: 1999
book.Number - old value: 477

I tried with spaces around the - sign (as in the pdf), but that not helps.
I'm using version 0.1.8.
What could be the problem?

Thanks and Regards,
mammut
Last Edit: 4 years 8 months ago by Mammut.
The administrator has disabled public write access.

Re: the CR Data Manager - a plugin to enter data automatically based on rules 4 years 8 months ago #30982

  • docdoom
  • docdoom's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 320
  • Thank you received: 89
  • Karma: 31
does this happen only with #477 or with the other issues as well?
Author of the CR Data Manager. Download and manual at google code - please post feature requests and bugs here
The administrator has disabled public write access.

Re: the CR Data Manager - a plugin to enter data automatically based on rules 4 years 8 months ago #30983

  • Mammut
  • Mammut's Avatar
  • Offline
  • Gold Boarder
  • Posts: 196
  • Thank you received: 25
  • Karma: 7
I only have the #477 from that range.

I created a fileless #476, I tried it, and the result is the same.
The administrator has disabled public write access.

Re: the CR Data Manager - a plugin to enter data automatically based on rules 4 years 8 months ago #30984

  • docdoom
  • docdoom's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 320
  • Thank you received: 89
  • Karma: 31
found the problem. Already working on a fix.
Author of the CR Data Manager. Download and manual at google code - please post feature requests and bugs here
The administrator has disabled public write access.

Re: the CR Data Manager - a plugin to enter data automatically based on rules 4 years 8 months ago #30985

  • Mammut
  • Mammut's Avatar
  • Offline
  • Gold Boarder
  • Posts: 196
  • Thank you received: 25
  • Karma: 7
Thank you very much! :)
The administrator has disabled public write access.

Re: the CR Data Manager - a plugin to enter data automatically based on rules 4 years 8 months ago #30986

  • docdoom
  • docdoom's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 320
  • Thank you received: 89
  • Karma: 31
fix is online at code.google.com/p/cr-data-manager/downloads/list . Please upgrade to this version. Sorry for the inconvenience.
Author of the CR Data Manager. Download and manual at google code - please post feature requests and bugs here
Last Edit: 4 years 8 months ago by docdoom.
The administrator has disabled public write access.
The following user(s) said Thank You: Mammut

Re: the CR Data Manager - a plugin to enter data automatically based on rules 4 years 8 months ago #30987

  • Mammut
  • Mammut's Avatar
  • Offline
  • Gold Boarder
  • Posts: 196
  • Thank you received: 25
  • Karma: 7
Thank you for the quick fix, it's working great! :)
The administrator has disabled public write access.
Time to create page: 0.421 seconds

Who's Online

We have 258 guests and 2 members online