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

Recently added movies - show more items #296

Closed alanmilinovic closed 5 years ago

alanmilinovic commented 5 years ago

Is it possible to increase number of items displayed on Recently added movies page? I think number 24 is way too small number. Ideally would be to show all with paging.

Galixte commented 5 years ago

Hi @amilino,

I think it’s a kody setting. So, you have to create a advancedsettings.xml file, in Windows it’s here: %appdata%\Kodi\userdata\ (for other OS see here: https://kodi.wiki/view/Userdata), and put this setting inside:

<advancedsettings>
<videolibrary>
<recentlyaddeditems>60</recentlyaddeditems>
</videolibrary>
</advancedsettings>

Source: https://kodi.wiki/view/Advancedsettings.xml#videolibrary

Maybe you’ll have to change this value too here: https://github.com/Jalle19/xbmc-video-server/blob/master/src/protected/models/VideoLibrary.php#L122.

Jalle19 commented 5 years ago

It would maybe be possible to use GetMovies with a different sort instead of using GetRecentlyAddedMovies, but then again the whole view becomes slightly pointless. Maybe a better idea would be to check if the main movie list could optionally be sorted by date added.

alanmilinovic commented 5 years ago

Advanced settings has nothing to do to what is in code.

I agree that it shoud just be a GetMovies call with a different sorting.

Jalle19 commented 5 years ago

You can sort the Movies page by date added now, that'll have to suffice :) I tried adjusting the number of items returned from GetRecentlyAddedMovies but Kodi limits these to 26 or something, which I guess is why 24 is the default, not 60 which is the default page size.

alanmilinovic commented 5 years ago

Yes that is also fine, but for Recently added movies page I removed parameter for records limit in code and increased to 60 in advanced config file for Kodi. Now I see 60 records. Thank you for all good work.

alanmilinovic commented 5 years ago

One small bug. Recently added movies are now sorted alphabetically when I enter the page.