Jump to content


Photo

Filtering the movie list – not all tags are listed

movielist

  • Please log in to reply
7 replies to this topic

#1 reg

  • Senior Member
  • 62 posts

0
Neutral

Posted 11 April 2015 - 18:52

Hi!

 

When I filter the movielist, the list of tags I can filter the list with is incomplete. Only some of the tags automatically generated are listed, as well as some of the tags I added manually but not all are listed. 15 tags are displayed in total.

 

Anybody else noticed this?



Re: Filtering the movie list – not all tags are listed #2 reg

  • Senior Member
  • 62 posts

0
Neutral

Posted 15 April 2015 - 18:45

I have found the "culprit" :) In lib/python/Components/MovieList.py:

                                 if len(match) > 2: #Omit small words

All the missing tags were 2 characters long. I have modified this line accordinly and now all my tags are listed :D

 

Have a nice evening,


Edited by reg, 15 April 2015 - 18:45.


Re: Filtering the movie list – not all tags are listed #3 reg

  • Senior Member
  • 62 posts

0
Neutral

Posted 16 April 2015 - 05:36

Hi guys,

 

It seems to me that this "Omit small words" check only makes sense for auto tags. In case you agree, you will find in attachment a tiny patch that only omits small auto tags, keeping real tags no matter how short they are:

-				if len(match) > 2: #Omit small words
+				if (len(match) > 2) or (match in realtags): #Omit small words, only for auto tags

Attached Files


Edited by reg, 16 April 2015 - 05:37.


Re: Filtering the movie list – not all tags are listed #4 littlesat

  • PLi® Core member
  • 56,309 posts

+691
Excellent

Posted 16 April 2015 - 07:05

Can you give a better explanation about what you mean with realtags....?


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Filtering the movie list – not all tags are listed #5 reg

  • Senior Member
  • 62 posts

0
Neutral

Posted 16 April 2015 - 07:39

Realtags are found in the .meta files, as opposed to autotags which are retrieved from movie titles.
Therefore it makes sense to get rid of short autotags (to avoid things like "of", "on", "a", ...). Realtags, on the other hand, are added manually by the users, so IMO they should never be removed.

Re: Filtering the movie list – not all tags are listed #6 MiLo

  • PLi® Core member
  • 14,045 posts

+298
Excellent

Posted 18 April 2015 - 09:59

Looks okay to me, I'l merge it.
Real musicians never die - they just decompose

Re: Filtering the movie list – not all tags are listed #7 reg

  • Senior Member
  • 62 posts

0
Neutral

Posted 22 April 2015 - 05:45

Hi!

 

I noticed something else. In some cases (namely, if a realtag occurs only once or if occurrences of a realtags have similar titles), movie titles are displayed instead of realtags in the tag list. It is caused by the "complete sentence in common" check, which starts at line 725 in MovieList.py.

I made another patch which fixes this (see attachment). What it does is that it treats realtags & autotags separately, and joints them at the end. I have been testing it during the two past days and did not see any issues.

Also, the patch I sent earlier is not required anymore.

Attached Files



Re: Filtering the movie list – not all tags are listed #8 littlesat

  • PLi® Core member
  • 56,309 posts

+691
Excellent

Posted 22 April 2015 - 06:56

pushed...

 

 

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W




Also tagged with one or more of these keywords: movielist

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users