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

Let me start off by saying this is still very much a beta, I personally haven't used it a lot. I've poked around with it on and off, but thats pretty much the extent of it. With that being said, I do not support the app, just the plug-in. I'm not the best programmer/coder around, so the code might be ugly and it might take me longer than others to add stuff to the plug-in.

 

BUT, I've tested this plug-in just about every way I can and it seems solid. The only problem right now is with updates. I've added the option on the settings page to update, and it SHOULD work, but with how Headphones is coded, it wants git to verify the update + use the in-app updater. Without it headphones reports unknown version. I added the files to use the in-app updater, but commented them out until I get some feedback. The updater requires curl and git, curl is small at ~150 kb, but git is ~5mb. I know people like their unraid installs to be slim so I didn't make those download. You can un-comment the lines at the beginning of the plg or with feedback I'll do it and upload the new copy.

 

I'll also see about adding an option on the settings page to enable the in-app updater, which will essentially download the needed packages, disabling would delete the packages.

 

The setup is pretty much the same as sab/sickbeard/couchpotato, if you do not set the datadir your settings will not survive a reboot.

 

Download HERE!

 

UPDATE:

Updated 04-19-2012 - headphones-0.1b-influenced.plg - Removed unnecessary dependencies.

 

Updated 04-18-2012 - headphones-0.1a-influenced.plg - Fixed problem where plugin installed git and curl causing couchpotato to try and auto-update, breaking the plug-in. Also sometimes caused a loop trying to start the plug-in and wouldn't let array start on reboot.

 

Updated 05-19-2012 - headphones-1.0-influenced.plg - Added warning if data directory is located in volatile filesystem

 

 

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

Awesome! Thanks!

 

EDIT: It won't let me change the data directory or the port. I manually edited the cfg file in the /boot/config/plugins/ directory for the data directory and port I want and that worked but the webgui wouldn't save any of the changes I made.

  • Author

To save you have to be changing the status from enable to disable or vice versa.

 

So if your changing the port, if headphones is disabled, you would change the port, and then change from "disable" to "enable" and then save.

 

If that doesn't work let me know, I just downloaded and installed to my system and it works here(thought I may have uploaded the wrong one)

Yeah it was disabled when I tried to make those changes.

  • Author

Are you saying it was disabled and when you changed it you also enabled headphones at the same time?

 

I set up a VM to test it on and it worked, I'll try on another physical machine.

only way i got mine to save the changes was before hitting apply, i had to enable also after changing other paths etc.

 

If i just changed the paths, left it disabled, it would not save when i hit apply....

 

Myk

 

  • Author

Yeah I'm investigating this, not sure why its doing that, but it is the only way it will save. You MUST either enable or disable the app when changing any other setting.

 

 

EDIT: I just tested with the other plugins, sab, sickbeard and couchpotato, they all must be either changed to disabled or changed to enabled when changing other settings.

Thanks so much for this package.  I appreciate it, and am running it, however I found the following issue.  I am using the couchpotato plg (couchpotato-0.5-i468-bw.plg) as well, and the headphones plg seems to prevent it from starting properly.  In order to fix couchpotato I had to remove /var/local/couchpotato, redownload the tgz file, and then extract and move it to /var/local/couchpotato and subsequently launch it.  Removing the headphones plg resulted in couchpotato working again.  I couldn't get the above solution to work on boot (but I suspect it may be because I didn't provide direct paths for all commands, but I'm not sure) so I've done the following:

 

I renamed headphones-0.1-influenced.plg to headphones-0.1-influenced.bak to prevent automatic installation.  I got it to install automatically and launch by appending the following to the end of my /boot/config/go: 

 

#install headphones

sleep 45

/usr/local/sbin/installplg /boot/config/plugins/headphones-0.1-influenced.bak

/etc/rc.d/rc.headphones start

 

All seems to be working properly after a couple restarts.

  • Author

Thanks for the update, I'll check into it and see why its doing that!

Great work on the Plugin.

 

Install went great I run couch potato, SABnzb, Plex and Sickbeard.

Headphones sends NZB's to SAB however on post processing I get this error.

 

2012-04-17 19:20:55 INFO Post-processing for xxxx complete

2012-04-17 19:20:53 ERROR Could not create folder for xxxx . Not moving: (13, 'Permission denied')

2012-04-17 19:20:53 INFO Moving files from /mnt/cache/.data/sabnzbd/Downloads/complete/music/xxxx  to /mnt/users/Music/xxxx/xxxx

2012-04-17 19:20:53 INFO Renaming files

2012-04-17 19:20:07 INFO Writing metadata

2012-04-17 19:20:07 INFO Adding album art to folder

2012-04-17 19:20:07 INFO Cleaning up files

2012-04-17 19:20:05 INFO Starting post-processing for: xxxxx

 

Headphones is running as nobody

 

 

drwxrwx--- 1 nobody users  48 2012-04-08 15:05 Data/

drwxrwx--- 1 nobody users  48 2012-04-08 15:05 Kids\ Movies/

drwxrwx--- 1 nobody users  160 2012-04-11 06:28 Kids\ TV\ Shows/

drwxrwx--- 1 nobody users 1072 2012-04-17 19:05 Movies/

drwxrwx--- 1 nobody users  48 2012-04-17 19:17 Music/

drwxrwx--- 1 nobody users  72 2012-04-17 18:15 Plugins/

drwxrwx--- 1 nobody users  72 2012-04-17 19:06 TV\ Shows/

root@Server:/mnt/user#

 

 

Have I done something in the setup wrong? All my downloads just stay in on the Download directory of my cache drive and wont move.

I really appreciate all the work that you have put into this plugin.

 

Cheers

Will

 

 

UPDATE:

I've updated the directory to a disk rather then a user share and its now working ok. How have other setup their downloading files?

 

2012-04-17 19:58:23 INFO Post-processing for Cold Chisel - Twentieth Century complete

2012-04-17 19:58:20 INFO Moving files from /mnt/cache/.data/sabnzbd/Downloads/complete/music/xxxx to /mnt/disk1/Music/xxxx

 

 

  • Author

Having a very busy few days, I'll look into all of these hopefully tonight or tomorrow.

 

Your post processing problem looks like you added an "s" to the path, it should be /mnt/user/Music/xxxx/xxxx and not /mnt/userS/Music/xxxx/xxxxx

 

If that was your problem then tonight or tomorrow I'll look into the couchpotato problem, I noticed this once on my system so it should be fairly easy to reproduce and figure out whats going on.

 

Thanks a lot to everyone for using this and giving feedback!

I think this says it all :(

 

Cheers

Will

 

 

Double-facepalm.jpg

Double-facepalm.jpg.15833d2311d14296334c12d13f363940.jpg

  • Author

I've always liked that one, :). I remember the episode thats from!

 

Ok, now that I've proclaimed my Trekkie inner-geek, its a easy mistake to make! I know I've accidentally added a "S" to it before, I'd be willing to bet you use Windows on other PC's, it gets stuck in your head, "C:\Users\Influence\".

 

If that was the problem, I'm glad thats all it was and that its fixed now! Although honestly I've thought about having my music move directly to the disk instead of using /mnt/user/, bypassing the cache drive. Most albums are so small the slower write speed honestly wouldn't be that detrimental.

 

UPDATE: Ok, I've reproduced the problem with Couchpotato, not sure exactly why it is affecting the other, but I have a feeling it has to do with GIT. I'll see if I can track down exactly where its happening, :)

When git is installed, couchpotato will try to update on startup and fail, taking a bunch of files with it.  When git is removed it installs correctly.  I did not install you package, but was testing something I was editing when I found that out.

  • Author

Yeah I was looking through my syslog and found that the installplg script doesn't ignore commented lines so git and curl are being installed anyway, I'll remove that and repost.

 

Thanks for the post, it confirmed what I was thinking but hadn't got around to test, server was acting funny this morning and I'm trying to track down what is causing the issue. I REALLY need to put together that test server!

  • Author

Updated headphones to fix problem with couchpotato, which was also causing the issues I was having earlier. Apparently when it broke couchpotato it would throw it into a startup loop not allowing the array to start.

 

I'll be looking into re-writing the settings page using speeding_ants method, much cleaner and intuitive.

Thanks a lot Influencer, off to test it.  I'll report back with my results.

 

**Edit**

 

Works perfectly, many thanks.

  • Author

Updated to remove file downloads for dependencies. Tested the (now) known working version on a bare system to find the dependencies and included only those.

 

Had initially included all files used by sabnzbd to make sure everything worked.

 

Headphones-0.1b-influenced

Update HERE!

I will try this tonight mate, thank you!

Ok, I realize I'm posting a CouchPotato question in a Headphones topic, but based on the initial post, it seems relevant...

 

I've been running Headphones on 5b14 using the approach described here:

 

http://lime-technology.com/wiki/index.php/Install_Python_based_servers

 

I modified the process slightly so that it uses the "SABnzbdDependencies-2.2-i486-unRAID.tgz" version of the dependencies package (the wiki still uses the "2.1" version) and the most recent version of SAB. Also, it runs on disk1 because I don't have a cache drive. Other than that, my setup is pretty much as described in the wiki article, plus Headphones.

 

I've noticed that Sick Beard and Headphones both run and update fine (didn't do anything special for Headphones, it just worked), however CouchPotato works but reports "Version UNKNOWN Build."

 

The first post here mentions the "UNKNOWN Build" issue in relation to Headphones, but does anyone know why I'm seeing it in CouchPotato? It's not a huge deal, since the CP source doesn't change all that often...

 

Thanks!

Rick

I'm using the plg version of Couchpotato, and it reports its version as 46dbb59.

  • Author

Well headphones is suppose to update fine if you install from a tarball, I think the latest version is broken in that aspect. As for why couchpotato is informing version unknown, I have no clue, I haven't looked into how it updates.

 

Couchpotato breaks itself when installing on unRAID anyway, so its best to manually update that app. The plug-in gives you the convenient option on the settings page to do so. The Version UNKNOWN Build basically means that Couchpotato checked what your version is, and tried comparing it to the latest version on github, and failed. It fails and puts unknown in there.

 

As far as headphones, it appears it will update correctly, not sure why it didn't work before, but testing now it does. If it reports unknown version, just update in-app and it will download the versions.txt file and report the correct version.

any idea why it cannot seem to see any of the files when I point it to the directory? I have everything in /mnt/user/Music and I can navigate it through terminal or a finder window but Headphones says

Timestamp	Level	Message
2012-04-19 22:33:32	INFO	Found 0 new artists
2012-04-19 22:33:32	INFO	Updating track counts
2012-04-19 22:33:32	INFO	Done syncing library with directory: /mnt/user/Music
2012-04-19 22:33:32	INFO	Done checking empty filepaths
2012-04-19 22:33:32	INFO	Checking filepaths to see if we can find any matches
2012-04-19 22:33:32	INFO	Completed scanning of directory: /mnt/user/Music
2012-04-19 22:33:31	INFO	Scanning music directory: /mnt/user/Music

 

thanks

  • Author

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

Works good so far!

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.