MusicCabinet - artist radio, genre radio & related artists

Artist radio, genre radio & related artists. A Subsonic server for music nerds.

Moderator: moderators

Re: MusicCabinet - artist radio, genre radio & related artis

Postby cakgok » Tue Sep 11, 2012 9:10 pm

Oh even better! But it's too bad torrenting makes it impossible for me sometimes.

By the way, i couldn't get flac transcoding working, any ideas about that? ( Tried with both symbolic links and actual binaries in /var/subsonic/transcode )
cakgok
 
Posts: 6
Joined: Mon Sep 10, 2012 4:28 pm

Re: MusicCabinet - artist radio, genre radio & related artis

Postby hakko » Tue Sep 11, 2012 9:20 pm

Many people use the solution of having separate copies of all music: one for seeding torrents and one for your actual library (where you can then use an external tool like beets to clean up all tags).

I haven't spent so much time transcoding but it "should" work, I've seen other people using MusicCabinet doing it. So I guess it's a matter of finding a working ffmpeg/lame, making sure the user running the Subsonic process has execute rights etc. The subsonic.log file should give quite a lot of info on what's going on.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: MusicCabinet - artist radio, genre radio & related artis

Postby Pcace » Wed Sep 12, 2012 9:05 am

Hey, it seems to work now pretty good. BUT - is it possible that 3rd party software like iSub (iPhone) does not work anymore with the mod?

The complete Search function and also the browsing function does not work!

Is this a Probem of Subsonic or is this 4.7 Beta related?


Thanks a lot again,

Pcace
Pcace
 
Posts: 117
Joined: Tue Nov 29, 2011 2:44 pm

Re: MusicCabinet - artist radio, genre radio & related artis

Postby hakko » Wed Sep 12, 2012 5:28 pm

I've tested it with iSub to browse my library, play music, list recently added albums etc and it has been working just fine. Not sure about the search function though. Can you explain in more detail how the browsing does not work?

To verify, you could also start a browser and surf to host:port/rest/getIndexes.view?u=admin&p=admin&c=ff&v=1.7.0

Exchange "host:port" with your own domain, and admin with your own username/password. (u=user, p=password)
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: MusicCabinet - artist radio, genre radio & related artis

Postby orangepeelbeef » Wed Sep 12, 2012 8:47 pm

Seems like a neat mod, but it completely screws up the search folder ui on the android app.

Also, it doesn't display ANY of the video files. I use subsonic for video streaming too, and your mod seems to break it. (at least for the android app) The search index contains no video files only audio ones. Selecting a different folder in the android app ui, shows the same data no matter which folder i select.
orangepeelbeef
 
Posts: 2
Joined: Wed Sep 12, 2012 8:46 pm

Re: MusicCabinet - artist radio, genre radio & related artis

Postby hakko » Wed Sep 12, 2012 9:24 pm

Sounds like I have to look into the app search function! I was re-making it for the Subsonic server so it probably needs an overhaul.

I listen to music a lot, but I never ever stream videos. So I left the ability to access videos from the Subsonic server (although clunky via the file-based browsing), but I didn't even consider it for the apps. It's harder for them as they have a more limited interface. There are a few workaround I can think of but they'll all come out a bit weird and non-intuitive.

I think that if you use video streaming a lot, this is probably not the mod you want to use. It's much more likely that I'll add new ways of generating playlists, finding new music, searching for similarities between artists etc than that I'll even start working on videos. This is just the music server I'm making for myself, and which I figured I might as well share with the rest of the world. Maybe I need to make that more clear, sorry for false adverts.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: MusicCabinet - artist radio, genre radio & related artis

Postby vollbr0t » Fri Sep 14, 2012 11:14 am

When using the checkboxes to select some songs from the current playlist (lower frame), the automatic-refresh of the playlist-frame deselects all checked songs. Since the refresh-timer is pretty fast, it is rarely possible to check more than 5 songs and perform any action with those.
vollbr0t
 
Posts: 75
Joined: Wed Jan 19, 2011 6:35 pm

Re: MusicCabinet - artist radio, genre radio & related artis

Postby Caleb » Fri Sep 14, 2012 2:13 pm

Great Mod, thanks for your wonderful work!

One question though: what do I need to do in case there's a new subsonic version? (I'm using 4.7beta3 right now and obviously planning to install the final). Do I need to reinstall the mod after installing the new subsonic?
Caleb
 
Posts: 17
Joined: Fri Feb 12, 2010 11:37 pm

Re: MusicCabinet - artist radio, genre radio & related artis

Postby hakko » Fri Sep 14, 2012 2:59 pm

Thanks! This mod is complete replacement for the normal Subsonic server. So if you're using it, you're not really using Subsonic 4.7 beta3 anymore. I've incorporated some features from 4.7 (like the starring) into MusicCabinet, and left out others (like the playlist import).

This project is completely about creating a more advanced streaming music server for people with large music libraries, while Sindre seems more into video streaming right now. So I'd say that MusicCabinet and Subsonic are moving in different directions, and you just have to make a decision which one fits your needs best based on the different functionality they offer.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: MusicCabinet - artist radio, genre radio & related artis

Postby hakko » Sat Sep 15, 2012 5:28 pm

precipitous wrote:Regarding integrating more Last.FM data and functionality - I would LOVE to have the ability to select and play Last.FM (user) group radio in MusicCabinet much like we can now play genre radio. They have some really amazing group radio stations available like Brainwashed, The Real Dark Ambient Group, Cold Meat Industry, etc.

@Hakko - Would such a thing be possible?


I'm happy to announce that Last.fm groups are now integrated into MusicCabinet/Subsonic. See viewtopic.php?f=4&t=9777&p=45742#p45742. To use it, go to Settings -> MusicCabinet -> Group settings, and add "Brainwashed" or some other group of your taste. Head over to Genres, and it should be displayed below your genre cloud. If it doesn't, go have a coffee, and come back and press Genres again, last.fm might just be slow.

Also, searching has been fixed for mobile clients (works on my iSub at least).
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: MusicCabinet - artist radio, genre radio & related artis

Postby hakko » Sat Sep 15, 2012 5:30 pm

vollbr0t wrote:When using the checkboxes to select some songs from the current playlist (lower frame), the automatic-refresh of the playlist-frame deselects all checked songs. Since the refresh-timer is pretty fast, it is rarely possible to check more than 5 songs and perform any action with those.


This must be the case for a normal Subsonic installation too, right? I totally agree that it's broken but I think Sindre should fix it. : )
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: MusicCabinet - artist radio, genre radio & related artis

Postby maxxh » Sun Sep 16, 2012 11:35 am

This mod looks really interesting, just wanted it to try, but

Is there any configuration setting to specify the PostgreSQL user and database name?

I really don't want to use the default 'postgres' Superuser for MusicCabinet (from a security perspective).
maxxh
 
Posts: 21
Joined: Sat Apr 16, 2011 9:22 pm
Location: Austria

Re: MusicCabinet - artist radio, genre radio & related artis

Postby hakko » Sun Sep 16, 2012 11:47 am

There's no setting for that, but it should be possible to to edit the subsonic.war file (it's just a .zip file actually). Look for the file applicationContext-service.xml. The database connection details are specified here: https://github.com/hakko/subsonic/blob/ ... e.xml#L237

It should also be possible to run the subsonic.sh script with extra parameters to achieve this, like java -Dmusiccabinet.jdbc.username=USERNAME -Dmusiccabinet.jdbc.url=jdbc:postgresql://localhost:5432/DATABASENAME (but I haven't tried).

postgres should be set up as a user with very low privileges, though. No connections to the database are allowed from the outside world unless you explicitly allow it.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: MusicCabinet - artist radio, genre radio & related artis

Postby maxxh » Sun Sep 16, 2012 8:03 pm

Thanks hakko, -Dmusiccabinet.jdbc.username=USERNAME works.

I had to make 2 small changes in the code though:
1) username is hardcoded here.
I changed it to ds.getUser()

2) musiccabinet-server/src/main/resources/sql/setup/1026.sql: create extension if not exists pg_trgm; (added if not exists)

It would be nice if you could add these changes to your git.


In case anyone else needs the steps to use a dedicated user to connect to the postgresql server (Ubuntu Linux):
Code: Select all
apt-get install postgresql-contrib
su postgres
  createuser --no-superuser --no-createdb --no-createrole --pwprompt subsonic
  createdb --owner=subsonic musiccabinet
  psql -d musiccabinet
    create extension pg_trgm;
subsonic.sh: add -Dmusiccabinet.jdbc.username=subsonic \
maxxh
 
Posts: 21
Joined: Sat Apr 16, 2011 9:22 pm
Location: Austria

Re: MusicCabinet - artist radio, genre radio & related artis

Postby hakko » Sun Sep 16, 2012 8:23 pm

Nice! Sorry you had to get your hands dirty working with the code, although it seems it was a no-brainer for you. I'll add those two changes!

Let me know if you run into any other issues or find other optimizations.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

PreviousNext

Return to MusicCabinet

Who is online

Users browsing this forum: No registered users and 4 guests