Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Headphones(Music organizer) Plugin

Featured Replies

  • Author

Glad to hear it, I'll hopefully be cleaning up/improving the config later on, right now I've got another project I'm working on, :). I'll probably hit a roadblock sooner or later and switch back over to this and clean it up.

  • Replies 80
  • Views 26.2k
  • Created
  • Last Reply

Setting the permissions to 664 seemed to fix it. Thanks for your help and for creating this plugin

 

1. Makes sure the path is correct(capitalization) /mnt/user/Music is NOT the same as /mnt/user/music

2. Check permissions, its best to have your shares owned by nobody:users with atleast a 644 or 640 permission, with headphones running as nobody, if your directory is owned by root and does not atleast have a *4* permission, headphones won't be able to access it.

 

 

For testing purposes I would do the following(assuming your path was correct)

chown -R nobody:users /mnt/user/Music
chmod -R 664 /mnt/user/Music

So how should I set this up, I have a cache drive?  Does this look right?

 

Install directory: /mnt/cache/headphones

Data directory: /mnt/user/iTunes Server/iTunes/Music

  • Author

You can have it install to the cache drive, but you can leave it in ram if you want, the default being /usr/local/headphones.

 

You could also put the data dir with the music, but for cleanliness I would put it in another directory, most put it on their cache drive, you can put it on the array if you want, if you do that I'd suggest possibly /mnt/user/iTunes Server/headphones.

 

If you decide to put it on the cache drive, make sure to put it in a hidden folder, you can make it hidden by putting a period(.) in front of the name, like this:

/mnt/cache/.apps/headphones

You can have it install to the cache drive, but you can leave it in ram if you want, the default being /usr/local/headphones.

 

You could also put the data dir with the music, but for cleanliness I would put it in another directory, most put it on their cache drive, you can put it on the array if you want, if you do that I'd suggest possibly /mnt/user/iTunes Server/headphones.

 

If you decide to put it on the cache drive, make sure to put it in a hidden folder, you can make it hidden by putting a period(.) in front of the name, like this:

/mnt/cache/.apps/headphones

 

so the install directory can be the default - /usr/local/headphones

data directory - /mnt/cache/_headphones

 

Why is this fine to leave on ram but things like SB on cache?  I have a Mac and like to use underscores instead of periods.

  • Author

the data dir must be on cache or on the array, the install directory doesn't matter as unraid can install the program again on boot, like I said, you can put it on the cache as well if you don't want the server to keep downloading the program. For most unRAID servers are on 24/7 so its not an issue. Even if rebooting frequently the programs are so small downloading them is barely noticable.

 

I'm not the most linux savvy person, if having an underscore hides the folder, then that will work fine. I know a period does. Also know nothing about macs, :).

 

 

So how has the headphones app been going for people? Upon reading I've seen that it is not a complete app and has a couple of bugs and quirks that appear from time to time? Just asking as I am pretty keen to try it out.

 

What's the best way for headphones to organise and "post process / rename " the music?

Also is it possible to have an itunes server on my unraid server so I can play the music without a front end media player? Do any of you guys stream your music from your server to an av receiver or dlna stereo or something?

 

Sorry for all the questions haha >.<

  • Author

As odd as it sounds being the one that made the plug-in, I've never really used headphones aside from checking it out now and then.

 

It seems to have come a long way and people are able to use it now, instead of just testing it and saying "thats pretty cool, good luck!".

 

The only thing that seems to be a deal breaker for me, which I'm actually talking to Rembo10 about right now, is headphones doesn't seem to recurse any further than one or two directories to find the music, while for how my directory is set up, I need it to recurse 3 levels at the least.

 

My music is organized like this:

Top folder - Genre - Artist - Album - mp3

 

So if I set headphones to, for instance, /mnt/user/Music/Alternative/, headphones will find my music. But since you can only set one directory, I need to set it for this:

/mnt/user/Music/.

Headphones doesn't seem to find my music if I do this, so I assume it is not recursing far enough. I considered changing how my music is organized, but I can't justify this(although it would be easy). I can find exactly what I want or play exactly what I want without relying on a media player to read tags to play the genre I want.

 

I say set up a test share, copy some of your music over to it and give it a try. Music is A LOT harder than TV or movies, there are a lot more releases, multiple versions of the same song, basically a lot of variables that its really hard to work with.

 

That and you will probably want to look into making a musicbrainz mirror to test with atleast, musicbrainz throttles headphones requests so it makes it pretty damn unusable first starting out when headphones is scanning your music, it gets access denied A LOT. Musicbrainz offers a OVA(virtual appliance) that you can load with VirtualBox, makes it easy to get up and running to test. And after you scan all your music in, since headphones shouldn't need to request as much from musicbrainz, you should be able to switch back to their server. Alternatively, you can donate $10 and get access to Rembo's personal musicbrainz server.

As odd as it sounds being the one that made the plug-in, I've never really used headphones aside from checking it out now and then.

 

It seems to have come a long way and people are able to use it now, instead of just testing it and saying "thats pretty cool, good luck!".

 

The only thing that seems to be a deal breaker for me, which I'm actually talking to Rembo10 about right now, is headphones doesn't seem to recurse any further than one or two directories to find the music, while for how my directory is set up, I need it to recurse 3 levels at the least.

 

My music is organized like this:

Top folder - Genre - Artist - Album - mp3

 

So if I set headphones to, for instance, /mnt/user/Music/Alternative/, headphones will find my music. But since you can only set one directory, I need to set it for this:

/mnt/user/Music/.

Headphones doesn't seem to find my music if I do this, so I assume it is not recursing far enough. I considered changing how my music is organized, but I can't justify this(although it would be easy). I can find exactly what I want or play exactly what I want without relying on a media player to read tags to play the genre I want.

 

 

You could keep your existing file structure,  and use symlinks.  That'd probably work.

  • Author

I got it to work, ended up having to delete the database and let it start fresh, it was hanging up on something. It found everything fine so the structure works alright.

Hey this plugin is downloading as an xml file. I think it is why it won't appear on my server after a reboot. It should be a plg file shouldn't it? How do I go abouts changing the file type? :)

  • Author

A plug-in is essentially a XML file. Not sure why its downloading as a XML, just checked and downloaded it and it comes down as a plg here.

 

If you are on windows you can go to Control Panel > Appearance > Folder Options > "View" Tab  and uncheck "Hide extentions for known file types" and just change the extension from .xml to .plg

 

Any other OS you should be able to just change the extension

Yeah cheers mate that did the trick. The plugin works great, however, for me at least, headphones doesn't seem to be what i was hoping it to be. I decided to start a new music share from scratch and NOT scan my existing music library just to see how it goes.

 

Sometimes when you search a band ie: Red Hot Chilli Peppers, it will will find them but for some reason when I added them like I would a TV series in sickbeard it came up with something like " Willy and the Peppers ". ( Made me LOL! ).

 

Also I searched for Foo Fighters and it found them but it's only returning a couple of their singles as opposed to their discography.

 

Just a heads up for anyone interested in trying headphones. Like I said the plugin works awesome and installs perfectly it's just the actual application is a bit skewiff haha.

  • Author

Yeah its still very much a work in progress, but its leagues better than it was months ago when I first checked it out.

 

Musicbrainz throttles headphones so that might be why it only returned some singles instead of their discography. It'll get a access denied on most of its requests, only work around is to find a private server, if you donate $10 to rembo you get access to his musicbrainz mirror server.

Does he have a large collection of music or something. Do you know what the collection of music is like? Might be interested in trying that.

  • Author

The mirror server is a exact replica of the musicbrainz server, it has information on whatever music the musicbrainz server has information on. It doesn't contain any music files itself, only information, release dates, artists, track titles, and such, for the music.

 

You can setup a private musicbrainz mirror yourself, all the information is on the musicbrainz website. To test things out, I downloaded their virtual box appliance that is basically a ready-made virtual image with the server set up and (mostly) up to date. You can import that into virtual box and start it up, get the ip and then configure headphones to point to your virtualized musicbrainz server. Works pretty well.

 

 

how do i send the donation and connect to his server?

Eh I decided to delete the headphones app. Whilst I was getting good album hits using the mirrored server, I was getting too many post processing errors and other errors in general. I might try it again in a few months.

 

 

  • 3 weeks later...
  • Author

For those interested, the bug where headphones pulled all albums, including extra's(live, compilation, ep, etc) has been fixed in a new branch, rembo will be committing the changes to the master branch(what the plug-in uses) in a couple days after a bit more testing.

 

If its not committed in the next few days I'll update the plug-in to pull from the new branch until it is fixed in master.

Has anybody else found Headphones using a lot of CPU?  I've had to stop it because Python was putting my server under heavy load :(

  • Author

Hasn't put my server under load at all... And I've been scanning a pretty big library all night/day

 

Here's the top output for headphones

 USER
19265 nobody    20   0  184m  51m 3736 S    0  0.7   3:26.27 python

 

It has finished scanning my library, so there's no activity now, but as you can see, its using very little memory and no CPU right now

Weird.  Do you have any recommendations on how I might go about finding the cause of this?

 

I am running the latest version using the update facility and I have a very small library specified so it shouldn't be doing any heavy scanning.  It causes shfs to rise in CPU usage so I presume its doing something with the disks, can I find out what it is accessing?

  • 3 weeks later...

just installed the plugin from github and I can't get the updater to work... anyone else having problems?

does one of the plugins from github install git?

 

so I found that the CP_v2 plugin installs git, doesn't that still cause problems with Headphones?

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.