FAQ  •  Register  •  Login

Sort Library Online Sources

<<

gbenze

Serviio newbie

Posts: 1

Joined: Tue Aug 14, 2012 9:46 am

Post Tue Aug 14, 2012 9:50 am

Sort Library Online Sources

Allow to sort library online sources. Sometimes I want to move certain sources to the start of the list or group together and I can't with the current interface. I think a Up and Down button will suffice.
Thanks
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Tue Aug 14, 2012 12:34 pm

Re: Sort Library Online Sources

A long standing request!
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Thu Aug 16, 2012 12:17 am

Re: Sort Library Online Sources

gbenze wrote:Allow to sort library online sources. Sometimes I want to move certain sources to the start of the list or group together and I can't with the current interface. I think a Up and Down button will suffice.
Thanks

Currenly this can be done using ServiiDroid but the library has to be re-indexed again from the start

A ticket has been logged here for the future request
Sony Bravia 2010 52NX803 - Sony PS3 - Xbox 360
Serviio running on QNAP NAS 639 Pro - 1.6 Intel Dual Core - 2GB RAM and QNAP NAS 121 - 2Ghz ARM Marvell - 1GB RAM
Console using ServiiDroid for Android, ServiiMetro and ServiiWP for Windows Phone and WebUI for iOS
<<

npuser

DLNA master

Posts: 172

Joined: Mon Feb 06, 2012 3:44 am

Location: Michigan

Post Thu Aug 16, 2012 12:54 am

Re: Sort Library Online Sources

+1
<<

xs2inattar

DLNA master

Posts: 143

Joined: Sun Jun 24, 2012 5:49 pm

Post Thu Aug 16, 2012 1:04 am

Re: Sort Library Online Sources

+1
<<

patters

User avatar

DLNA master

Posts: 1282

Joined: Sat Oct 09, 2010 3:51 pm

Location: London, UK

Post Thu Aug 16, 2012 7:43 am

Re: Sort Library Online Sources

+1 I'd be happy with up/down buttons, less bothered about folders and such.
LG OLED55B8PLA | PS4 Pro | Xbox One S | Synology DS214play
Serviio 2.1 package for Synology NAS - with limited hardware transcoding support!
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Thu Aug 16, 2012 7:12 pm

Re: Sort Library Online Sources

I definately want Folders so that way i can put all the YouTube Feeds in one folder, iPlayer feeds in one folder ect

The other cool option when we have folders is, Serviio could allow to have folder icons (i know this currently works on PS3 and Bravia TVs)
This way my YouTube, iPlayer ect folders will be more visual to access
Sony Bravia 2010 52NX803 - Sony PS3 - Xbox 360
Serviio running on QNAP NAS 639 Pro - 1.6 Intel Dual Core - 2GB RAM and QNAP NAS 121 - 2Ghz ARM Marvell - 1GB RAM
Console using ServiiDroid for Android, ServiiMetro and ServiiWP for Windows Phone and WebUI for iOS
<<

JerseyJoe123

Streaming enthusiast

Posts: 38

Joined: Wed Jan 18, 2012 4:22 am

Post Thu Aug 16, 2012 9:13 pm

Re: Sort Library Online Sources

I'd love the folder capabilities too. It would make management of Online sources much nicer, rather than the huge single list that I have now. Maybe the addition of user definable categories with the ability to specify which feeds appear within those categories in the online source properties screen.
<<

steveaj

Serviio newbie

Posts: 18

Joined: Fri Mar 16, 2012 5:38 pm

Location: North Yorkshire

Post Wed Aug 22, 2012 10:19 am

Re: Sort Library Online Sources

Up and down buttons REALLY useful, folders could add convenience too.
<<

Wingsgb

Serviio lover

Posts: 82

Joined: Sun Feb 26, 2012 5:02 pm

Post Thu Aug 23, 2012 9:01 am

Re: Sort Library Online Sources

steveaj wrote:Up and down buttons REALLY useful, folders could add convenience too.


These are a must in my opinion.
<<

mpemberton5

DLNA master

Posts: 120

Joined: Sun Aug 28, 2011 9:01 pm

Location: North Carolina, USA

Post Sun Aug 26, 2012 9:41 pm

Re: Sort Library Online Sources

Web UI for PHP will have this in the next release. Keep on the lookout.

Cheers,
Mark
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Sun Aug 26, 2012 10:32 pm

Re: Sort Library Online Sources

Beta test volunteer here Mark!
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Aug 26, 2012 11:27 pm

Re: Sort Library Online Sources

mpemberton5 wrote:Web UI for PHP will have this in the next release. Keep on the lookout.

Cheers,
Mark

HOw will you implement it? I think I'll add a index attribute to sort by. I assume you will remove all and add them again..?
<<

mpemberton5

DLNA master

Posts: 120

Joined: Sun Aug 28, 2011 9:01 pm

Location: North Carolina, USA

Post Mon Aug 27, 2012 1:12 am

Re: Sort Library Online Sources

zip wrote:
mpemberton5 wrote:Web UI for PHP will have this in the next release. Keep on the lookout.

Cheers,
Mark

HOw will you implement it? I think I'll add a index attribute to sort by. I assume you will remove all and add them again..?

I'm doing all the manipulation at the client level (via some fancy javascript). It appears that when an updated repository is received (via PUT /rest/repository), the API renumbers the list of online sources starting with "1" based on how they were received. Please correct me if this is not the way it should be working, but based on this it seems to work.

As a basic example, I have two online sources. I use some javascript to re-arrange them in a new order. See below:

Original list:
  Code:
  <onlineRepositories>
    <onlineRepository>
      <id>1</id>
      <repositoryType>FEED</repositoryType>
      <contentUrl>http://diystyle.net/vodcasts/feed/</contentUrl>
      <fileType>VIDEO</fileType>
      <repositoryName>http://diystyle.net/vodcasts/feed/</repositoryName>
      <enabled>true</enabled>
      <accessGroupIds>
        <id>1</id>
      </accessGroupIds>
    </onlineRepository>
    <onlineRepository>
      <id>2</id>
      <repositoryType>FEED</repositoryType>
      <contentUrl>http://streams.wgbh.org/online/clas/clas_performance.xml</contentUrl>
      <fileType>AUDIO</fileType>
      <repositoryName></repositoryName>
      <enabled>true</enabled>
      <accessGroupIds>
        <id>1</id>
      </accessGroupIds>
    </onlineRepository>
  </onlineRepositories>


I would then send the newly sorted list like:
  Code:
  <onlineRepositories>
    <onlineRepository>
      <id>3</id>
      <repositoryType>FEED</repositoryType>
      <contentUrl>http://streams.wgbh.org/online/clas/clas_performance.xml</contentUrl>
      <fileType>AUDIO</fileType>
      <repositoryName></repositoryName>
      <enabled>true</enabled>
      <accessGroupIds>
        <id>1</id>
      </accessGroupIds>
    </onlineRepository>
    <onlineRepository>
      <id>4</id>
      <repositoryType>FEED</repositoryType>
      <contentUrl>http://diystyle.net/vodcasts/feed/</contentUrl>
      <fileType>VIDEO</fileType>
      <repositoryName>http://diystyle.net/vodcasts/feed/</repositoryName>
      <enabled>true</enabled>
      <accessGroupIds>
        <id>1</id>
      </accessGroupIds>
    </onlineRepository>
  </onlineRepositories>

Unless there is something I'm missing, this should work. I'm certainly open to alternatives if you have something more in mind.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Mon Aug 27, 2012 3:36 am

Re: Sort Library Online Sources

I think the rule for adding is that you leave the id blank. So GET 1, 2,3. reorder data, putback 3, 2, 1 data without ids. I don't know if new ids will then be 1,2,3 or 4,5,6.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Aug 27, 2012 9:31 pm

Re: Sort Library Online Sources

I will have to check the code and what it affects and will do it as a part of the bitbucket ticket. If it works for you like this go ahead, but it might not be the most efficient way. I suggest you follow the ticket and when it's done I'll update the API doc if there are any changes.
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Mon Aug 27, 2012 9:40 pm

Re: Sort Library Online Sources

I had to remove them and re add them to get it work reliability when I did it for 0.6.X, which is effectively what you are doing as Serviio will ignore ids that it doesn't recognise, so you don't even need to renumber then. Having a proper sortId/index was the originally proposed solution as you would just change that and the content wouldn't have to be recached.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Mon Aug 27, 2012 9:44 pm

Re: Sort Library Online Sources

I desperately want folders for online source to keep my ever growing content nicely organised. :D

Zip is there any way the Windows console can refresh the online content list. Im using the new cool ServiioTube Chrome extension to add new content. It appears straight away saved in Web UI but not the Windows console.
Sony Bravia 2010 52NX803 - Sony PS3 - Xbox 360
Serviio running on QNAP NAS 639 Pro - 1.6 Intel Dual Core - 2GB RAM and QNAP NAS 121 - 2Ghz ARM Marvell - 1GB RAM
Console using ServiiDroid for Android, ServiiMetro and ServiiWP for Windows Phone and WebUI for iOS
<<

mpemberton5

DLNA master

Posts: 120

Joined: Sun Aug 28, 2011 9:01 pm

Location: North Carolina, USA

Post Mon Aug 27, 2012 9:49 pm

Re: Sort Library Online Sources

will wrote:I had to remove them and re add them to get it work reliability when I did it for 0.6.X, which is effectively what you are doing as Serviio will ignore ids that it doesn't recognise, so you don't even need to renumber then. Having a proper sortId/index was the originally proposed solution as you would just change that and the content wouldn't have to be recached.

After reading the originally proposed solution, I do like the option of having a sortId better. However, I do know that requires a lot of changes by zip. If this is something that could be introduced in the next release, I'd be glad to wait for it.
<<

mpemberton5

DLNA master

Posts: 120

Joined: Sun Aug 28, 2011 9:01 pm

Location: North Carolina, USA

Post Mon Aug 27, 2012 9:54 pm

Re: Sort Library Online Sources

Xmantium wrote:I desperately want folders for online source to keep my ever growing content nicely organised. :D

Zip is there any way the Windows console can refresh the online content list. Im using the new cool ServiioTube Chrome extension to add new content. It appears straight away saved in Web UI but not the Windows console.

Xmantium, I really like the folders option too. Would definitely organize the list.
Next

Return to Feature requests

Who is online

Users browsing this forum: No registered users and 75 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.