Welcome, Guest
Python Scripts for ComicRack
  • Page:
  • 1
  • 2

TOPIC: Need some help for sorting with the smart lists

Need some help for sorting with the smart lists 9 months 3 weeks ago #46855

  • LarsSK
  • LarsSK's Avatar
  • Offline
  • Fresh Boarder
  • Exzessiver Cappuccino-Trinker und eComics-Leser
  • Posts: 10
  • Karma: 0
Hey everybody,
I searched here already, but didn`t found the right solution, but maybe I searched for the wrong information!?!?

I collect a bunch of German and English comics and figured out how to create smart lists for alphabetic order; means I start with with a directory "German Comics" and "English Comcis", and than create alphabethical smart lists from A - Z, and numbers!
My problem now is, that in German we have a bunch of series starting with "Der, Die, Das" at the beginning of the comic, and in English with "The".
So every of these comics are now sorted only in "D", or in English in "T"!
How can I tell the smart list skript, that I would like to have these comics in the right smart list?
For example: "Die Abenteuer des Marsupilami"; normally I would like to have this comics in "A", but it will be sorted in "D", or for the English "The Preacher", it will be sorted in "T" not in "P"! Maybe you can understand my problem?
Has someone the same problem and found an "easy" solution? Because, I dont like to rename the comics like "Abenteuer des Marsupilami, Die" or "Preacher, The" to have them in the right smart list.

Thanks in advance :)
Und ich mag die drei Zustände in der Informationstechnik:
High, Low und Kaputt ;)
The administrator has disabled public write access.

Need some help for sorting with the smart lists 9 months 3 weeks ago #46856

  • Xelloss
  • Xelloss's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 455
  • Thank you received: 117
  • Karma: 24
The easiest, not elegant, way is to do something like this...

for example series starting with A



and then for D it would be a little more complicate:



Of course it would be better with regular expressions...

Starting with A would be, in Regular Expression Options: ^(Der |Die |Das |)(A|a)
Starting with D would be, in Regular Expression Options: ^(Der |Die |Das |)(D|d)
Last Edit: 9 months 3 weeks ago by Xelloss.
The administrator has disabled public write access.

Need some help for sorting with the smart lists 9 months 3 weeks ago #46857

  • LarsSK
  • LarsSK's Avatar
  • Offline
  • Fresh Boarder
  • Exzessiver Cappuccino-Trinker und eComics-Leser
  • Posts: 10
  • Karma: 0
Hey Xellos,

sometimes the easiest thoughts are the best ones, even they are maybe not so elegant. :D

Well, meanwhile I tried it and got some interesting results:

When I used "Any"





and When I used "All"





Maybe any ideas? ;)
Und ich mag die drei Zustände in der Informationstechnik:
High, Low und Kaputt ;)
The administrator has disabled public write access.

Need some help for sorting with the smart lists 9 months 3 weeks ago #46858

  • Xelloss
  • Xelloss's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 455
  • Thank you received: 117
  • Karma: 24
Be careful where you put the other fields... group the part of the name in a single group as a rule and use the same as always...

If you put ANY and then put a rule where it says Language is English, then any comic in English will appear (independently of the other rules...)

If you want, show me the complete smartlist you want (with all the rules), and I will show you how to group the rules

Note:

In the first case you said... show me the comics that start with this, or this, or this or are in German (and it showed all comics in German)

In the second case you said... show me the comics that start with this, AND this, AND this, AND this, AND are in German (and it showed no comics, as a comic cannot start in a way and in other way AT THE SAME TIME)

The correct way would be to group the part of the name with an ANY, and then use it as a rule in a WHOLE ALL

edit: Let me be at home, and I will try to explain it a bit better, I am in my cellphone in the street with a remote desktop app XD
Last Edit: 9 months 3 weeks ago by Xelloss.
The administrator has disabled public write access.

Need some help for sorting with the smart lists 9 months 3 weeks ago #46859

  • LarsSK
  • LarsSK's Avatar
  • Offline
  • Fresh Boarder
  • Exzessiver Cappuccino-Trinker und eComics-Leser
  • Posts: 10
  • Karma: 0
Hey Xellos,

yes, meanwhile I also thought about this logic!
I will try it out tomorrow, and tell you the results how I have handled it, thanks for the steps it helped me already a lot!

CU :)
Und ich mag die drei Zustände in der Informationstechnik:
High, Low und Kaputt ;)
The administrator has disabled public write access.

Need some help for sorting with the smart lists 9 months 3 weeks ago #46860

  • Xelloss
  • Xelloss's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 455
  • Thank you received: 117
  • Karma: 24
Use the regular expression meanwhile...

The only problem will be that the ones starting with Des, etc will also show in the D
Last Edit: 9 months 3 weeks ago by Xelloss.
The administrator has disabled public write access.

Need some help for sorting with the smart lists 9 months 3 weeks ago #46861

  • Xelloss
  • Xelloss's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 455
  • Thank you received: 117
  • Karma: 24
Updated REGEX you can use:

For any letter but D and T (for example A): (?i)^(der |die |das |the |)a
For D:(?i)(^(der |die |das |the )d)|(^d(?!er )(?!ie )(?!as ))
For T: (?i)(^(der |die |das |the )t)|(^t(?!he ))

- AGAIN there must exist a simpler, more elegant solution... but I am no expert in Regex

remember select "Regular expression" in the field... (use it exactly as you use Series Start with)

btw, the second "simple" example I sent you in my first post is wrong... the correct one is:




About mixing this with other rules... you group it like this:

(example 1)



(example 2)



Here is the second example for importing:

File Attachment:

File Name: Comicsstar...ithD.cbl
File Size:2 KB
Last Edit: 9 months 3 weeks ago by Xelloss.
The administrator has disabled public write access.

Need some help for sorting with the smart lists 9 months 3 weeks ago #46866

  • LarsSK
  • LarsSK's Avatar
  • Offline
  • Fresh Boarder
  • Exzessiver Cappuccino-Trinker und eComics-Leser
  • Posts: 10
  • Karma: 0
Hey Xellos,

thank you so much for this great helps and examples :)

I will try it out, right away
Und ich mag die drei Zustände in der Informationstechnik:
High, Low und Kaputt ;)
The administrator has disabled public write access.

Need some help for sorting with the smart lists 9 months 3 weeks ago #46867

  • Xelloss
  • Xelloss's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 455
  • Thank you received: 117
  • Karma: 24
In the case of the D, remember to put an space after das, der and die in the sub group (or it will filter series starting with that sillables)

I strongly recommend using the REGEX option... as it is easier to use (copy and paste the EXACT value I posted in the last post) because it is only one rule...

All the same I recommend to practice with how rules and groups works... as it is usefull for more than this case :)
Last Edit: 9 months 3 weeks ago by Xelloss.
The administrator has disabled public write access.

Need some help for sorting with the smart lists 9 months 3 weeks ago #46868

  • LarsSK
  • LarsSK's Avatar
  • Offline
  • Fresh Boarder
  • Exzessiver Cappuccino-Trinker und eComics-Leser
  • Posts: 10
  • Karma: 0
Heureka Xellos,

I got it, with your help and thoughts!

My mistake in the beginning was, that I wanted to invent the wheel a second time!
In case of using my "Admin(Smart)-Lists", I used the main Library. In this Admin-Lists I already separated and sorted the comics for my needs (for example to German or English, no XXX, etc). So in this case I could already shorten the next smart lists.
After this I experimented with your lists and my thoughts, and I got the solution I always wanted - :lol: !
A little bit tricky was it first with numbers, but with the REGEX function, it already worked.

So, for the ones who had already the same problems before and would like to know how it will be look like, here are some examples (sorrya, I keep the Smart Lists in German, if needed I will send them also than in English!):

1. Numbers:



2. Alphabetic:



3. "Der/Die/Das":



4. "The":



Notice: Who ever wants, can even more detailed ans specific as my lists :P

Nice greetings :)
Und ich mag die drei Zustände in der Informationstechnik:
High, Low und Kaputt ;)
Last Edit: 9 months 3 weeks ago by LarsSK. Reason: Little mistakes :)
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.332 seconds

Who's Online

We have 148 guests and 4 members online