Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
5.0

Description:
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"

That's all!

If you like this script please leave a comment!
Last changelog:

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.


Ratings & Comments

14 Comments

lu6fer

Hello, any plan to update api version to match latest subsonic version ?

lu6fer

Hello, thanks for updating subrok API version :) I juste find some bug with port configuration : If you have an hostname with context (reverse proxy configuration "http://hostname:8080/subsonic"), the configured port goes after the conext, and not after the hostname (http://hostname/subsonic:8080) instead of (http://hostname:8080/subsonic)

m4x1m

Try to leave Port field blank and put the complete address in the Hostname field.

lu6fer

this is the solution I found, after posting here :)

emunson

I am using SubRok 1.7 with Subsonic 5.2.1. When streaming an mp3 the playback stops with 5 seconds remaining in the song. Song transitions are fine, but the pause near the end is annoying. Can SubRok be configured to cache the entire song plus the next song to avoid this pause?

m4x1m

SubRok is only an intermediary between Amarok and the Subsonic Server, I can't manipulate the streaming.

WHTC

I really like the script. I just got Subsonic set up recently and browsing the collection through Amarok is great. However, when track numbers are added to the title, Amarok sorts them alphabetically in the playlist, and thus incorrectly. Example:

    1 - My First Track
    10 - My Tenth Track
    11 - My Eleventh Track
    2 - My Second Track
I realise this isn't your problem, but a limitation in Amarok's StreamItem. I updated the script to pad track numbers with a leading 0, so everything sorts properly. If you are interested in the patch, just let me know where to send it. Thanks, Hugh

m4x1m

Sorry but, on my Amarok (v2.8) the tracklist are correct. My sort order configuration is "Track Artist / Year - Album" and Amarok show me 1 2 3, not 1 10

WHTC

I'm running the same version. And yes, the track list is ordered correctly in the Media Sources view. It is when I select an album and choose "Add to Playlist" or "Replace Playlist" that the tracks are ordered incorrectly in the Playlist view. I'll send you a message with a link to a screenshot.

gerdtorok

I really like the idea behind, good work you're doing. Unfortunately the REST-API got upgraded again, could please have a look to support 1.12 ? Would really appreciate it - keep it up =)

elessartelrunya

Hi unfortunately I get "Incompatible Subsonic REST protocol version. Server must upgrade." message after click on "Test Connection". Would you provide an upgrade / a version that works with musiccabinet?

m4x1m

If is only a problem related to the version of REST protocol, I can add a dropdown menu in the configuration dialog where you can select the right version. What version uses musiccabinet?

m4x1m

I gave a look at musiccabinet, is based on version 4.7 of subsonic, so there should be no problem, it's weird. To work well, SubRok is coded to use the latest set of API REST. From the Subsonic documentation: - Starting with version 1.8.0, the API provides methods for accessing the media collection organized according to ID3 tags, rather than file structure. For instance, browsing through the collection using ID3 tags should use the getArtists, getArtist and getAlbum methods. To browse using file structure you would use getIndexes and getMusicDirectory. - My previously idea isn't good, because there isn't compatibility with previous API REST, since I used these calls to run the script. I'm sorry.

elessartelrunya

Hi, thanks for your efforts so far. Using https://my-server/musiccabinet/xsd/subsonic-rest-api.xsd in the xsd it says version 1.7.0 Looking at the rest api doc it says with parameter 'v' you can specify the client version. I guess that's what you're doing? I will ask the musiccabinet devs, maybe they know more. cheers

Pling
0 Affiliates
Details
license
version 1.7
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 2

Other Amarok 2.x Scripts:

raya
raya1234
last update date: 15 years ago

Score 5.0

Partition Assistant
shiny521
last update date: 15 years ago

Score 5.0

google-clone
jenifferhomes
last update date: 15 years ago

Score 5.6

Quran Audio Library
boubakr92
last update date: 12 years ago

Score 4.4

Remove Current Track
alexoleshkevich
last update date: 14 years ago

Score 4.7

indoLyrics
cyrus007
last update date: 14 years ago

Score 4.7



System Tags