Page 1 of 2

SubRok for Amarok

PostPosted: Sat Dec 29, 2012 7:01 pm
by m4x1m
SUBROK FOR AMAROK
SubRok allows you to play songs from a Subsonic server!

INSTRUCTIONS
Open "Configure SubRok" and set your server host, port number, username, password and REST API version!

IMPORTANT
For the backwards compatibility, see http://www.subsonic.org/pages/api.jsp#versions

PLAYLISTS
Tools -> SubRok Playlists (full management available after 1.2.0 REST API version)
To import, select one playlist from the first drop-down box, and click "OK",
otherwise if you click "Delete" the selected playlist will be deleted (if owned by you).
To export a playlist to the Subsonic Server, create a playlist in Amarok and save it, rename the playlist by adding the suffix "SubRok"
For example: [SubRok] - Pop/Rock Music, then select it from the second drop-down box and click "OK".
To get random songs, choose the number of songs and then click "Get Random Songs"

CHANGELOG
Code: Select all
v1.7:
- Added new REST API selection for new Subsonic v5.2.1
- Add leading zero to the track numbers for a correct order in the playlist.

v1.6:
- Added new REST API selection (1.10.2) for new Subsonic v4.9.
- Added a workaround to show the track number (thanks to rsalvador).

v1.5:
- Added new REST API selection (1.9.0) for new Subsonic v4.8.

v1.4:
- Added option to select appropriate REST API version to get a backwards compatibility (http://www.subsonic.org/pages/api.jsp#versions).
- Fixed issue with the non existent avatar showed in infoHTML.

v1.3:
- For password option, display characters as they are entered while editing otherwise display asterisks.

v1.2:
- Added button to test connection paramaters in config dialog.

v1.1:
- Added playlist management. See README file for know how it works.
- Fixed minor bugs.

v1.0:
- First script release.

DOWNLOAD LINK
http://kde-apps.org/content/show.php?content=156122

That's all!

If you like this script please leave a comment!

Re: SubRok for Amarok

PostPosted: Sat Dec 29, 2012 10:53 pm
by daneren2005
Quick question, does it support subsonic playlists, or just the flat songs?

Re: SubRok for Amarok

PostPosted: Sun Dec 30, 2012 10:04 am
by m4x1m
daneren2005 wrote:Quick question, does it support subsonic playlists, or just the flat songs?


In this first version just the flat songs, but I will try to add more features later on :mrgreen:

Re: SubRok for Amarok

PostPosted: Sun Dec 30, 2012 10:54 pm
by iwill
Just wanted to say that this looks like it has a lot of potential! I'll have to try it out on my Ubuntu multimedia server!

Re: SubRok for Amarok

PostPosted: Mon Dec 31, 2012 8:12 pm
by m4x1m
New Version - v1.1

DOWNLOAD LINK

http://kde-apps.org/content/show.php?content=156122

Code: Select all
v1.1:
- Added playlist management. See README file for know how it works.
- Fixed minor bugs.

Re: SubRok for Amarok

PostPosted: Thu Jan 03, 2013 5:24 pm
by kantlivelong
I have been looking for something like this for a long time! Thank you sooo much for your efforts!!!

Are there any plans to support the folder structure like the native web ui?

Re: SubRok for Amarok

PostPosted: Thu Jan 03, 2013 5:57 pm
by m4x1m
kantlivelong wrote:I have been looking for something like this for a long time! Thank you sooo much for your efforts!!!

Are there any plans to support the folder structure like the native web ui?


Unfortunately the Amarok scripting is quite limited, this is the only way to display the artists, albums and songs. Anyway, if in the future versions of Amarok, extends the API, I will try to keep up.

Re: SubRok for Amarok

PostPosted: Tue Jan 15, 2013 1:53 pm
by guisar
Thanks! The plugin works great and makes both subsonic and Amarok WAY more useful. Amarok 2 is finally getting to shine:) One note to those using it, if you haven't already figured this out if you are using a redirection service like ***.subsonic.org then you should leave the port blank in the configuration dialogue as including it will cause a silent failure.


One suggestion for the next version is a "test" option either implicitly or explicitly to verify that the connection and credentials are valid- took me a while to figure out what this issue was as there was not way to see if the script was broken (it wasn't), my config or my credentials were baked. I'd correct myself and send back but haven't looked at yet.

Re: SubRok for Amarok

PostPosted: Tue Jan 15, 2013 6:03 pm
by m4x1m
guisar wrote:Thanks! The plugin works great and makes both subsonic and Amarok WAY more useful. Amarok 2 is finally getting to shine:) One note to those using it, if you haven't already figured this out if you are using a redirection service like ***.subsonic.org then you should leave the port blank in the configuration dialogue as including it will cause a silent failure.


One suggestion for the next version is a "test" option either implicitly or explicitly to verify that the connection and credentials are valid- took me a while to figure out what this issue was as there was not way to see if the script was broken (it wasn't), my config or my credentials were baked. I'd correct myself and send back but haven't looked at yet.


New Version - v1.2

DOWNLOAD LINK
http://kde-apps.org/content/show.php?content=156122

Code: Select all
v1.2:
- Added button to test connection paramaters in config dialog.

Re: SubRok for Amarok

PostPosted: Wed Jan 23, 2013 12:26 pm
by achmetinternet
Please make sure that the PW is not shown, i.e. use asterisks or dots for it to be hidden.

Re: SubRok for Amarok

PostPosted: Wed Jan 23, 2013 3:03 pm
by m4x1m
achmetinternet wrote:Please make sure that the PW is not shown, i.e. use asterisks or dots for it to be hidden.


Two ways.
1. Display asterisks instead of the characters actually entered.
2. Display characters as they are entered while editing otherwise display asterisks.

I prefer the second, what do you think? :wink:

Re: SubRok for Amarok

PostPosted: Wed Jan 30, 2013 10:31 am
by m4x1m
New Version - v1.3

DOWNLOAD LINK
http://kde-apps.org/content/show.php?content=156122

Code: Select all
v1.3:
- For password option, display characters as they are entered while editing otherwise display asterisks.

Re: SubRok for Amarok

PostPosted: Thu Feb 07, 2013 6:22 pm
by m4x1m
New Version - v1.4

DOWNLOAD LINK
http://kde-apps.org/content/show.php?content=156122

Code: Select all
v1.4:
- Added option to select appropriate REST API version to get a backwards compatibility (http://www.subsonic.org/pages/api.jsp#versions).
- Fixed issue with the non existent avatar showed in infoHTML.

Re: SubRok for Amarok

PostPosted: Sat Mar 16, 2013 4:24 pm
by xtxer
My sincere thanks for this amarok script! I'm currently listening to my personal music in amarok at my windows work pc which is awesome. I've never even used amarok on windows before today.

Only minor issue is that the track numbers don't appear to be loading properly, within each album the tracks are sorted alphabetically.

Re: SubRok for Amarok

PostPosted: Sat Mar 16, 2013 7:01 pm
by m4x1m
xtxer wrote:My sincere thanks for this amarok script! I'm currently listening to my personal music in amarok at my windows work pc which is awesome. I've never even used amarok on windows before today.


Thanks! :D

xtxer wrote:Only minor issue is that the track numbers don't appear to be loading properly, within each album the tracks are sorted alphabetically.


As you can see from http://community.kde.org/Amarok/Development/Script_API#ScriptableService.StreamItem there is no way to set the track number at the moment, I hope will be implemented in the future. :wink: