SubRok

Amarok 2.x Scripts

Source (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
Score 50.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:

4 years ago

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.

lu6fer

4 years ago

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

Report

lu6fer

4 years ago

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)

Report

C

m4x1m

4 years ago

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

Report

lu6fer

4 years ago

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

Report

emunson

4 years ago

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?

Report

C

m4x1m

4 years ago

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

Report

WHTC

4 years ago

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

Report

C

m4x1m

4 years ago

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

Report

WHTC

4 years ago

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.

Report

gerdtorok

5 years ago

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 =)

Report

elessartelrunya

6 years ago

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?

Report

C

m4x1m

6 years ago

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.

Report

elessartelrunya

6 years ago

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

Report

C

m4x1m

6 years ago

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?

Report

4 years ago

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.

12345678910
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.7
updated Jun 05 2015
added Dec 29 2012
downloads 24h
0
mediaviews 24h 0
pageviews 24h 2
System Tags addon