YAMJ / yamj-v2

Yet Another Movie Jukebox (YAMJ) v2
GNU General Public License v3.0
28 stars 11 forks source link

Remove Prefix keywords for episodes, like done for Titles #1350

Open Omertron opened 9 years ago

Omertron commented 9 years ago

Original issue 1351 created by Omertron on 2010-03-16T02:13:56.000Z:

I would love to remove all those 'The ', 'An ', 'A ' etc words at the beginning of episode titles and TV series titles.

It would strongly reduce the width of episode titles in a list, especially for those series that seem to have "The ..." for everything, like "The Big Bang Theory".

I would use the same field used in skin.properties file:

# Sorting prefixes to ignore:
sorting.strip.prefixes="A ","An ","The ","Le ","Les ", "De ", "Un ", "Une
", "Des ", "Das ", "La "

As for TV series title, although sorting is done properly, the prefix "The
" still exists and therefore still shows up in a list format like AEon's
list option.

Perhaps another option could be if the prefix should be totally removed...
# Display prefixes to ignore:
display.strip.prefixes="A ","An ","The ","Le ","Les ", "De ", "Un ", "Une
", "Des ", "Das ", "La "
Omertron commented 9 years ago

Comment #1 originally posted by Omertron on 2010-04-02T09:26:21.000Z:

So you want the option to strip the sorting strip prefix from the title of the movie/tv show?

Omertron commented 9 years ago

Comment #2 originally posted by Omertron on 2010-04-03T00:08:53.000Z:

Yes. This is because a skin like AEon Sabish mods for TV (and ppp3) use shortened lists that are cut off after 'x' number of chars, so removing the useless 'The ' etc at the beginning will provide a better visual enhancement.

This request is for TV episode titles, unlike movie title. A further option would be have a third option to strip TV series title.

Omertron commented 9 years ago

Comment #3 originally posted by Omertron on 2010-04-03T00:10:57.000Z:

Oops, re-read your comment... No, not movie/TV title --> TV episode title

Omertron commented 9 years ago

Comment #4 originally posted by Omertron on 2010-04-03T06:27:18.000Z:

Ok, still not sure. there are 4 "title" parts for YAMJ

Movie Title: A Bugs Life TV Show Title: The Big Bang Theory Part Title: The Terminator - A Special Directors Cut Episode Title: The Big Bang Theory S01E01 - The Cooper-Hofstadter Polarization

Which would you want to strip?

Omertron commented 9 years ago

Comment #5 originally posted by Omertron on 2010-04-03T19:10:44.000Z:

Good examples!

Initially (for me) I care about the episode titles, but eventually (perhaps a new issue) handle all those cases.

So for now, Episode Title: The Big Bang Theory S01E01 - The Cooper-Hofstadter Polarization would become Episode Title: The Big Bang Theory S01E01 - Cooper-Hofstadter Polarization

Unlike Movie titles and TV Serie titles, sorting is not an issue for episode titles (or movie parts).

If movie parts is just as easy as episode titles to fix in the code, then Part Title: The Terminator - A Special Directors Cut would become Part Title: The Terminator - Special Directors Cut

As for 'The' in "The Big Bang Theory" and "The Terminator", those are in sorting.strip.prefixes and most people are happy with that for now. Eventually I would like to see display.movie.strip.prefixes for Movie titles display.tv.strip.prefixes for TV series titles

and for this issue, perhaps something like parts.strip.prefixes for Movie parts episode.strip.prefixes for TV episodes

and of course those would all accept a list like original sorting.strip.prefixes because a user may only want a subset handled.

ideally, a blank value (defined but empty) means use the same as sorting.strip.prefixes while 'none' or 'false' (or # comment) means not used, which would be the default behaviour for these new options.

ex: values set episode.strip.prefixes= episode.strip.prefixes="A ","An ","The "

ex: values not used -- ignored episode.strip.prefixes=false

episode.strip.prefixes= <-- default value -->

:D