Page 1 of 2

Sort Library Online Sources

PostPosted: Tue Aug 14, 2012 9:50 am
by gbenze
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

Re: Sort Library Online Sources

PostPosted: Tue Aug 14, 2012 12:34 pm
by jhb50
A long standing request!

Re: Sort Library Online Sources

PostPosted: Thu Aug 16, 2012 12:17 am
by Xmantium
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

Re: Sort Library Online Sources

PostPosted: Thu Aug 16, 2012 12:54 am
by npuser
+1

Re: Sort Library Online Sources

PostPosted: Thu Aug 16, 2012 1:04 am
by xs2inattar
+1

Re: Sort Library Online Sources

PostPosted: Thu Aug 16, 2012 7:43 am
by patters
+1 I'd be happy with up/down buttons, less bothered about folders and such.

Re: Sort Library Online Sources

PostPosted: Thu Aug 16, 2012 7:12 pm
by Xmantium
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

Re: Sort Library Online Sources

PostPosted: Thu Aug 16, 2012 9:13 pm
by JerseyJoe123
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.

Re: Sort Library Online Sources

PostPosted: Wed Aug 22, 2012 10:19 am
by steveaj
Up and down buttons REALLY useful, folders could add convenience too.

Re: Sort Library Online Sources

PostPosted: Thu Aug 23, 2012 9:01 am
by Wingsgb
steveaj wrote:Up and down buttons REALLY useful, folders could add convenience too.


These are a must in my opinion.

Re: Sort Library Online Sources

PostPosted: Sun Aug 26, 2012 9:41 pm
by mpemberton5
Web UI for PHP will have this in the next release. Keep on the lookout.

Cheers,
Mark

Re: Sort Library Online Sources

PostPosted: Sun Aug 26, 2012 10:32 pm
by jhb50
Beta test volunteer here Mark!

Re: Sort Library Online Sources

PostPosted: Sun Aug 26, 2012 11:27 pm
by zip
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..?

Re: Sort Library Online Sources

PostPosted: Mon Aug 27, 2012 1:12 am
by mpemberton5
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.

Re: Sort Library Online Sources

PostPosted: Mon Aug 27, 2012 3:36 am
by jhb50
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.

Re: Sort Library Online Sources

PostPosted: Mon Aug 27, 2012 9:31 pm
by zip
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.

Re: Sort Library Online Sources

PostPosted: Mon Aug 27, 2012 9:40 pm
by will
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.

Re: Sort Library Online Sources

PostPosted: Mon Aug 27, 2012 9:44 pm
by Xmantium
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.

Re: Sort Library Online Sources

PostPosted: Mon Aug 27, 2012 9:49 pm
by mpemberton5
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.

Re: Sort Library Online Sources

PostPosted: Mon Aug 27, 2012 9:54 pm
by mpemberton5
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.