Jalle19 / xbmc-video-server

Web interface for streaming or downloading media from a Kodi/XBMC library
GNU General Public License v3.0
191 stars 39 forks source link

Sort movies and TV shows by "premiered" instead of "year" #318

Closed Jalle19 closed 5 years ago

Jalle19 commented 5 years ago

This also changes the rendering of the year to use the year from the premiere date when it's available, otherwise the "year" column, and if nothing is available, "Not available" is returned. This also fixes a bug where 1601 is shown as the year for items that don't apparently have a year (Kodi sometimes returns 1601 instead of 0).

Closes #317

@amilino can you try this branch? Please note that the query parameters have changed from e.g.?sort=year.desc to ?sort=premiered.desc.

alanmilinovic commented 5 years ago

Hi, looking fine except when year and publish date is not available then it looks like this in a year grid column "1969Not available ". Maybe you can just hide "Nor available"

Jalle19 commented 5 years ago

Strange, I'll take a look. Only tried the list view so far.

alanmilinovic commented 5 years ago

Ok, tnx.

image

Jalle19 commented 5 years ago

So 1969 is the name of some movie or TV show?

alanmilinovic commented 5 years ago

No that is the year of video, what Kodi populate if you don't specify the year because I used NFO files to import them into Kodi library. "Not available" is I guess premiered what is also not specified in NFO and populated in library as empty.

Jalle19 commented 5 years ago

Actually never mind, found the bug

Jalle19 commented 5 years ago

@amilino can you pull the latest change and try again? Shoudl be fixed now

alanmilinovic commented 5 years ago

Awesome, working great now! Many thanks.

Jalle19 commented 5 years ago

Thanks for testing!