2020-08-09, 06:23
@latts9923 With a lot of help from other users, I figured out how to sort moviesets. For example I couldn't in Marvel phase two, the movie Ant-Man came out after the Avengers: age of ultron. However in plot description it's the other way around. Like you see here.
But by changing a few lines in IncludesVariables.xml, I set up boxsets plot description tu sort movies by sorttitle in each movie's nfo file. I designate my sort titles for every boxset movie as Movie 01, Movie 02, Movie 03 ect, which it worked. Here are the lines I changed in IncludesVariables.xml, the lines are located in "VideoPlotVar3"
I changed this:
To this:
And it sorted the movies in the boxet plot description by sorttitle. Not by year or alphabetically
Also, by using those same changes in "VideoPlotVar3" it also allowed me to view boxset concensus:
Which it didn't allow me to view it before
I don't know if anyone else is having those issues but by changing the lines in IncludesVariables.xml, like I just showed moment ago in this same post, it fixed my problem.
Also if you change the lines in moviesetdetails.py from this:
To this:
It'll sort the movies inside your movie boxset alphabetically by sort title, instead of by year or alphabetically by original title. Which I think is better because you can make your sort title be whatever you want in your nfo file and it'll still display your movies by original title but sort them by sort title. You have to choose to sort it by title but when you choose that option, kodi will sort your movies by sort title by default first. If you don't have a sort title name of your choosing in your nfo file, it'll sort it by original title instead.
I have all my sort titles (in my boxsets) designated as Movie 01, Movie 02, Movie 03 ect. And my movies are sorted as such as you see in the picture above.
Well, @latts9923 I hope this is helpful for your next update. And not that good at explaining stuff, I'm sorry if I'm hard to undertand . I only did like 15% of the work to figure this out. Other people in the forum from other threads helped me out to understand. I'm quite new at this.
Well, again I hope this is helpful in some way. Sorry if I made this post too long. Thanks for the new update
But by changing a few lines in IncludesVariables.xml, I set up boxsets plot description tu sort movies by sorttitle in each movie's nfo file. I designate my sort titles for every boxset movie as Movie 01, Movie 02, Movie 03 ect, which it worked. Here are the lines I changed in IncludesVariables.xml, the lines are located in "VideoPlotVar3"
I changed this:
<variable name="VideoPlotVar3">
<value condition="Skin.String(preferplot,plot) + Container.Content(seasons)">$INFO[Container.ShowPlot]</value>
<value condition="Skin.String(preferplot,plot) + !String.IsEmpty(ListItem.Tagline)">[COLOR $INFO[Skin.String(colorheader)]]$INFO[ListItem.Tagline] - [/COLOR]$INFO[ListItem.Plot]</value>
<value condition="Skin.String(preferplot,plot) + !String.IsEmpty(Window(home).Property(Set.Movies.ExtendedPlot))">$INFO[Window(home).Property(Set.Movies.ExtendedPlot)]</value>
<value condition="Skin.String(preferplot,plot)">$INFO[ListItem.Plot]</value>
<value condition="Skin.String(preferplot,consensus) + !String.IsEmpty(ListItem.Tagline)">[COLOR $INFO[Skin.String(colorheader)]]$INFO[ListItem.Tagline] - [/COLOR]$INFO[ListItem.PlotOutline]</value>
<value condition="Skin.String(preferplot,consensus) + String.IsEmpty(ListItem.Tagline)">$INFO[ListItem.PlotOutline]</value>
<value condition="Skin.String(preferplot,off)"></value>
<value>$INFO[ListItem.Plot]</value>
</variable>
To this:
<variable name="VideoPlotVar3">
<value condition="Skin.String(preferplot,plot) + Container.Content(seasons)">$INFO[Container.ShowPlot]</value>
<value condition="Skin.String(preferplot,plot) + !String.IsEmpty(ListItem.Tagline)">[COLOR $INFO[Skin.String(colorheader)]]$INFO[ListItem.Tagline] - [/COLOR]$INFO[ListItem.Plot]</value>
<value condition="Skin.String(preferplot,plot) + !String.IsEmpty(Window(home).Property(SkinHelper.ListItem.ExtendedPlot))">$INFO[Window(home).Property(SkinHelper.ListItem.ExtendedPlots)]</value>
<value condition="Skin.String(preferplot,plot)">$INFO[ListItem.Plot]</value>
<value condition="Skin.String(preferplot,consensus) + !String.IsEmpty(ListItem.Tagline)">[COLOR $INFO[Skin.String(colorheader)]]$INFO[ListItem.Tagline] - [/COLOR]$INFO[ListItem.PlotOutline]</value>
<value condition="Skin.String(preferplot,off)"></value>
<value>$INFO[ListItem.Plot]</value>
</variable>
And it sorted the movies in the boxet plot description by sorttitle. Not by year or alphabetically
Also, by using those same changes in "VideoPlotVar3" it also allowed me to view boxset concensus:
Which it didn't allow me to view it before
I don't know if anyone else is having those issues but by changing the lines in IncludesVariables.xml, like I just showed moment ago in this same post, it fixed my problem.
Also if you change the lines in moviesetdetails.py from this:
movieset_movies = sorted(movieset['movies'], key=itemgetter("year"))
To this:
movieset_movies = sorted(movieset['movies'], key=itemgetter("sorttitle"))
It'll sort the movies inside your movie boxset alphabetically by sort title, instead of by year or alphabetically by original title. Which I think is better because you can make your sort title be whatever you want in your nfo file and it'll still display your movies by original title but sort them by sort title. You have to choose to sort it by title but when you choose that option, kodi will sort your movies by sort title by default first. If you don't have a sort title name of your choosing in your nfo file, it'll sort it by original title instead.
I have all my sort titles (in my boxsets) designated as Movie 01, Movie 02, Movie 03 ect. And my movies are sorted as such as you see in the picture above.
Well, @latts9923 I hope this is helpful for your next update. And not that good at explaining stuff, I'm sorry if I'm hard to undertand . I only did like 15% of the work to figure this out. Other people in the forum from other threads helped me out to understand. I'm quite new at this.
Well, again I hope this is helpful in some way. Sorry if I made this post too long. Thanks for the new update