Kodi Community Forum
[RELEASE] Subsonic - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Music Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=148)
+---- Thread: [RELEASE] Subsonic (/showthread.php?tid=99513)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16


RE: [RELEASE] Subsonic - boognish43 - 2012-11-01

(2012-10-20, 16:35)hotoke Wrote: Hey ! I've tried to install the plugin (ok ) but when I want to start , i've got an Alert (with the demo URL or my URL) ... there is my log file :

Installed on a Raspberry pi with raspbmc Big Grin

Code:
15:25:51 T:1074876416   DEBUG: ExecuteXBMCAction : To RunAddon(plugin.audio.subsonic)
15:25:51 T:1074876416   DEBUG: Activating window ID: 10501
15:25:51 T:1074876416   DEBUG: ------ Window Deinit (Home.xml) ------
15:25:51 T:1074876416   DEBUG: ------ Window Init (MyMusicSongs.xml) ------
15:25:51 T:1074876416   DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.audio.subsonic)
15:25:51 T:1074876416   DEBUG:   ParentPath = [plugin://plugin.audio.subsonic]
15:25:51 T:1074876416   DEBUG: StartScript - calling plugin Subsonic('plugin://plugin.audio.subsonic/','0','')
15:25:51 T:1074876416    INFO: initializing python engine.
15:25:52 T:1074876416   DEBUG: new python thread created. id=19
15:25:52 T:1074876416   DEBUG: WaitOnScriptResult - waiting on the Subsonic plugin...
15:25:52 T:1281102912  NOTICE: Thread XBPyThread start, auto delete: false
15:25:52 T:1281102912   DEBUG: Python thread: start processing
15:25:52 T:1246606400   DEBUG: CecLogMessage - transmitting delayed activate source command
15:25:52 T:1246606400   DEBUG: CecLogMessage - << 10:04
15:25:52 T:1246606400   DEBUG: CecLogMessage - sending data: len = 1, payload = 10:04
15:25:52 T:1281102912  NOTICE: -->Python Interpreter Initialized<--
15:25:53 T:1281102912   DEBUG: Process - The source file to load is /home/pi/.xbmc/addons/plugin.audio.subsonic/default.py
15:25:53 T:1281102912   DEBUG: Process - Setting the Python path to /home/pi/.xbmc/addons/plugin.audio.subsonic:/opt/xbmc-bcm/xbm$
15:25:53 T:1281102912   DEBUG: Process - Entering source directory /home/pi/.xbmc/addons/plugin.audio.subsonic
15:25:53 T:1281102912   DEBUG: Instantiating addon using automatically obtained id of "plugin.audio.subsonic" dependent on versio$
15:25:53 T:1156301888   DEBUG: CecLogMessage - received data: header:01020001 p0:00000410 p1:00000000 p2:00000000 p3:00000000 rea$
15:25:53 T:1246606400   DEBUG: CecLogMessage - command 'image view on' was not acked by the controller
15:25:53 T:1246606400   DEBUG: CecLogMessage - << 10:04
15:25:53 T:1246606400   DEBUG: CecLogMessage - sending data: len = 1, payload = 10:04
15:25:53 T:1281102912   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.AttributeError'>
                                            Error Contents: 'module' object has no attribute 'output'
                                            Traceback (most recent call last):
                                              File "/home/pi/.xbmc/addons/plugin.audio.subsonic/default.py", line 31, in <module>
                                                Addon.log('plugin queries: ' + str(Addon.plugin_queries))
                                              File "/home/pi/.xbmc/addons/plugin.audio.subsonic/resources/lib/Subsonic/Addon.py",$
                                                xbmc.output(addon.getAddonInfo('name') + ': ' + msg.encode('utf-8'),
                                            AttributeError: 'module' object has no attribute 'output'
                                            -->End of Python script error report<--
15:25:53 T:1281102912    INFO: Python script stopped
15:25:53 T:1281102912   DEBUG: Thread XBPyThread 1281102912 terminating
15:25:53 T:1156301888   DEBUG: CecLogMessage - received data: header:01020001 p0:00000410 p1:00000000 p2:00000000 p3:00000000 rea$
15:25:53 T:1246606400   DEBUG: CecLogMessage - command 'image view on' was not acked by the controller
15:25:53 T:1246606400   DEBUG: CecLogMessage - failed to make 'Recorder 1' the active source. will retry later
15:25:53 T:1074876416   DEBUG:  WaitOnScriptResult - plugin exited prematurely - terminating
15:25:53 T:1074876416   ERROR: GetDirectory - Error getting plugin://plugin.audio.subsonic
15:25:53 T:1074876416   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.subsonic) failed
15:25:53 T:1074876416   ERROR: Control 50 in window 10501 has been asked to focus, but it can't
15:25:53 T:1074876416   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.image_decode input port 320 output port 321
15:25:53 T:1074876416   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.resize input port 60 output port 61
15:25:53 T:1074876416   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.image_decode) - port(320), nBuff$
15:25:53 T:1074876416   DEBUG: COMXCoreComponent::AllocOutputBuffers component(OMX.broadcom.resize) - port(61), nBufferCoun$
15:25:54 T:1074876416   DEBUG: waiting for python thread 19 to stop
15:25:54 T:1074876416   DEBUG: python thread 19 destructed
15:25:54 T:1074876416   DEBUG: ------ Window Init (DialogKaiToast.xml) ------

Thanks for helping !

(sorry for my english xD )

I am having this same problem trying to use this on a xios box with xbmc linux installed. Could you tell me how I can fix this?

Log:
Code:
15:47:02 T:1219679328   DEBUG: Process - The source file to load is /root/.xbmc/addons/plugin.audio.subsonic/default.py
15:47:02 T:1219679328   DEBUG: Process - Setting the Python path to /root/.xbmc/addons/plugin.audio.subsonic:/usr/share/xbmc/addons/script.module.simplejson/lib:/usr/share/xbmc/addons/script.module.pil/lib:/usr/share/xbmc/addons/script.module.pysqlite/lib:/usr/lib/python27.zip:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/lib/python2.7/site-packages:
15:47:02 T:1219679328   DEBUG: Process - Entering source directory /root/.xbmc/addons/plugin.audio.subsonic
15:47:02 T:1219679328   DEBUG: Instantiating addon using automatically obtained id of "plugin.audio.subsonic" dependent on version 1.0 of the xbmc.python api
15:47:04 T:1219679328   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.AttributeError'>
                                            Error Contents: 'module' object has no attribute 'output'
                                            Traceback (most recent call last):
                                              File "/root/.xbmc/addons/plugin.audio.subsonic/default.py", line 31, in <module>
                                                Addon.log('plugin queries: ' + str(Addon.plugin_queries))
                                              File "/root/.xbmc/addons/plugin.audio.subsonic/resources/lib/Subsonic/Addon.py", line 30, in log
                                                xbmc.output(addon.getAddonInfo('name') + ': ' + msg.encode('utf-8'),
                                            AttributeError: 'module' object has no attribute 'output'
                                            -->End of Python script error report<--



RE: [RELEASE] Subsonic - nutt318 - 2012-11-03

Would there be a way to call a javascript function or send an email when a video is played?

Reason I'm asking is I wrote some code and modified a couple of SubSonic files on my server so that when someone watching videos through the web an email is sent when they click the play button. I like this because I can tell if and when someone is watching something.

Anyways would it be possible to create something like this SubSonic plugin for XBMC?

Thanks!


RE: Subsonic add-on and SSL - jmelton98 - 2012-11-04

(2011-05-04, 01:38)SCSI Wrote: Finally a Subsonic add-on for XBMC. Thanks!

Are you planning to add SSL support on this add-on? I have SSL set up on my Subsonic server and I get this error:

Code:
Subsonic Error
Error contacting server.
[Errno 1] _ssl.c:490:error 140773f2:ssl Routines:ssl23_GET_SERVER

Using the Subsonic demo server works fine. I'm using Openelec XBMC and Subsonic installed on Unraid server.

I'm not sure where the debug log is located in openelec.

Thanks again.

My Subsonic installation is configured to use SSL and the this plugin connects fine from XBMC running on Windows 7, but I get the same error above when connecting using XBMC on Linux Mint. Is there any way to get the plugin to connect via SSL on linux?

Thanks



RE: [RELEASE] Subsonic - nutt318 - 2012-11-06

Just another idea but I was wondering how hard (or even possible) would it be to make the plugin setup the path to Movies, TV Shows, Music listed within the browse file path menu? Currently the plugin is an add-in under the music section, then you have to go into the plugin add-in to browse your music and videos. Instead of doing that could the plugin map the directories to your SubSonic server and then they would be available as a file source?

Example:
In XBMC go to Videos -> Files -> Add Videos
When you hit Browse you could specify your SubSonic directory of either movies, tvshows and then continue.

This way it looks like all of your Movies/TV Shows are available locally.

Could this be done?


RE: [RELEASE] Subsonic - geofstro - 2012-11-10

I find XBMC to be the best experience on a Mac or PC for interacting with my remote Subsonic server. I wanted to try it with the pre-Alpha builds of XBMC Frodo to take advantage of the new audio engine. The Subsonic script failed and the guy who wrote it (t0mm0) seems to have disappeared. I debugged and corrected it (very easy) and for those of you who are interested here's a link to the new files:

https://dl.dropbox.com/u/86110007/Subsonic%20for%20XBMC%20-%20Frodo.zip

Unzip it, place the plugin.audio.subsonic file in your XBMC addons folder and place the advanced settings.xml file in your XBMC userdata folder.

Configure the addon as with the previous version.

Enjoy!

geoff



RE: [RELEASE] Subsonic - boognish43 - 2012-11-13

(2012-11-10, 16:45)geofstro Wrote: I find XBMC to be the best experience on a Mac or PC for interacting with my remote Subsonic server. I wanted to try it with the pre-Alpha builds of XBMC Frodo to take advantage of the new audio engine. The Subsonic script failed and the guy who wrote it (t0mm0) seems to have disappeared. I debugged and corrected it (very easy) and for those of you who are interested here's a link to the new files:

https://dl.dropbox.com/u/86110007/Subsonic%20for%20XBMC%20-%20Frodo.zip

Unzip it, place the plugin.audio.subsonic file in your XBMC addons folder and place the advanced settings.xml file in your XBMC userdata folder.

Configure the addon as with the previous version.

Enjoy!

geoff

Thank you so much for doing this. I couldnt figure out why this wasnt working



RE: [RELEASE] Subsonic - ssj4mo - 2012-11-21

Hey. I just found this script today, not even really for myself. I have a subsonic server, and just jailbroke a friend of mine's Apple TV 2 and installed XBMC. I wanted to give him access to my library, so I thought, why not subsonic!?

Anyway, I found this, but my library is much more about video than audio. So I installed the plugin, which, thank you by the way, to all of you who have contributed, and it worked. The only problem was the transcoding - the max bitrate was 320k - fine for music, but not for video. I tried not transcoding and that just wouldn't work with all the different video formats out there, so I modified a few files:

settings.xml to allow choosing bitrates up to 5000k and Subsonic.py (and compiled it for the pyo) to allow for bitrates up to 5000k.

I tried to see if anyone had done it before, but googling XBMC subsonic bitrate and several combinations didn't help, so I figured I'd have a go myself. I've never written an XBMC addon, so it pissed me off when I couldn't compile the python file at first - had to dig around the internet for the XBMC modules.

Anyway, if anyone wants to use the subsonic addon for videos at a higher bitrate, I created a public repo for it at https://github.com/ssj4mo/Subsonic-XBMC-higher-bitrates
If anyone wants to add higher bitrates, feel free to. If you really aren't familiar with git but you want it, just post back or message or e-mail me and I'll zip the files up and throw them on a server.


*****EDIT*****
Ooops - it seems I was wrong. dybuk found and solved the problem way earlier than me.


RE: [RELEASE] Subsonic - nutt318 - 2012-11-21

I've been working on updating a video based plugin, anyways heres one i've been working on.

https://github.com/nutt318/nutt318-xbmc-plugins/tree/master/repo/plugin.video.subsonic



RE: [RELEASE] Subsonic - ssj4mo - 2012-11-21

What exactly are you working towards with this? There's no readme.md and I'm at work right now so I don't have a chance to look through all the files, but if you could summarize what changes you've made and hope to make, perhaps we could get away from the .zip format and work on the same repo with all the files required and only commit zips if there are worthy functional tested updates.


RE: [RELEASE] Subsonic - sigelmedia - 2012-12-31

Thanks Geoff!


RE: [RELEASE] Subsonic - wiobyrne - 2013-01-10

Hi all,

I've been trying...unsuccessfully to add the files geoff shared to the XBMC userdata folder. I'm running the latest raspbmc and when I try to connect via my Mac, it only shows "devices" and "pi". These folders are empty...unless I put a zip in them.

Thanks in advance.

EDIT: If I go in via Cyberduck...it'll show me (what I believe to be) pretty much everything on the Pi. I just don't know where to substitute in the files from Geoff.


RE: [RELEASE] Subsonic - wiobyrne - 2013-01-13

I got it running. I had to show hidden folders on the Mac finder.

http://lifehacker.com/188892/show-hidden-files-in-finder

It still is glitchy..at least for me. I have the MusicCabinet version of Subsonic. If I play a playlist, it'll move to the next song, but start at 40 seconds into the track...actually it never starts playing...it just shows the next track and is 40 seconds in. Still investigating...


RE: [RELEASE] Subsonic - sigelmedia - 2013-01-24

Made a re-branded version for Madsonic users (http://forum.subsonic.org/forum/viewtopic.php?f=15&t=11150) <--check out my theme for it.

updated restapi to latest so its 4.7+ users only.

Image

Plugin in my repo: https://dl.dropbox.com/u/13339474/repository.sigelmedia.xbmc.frodo.zip


RE: [RELEASE] Subsonic - denmalley - 2013-02-06

Wow, for those of you continuing the work, thank you! Finally got videos going from a remote server using nutt's code. Excellent!

I have a feature request if anyone is so inclined. I'd love a way to switch between multiple servers without having to go into settings and backspace/retype each time. Thanks in advance...


RE: [RELEASE] Subsonic - ssj4mo - 2013-02-06

I was thinking of working on that, actually denmalley. While it's possible, the way XBMC plugins work, it would be very difficult - more-so tedious, to do. The way I thought it would be done was to store the [server,username,pass] as an array, which would be set in the settings. Once they are all entered, when loading subsonic, an option would appear to allow you to choose the server, much like the subsonic android app works.

While this seems simple, it would be much simpler to write the app in python or C# on its own. XBMC plugins work in a specific way, and while I know it's possible to do what you desire, it would take a while to do this, especially based on the way the original script was written. I'm in the middle of two big projects right now, so I've little time to work on this, but if anyone else is interested, I'll setup a git repo and we can all work on it together.

Another thing I was working on, since the newer releases allow for proper video bitrates (I have my own set for the standard 320, 500, 750, 1000, 1500, 2000, 2500, 3000, 4000, 5000, 7500, and 10,000), I wanted to write a mod that would auto-adjust based on the bandwitdh of the client/server. For instance, I have a friend using my subsonic, and my upload speed is 15Mbits. However, I also have an FTP, a Debian Box for hosting websites and other projects, and I use torrents. At any given time, especially when multiple people are accessing my server, one person may only be able to use 2,000. If they are set at 3,000, it will lag. I wanted to make it auto adjust to a lower bitrate so you wouldn't have to go into settings and fuck around til you find the sweetspot.

This is even trickier, however. I spent a few hours on my whiteboard figuring out how to do it, and I think it MAY be possible, but I'm not certain; I still need to read up more on XBMC plugins, as they are very new to me.

Anyway, if anyone is interested, just reply or contact me and I'll set up a git-repo. It would be nice if a small community of us could all work together to improve this plugin. Having said that, for me, at least - I don't use subsonic on XBMC, since I have all of my media on my RAID 5 on my server at home. I only use subsonic for if I'm not home, but I really only give it out to friends. So, while I do love solving problems and writing code, none of this will benefit me in anyway lol, except for the fun of doing it and impressing my idiot friends.

OK I've rambled and I've gotta get back to work.

Cheers,
-Chris