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.

XBMC Standalone Library Updater for UnRAID

Featured Replies

  • Author

Little problem:

XBMC requires python 2.7 while couchpotato requires python 2.6.6, because 2.7 doesn't include LIBIFF and the "manage library" part of couchpotato doesn't work without it.

XBMC doesn't work with 2.6.6... how can I install libiff with 2.7?

 

I dunno. It's on my to do list to use a different version on python. Different package versions between plugins has been a problem for a while. Hopefully the new plugin system in the works will solve that.

  • Replies 640
  • Views 166.1k
  • Created
  • Last Reply

Here is my first post, so hello everyone :) I'm quite new to unRAID, but I've been playing with it for the last 2 weeks. I'm Linux-aware, so I know my way around a little bit.

 

I'm running XBMC 13 alpha 9 on my HTPC, and the versions of the databases have been incremented since Frodo 12.2... I've tried playing with the <name> tag in the advancedsettings.xml, without success.

My question here is : if I wanted to include the last alpha in the plugin, how would I go? Do I need to compile XBMC 13 from source? If so, how? Would you have an How To (not necessarily really detailed, just the main steps...). Or even better, when do you plan on updating the plugin? When v13 goes stable?

 

Thanks :)

 

Vincent

 

Had the same problem... wanted to run gotham monthly/nightlies, but needed a version that used the current MyVideos76/MyMusic37 database versions.

 

If bobbintb wants to do a Gotham version, he's welcome to a copy of my already compiled Gotham alpha7.  I don't use this plugin, but it's been rock solid on an ubuntu VM.  Or I can compress the install and share, if you're prepared to graft it into the plugin yourself.

 

 

Regards,

overbyrn

 

Well, if you could PM me the install, I'd like to try to graft it into the plugin myself. :)

 

Thanks a lot !

I was just thinking, it would be great if there was a way to schedule Library cleanups.  I'm sure this is something other Sickbeard users would find useful, if they also use the auto upgrade option.  When my shows get upgraded from HDTV to Web-DL, I wind up with duplicate entries in xbmc.  A simple schedule would help resolve this.

 

Thoughts?

 

you know there is actually an addon for xbmc to do just that. it is on the list to add it by default. somebody a few pages back added it to their setup but i havent had time yet. however i think you might find that it wont solve your issue entirely. at least it didnt for me. i had the exact same problem but even after cleaning the library i would end up with a new entry because there is no real way for sickbeard to know that those two files are the exact same show and episode. what would happen is i would watch a show as it aired and then when it was released on bluray it would be upgraded. but since they were new files, my "recently added" list of shows would be cluttered with a whole season of something i already saw.

 

so what i ended up doing was making a tweak to sickbeard. sickbeard has the ability to run custom scripts after processing. it will pass along information about the tv show that was processed to the custom script. in the case of a file being replaced/upgraded it wont, however, pass along the name of the file being replaced. so i modified it slightly to include the name of the file that is being replaced. then i wrote a script so that if a file is being upgraded, it will search the xbmc database for the old file and change the record with the new information.

 

so essentially instead of adding the new file to the database and deleting the old one, it will now simply modify the old one to match the new one and keep all the other attributes that would be lost otherwise. it is a much more elegant solution. i submitted a pull request for this tweak but i doubt it will get pulled. ive been using it for about 5 months with no issue.

 

if you are interested:

https://github.com/midgetspy/Sick-Beard/pull/673

http://sickbeard.com/forums/viewtopic.php?f=3&t=7183&p=35458#p35458

 

How can you tell if the script runs properly from the logs?  I have replaced my postProcessor.py file in the sickbeard installation path and I don't believe it's working.  I have replaced some shows with newer versions, yet I am still seeing 2 entries for the show in my library.

 

 

  • Author

Replacing postProcessor.py is only half of the solution. It adds the name of the deleted file to the parameters passed to the extras scripts. You still need the script and I don't recall if I posted it because no one seemed interested. I will look when I get home, maybe make a whole new post and tutorial.

Replacing postProcessor.py is only half of the solution. It adds the name of the deleted file to the parameters passed to the extras scripts. You still need the script and I don't recall if I posted it because no one seemed interested. I will look when I get home, maybe make a whole new post and tutorial.

 

Thanks!  Definitely interested.

Here is my first post, so hello everyone :) I'm quite new to unRAID, but I've been playing with it for the last 2 weeks. I'm Linux-aware, so I know my way around a little bit.

 

I'm running XBMC 13 alpha 9 on my HTPC, and the versions of the databases have been incremented since Frodo 12.2... I've tried playing with the <name> tag in the advancedsettings.xml, without success.

My question here is : if I wanted to include the last alpha in the plugin, how would I go? Do I need to compile XBMC 13 from source? If so, how? Would you have an How To (not necessarily really detailed, just the main steps...). Or even better, when do you plan on updating the plugin? When v13 goes stable?

 

Thanks :)

 

Vincent

 

Had the same problem... wanted to run gotham monthly/nightlies, but needed a version that used the current MyVideos76/MyMusic37 database versions.

 

If bobbintb wants to do a Gotham version, he's welcome to a copy of my already compiled Gotham alpha7.  I don't use this plugin, but it's been rock solid on an ubuntu VM.  Or I can compress the install and share, if you're prepared to graft it into the plugin yourself.

 

 

Regards,

overbyrn

 

Well, if you could PM me the install, I'd like to try to graft it into the plugin myself. :)

 

Thanks a lot !

 

Hi overbyrn. Any news on that? Having to update the library on each start is annoying... It would be awesome if CP/SB could update it on their own...

And I'm not really ready to compile it myself - not experienced enough, I'm afraid of breaking things...

 

Hi overbyrn. Any news on that? Having to update the library on each start is annoying... It would be awesome if CP/SB could update it on their own...

And I'm not really ready to compile it myself - not experienced enough, I'm afraid of breaking things...

Oops, sorry!  I must have missed the notification for your last message.  I'll tar up my gotham 7 install tomorrow and PM you a Dropbox link.

I am having an issue with the updater accessing my files for scanning.

 

My sources.xml has the correct paths with smb://user:pass@files/tv/

 

This is the same user/pass that the XBMC box uses that originally created the MySQL databases.

 

I am seeing:Process directory 'smb://files/TV/' does not exist - skipping scan.

 

After that every directory under //files/TV/ outputs the same error (I will skip the details).

 

If I use smbclient and give it the same user/pass and connect to //files/TV I can see the directory structure and descend into the directory tree.

 

What am I missing here?

 

I cannot set my system to allow anonymous access so that is not an option.

 

Thanks,

 

Rick

 

[uPDATE]

 

If I make the TV/Movies Shares public everything works.  It seems like the authentication is not getting passed to the updater when it performs the scan?

Looks like path substitution in advancedsettings.xml worked.

 

The files had originally been scanned in via a normal XBMC machine.  In the database the paths were listed as smb://Files/TV/

 

Hence the SALUD system trying for that directory using that same exact path syntax when it scanned.

 

A path substitution of:

 

<pathsubstitution>

  <substitute>

    <from>SMB://files/TV/</from>

    <to>smb://login:password@files/TV/</to>

  </substitute>

  <substitute>

    <from>SMB://files/Movies/</from>

    <to>smb://login:password@files/Movies/</to>

  </substitute> 

</pathsubstitution>

 

Now my issue is that SALUD is not scanning my movie directory at all, only TV.

 

Rick

Hi overbyrn. Any news on that? Having to update the library on each start is annoying... It would be awesome if CP/SB could update it on their own...

And I'm not really ready to compile it myself - not experienced enough, I'm afraid of breaking things...

Vincent, have sent you a PM with link to XBMC Gotham 7 build.

 

I've got a problem with XBMCsalud not adding movies (couchpotato) to the db.

TV shows are working fine.

Here is an excerpt from the XBMC log.

 

22:38:18 T:1131412336   DEBUG: webserver: request received for /jsonrpc
22:38:18 T:1131412336   DEBUG: JSONRPC: Incoming request: [{"jsonrpc": "2.0", "params": {"message": "Downloaded Our Universe (1080P)", "image": "https://raw.github.com/RuudBurger/CouchPotatoServer/master/couchpotato/static/images/notify.couch.small.png", "title": "CouchPotato"}, "method": "GUI.ShowNotification", "id": "GUI.ShowNotification"}, {"jsonrpc": "2.0", "params": {"directory": "/mnt/user/Movies/Our Universe (2013)"}, "method": "VideoLibrary.Scan", "id": "VideoLibrary.Scan"}]
22:38:18 T:1131412336   DEBUG: JSONRPC: Calling gui.shownotification
22:38:18 T:1131412336   DEBUG: JSONRPC: Value does not match any of the enum values in type
22:38:18 T:1131412336   DEBUG: JSONRPC: Calling videolibrary.scan
22:38:18 T:1125124976  NOTICE: Thread CVideoInfoScanner start, auto delete: false
22:38:18 T:1125124976  NOTICE: VideoInfoScanner: Starting scan ..
22:38:18 T:1125124976   DEBUG: CAnnouncementManager - Announcement: OnScanStarted from xbmc
22:38:18 T:1125124976  NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:00
22:38:18 T:1125124976   DEBUG: CAnnouncementManager - Announcement: OnScanFinished from xbmc
22:38:18 T:1125124976   DEBUG: Thread CVideoInfoScanner 1125124976 terminating

 

Could this be run in an Ubuntu machine? I'm not really eager to load plug-ins in unraid.

 

Sent from my GT-I9100 using Tapatalk

 

 

Could this be run in an Ubuntu machine? I'm not really eager to load plug-ins in unraid.

 

Sent from my GT-I9100 using Tapatalk

I have a headless version up and running inside an Unbuntu 12.10 machine (NOTE: it is NOT the version from this package, i compiled my own following directions from the xbmc forum).

I've got a problem with XBMCsalud not adding movies (couchpotato) to the db.

TV shows are working fine.

Here is an excerpt from the XBMC log.

 

22:38:18 T:1131412336   DEBUG: webserver: request received for /jsonrpc
22:38:18 T:1131412336   DEBUG: JSONRPC: Incoming request: [{"jsonrpc": "2.0", "params": {"message": "Downloaded Our Universe (1080P)", "image": "https://raw.github.com/RuudBurger/CouchPotatoServer/master/couchpotato/static/images/notify.couch.small.png", "title": "CouchPotato"}, "method": "GUI.ShowNotification", "id": "GUI.ShowNotification"}, {"jsonrpc": "2.0", "params": {"directory": "/mnt/user/Movies/Our Universe (2013)"}, "method": "VideoLibrary.Scan", "id": "VideoLibrary.Scan"}]
22:38:18 T:1131412336   DEBUG: JSONRPC: Calling gui.shownotification
22:38:18 T:1131412336   DEBUG: JSONRPC: Value does not match any of the enum values in type
22:38:18 T:1131412336   DEBUG: JSONRPC: Calling videolibrary.scan
22:38:18 T:1125124976  NOTICE: Thread CVideoInfoScanner start, auto delete: false
22:38:18 T:1125124976  NOTICE: VideoInfoScanner: Starting scan ..
22:38:18 T:1125124976   DEBUG: CAnnouncementManager - Announcement: OnScanStarted from xbmc
22:38:18 T:1125124976  NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:00
22:38:18 T:1125124976   DEBUG: CAnnouncementManager - Announcement: OnScanFinished from xbmc
22:38:18 T:1125124976   DEBUG: Thread CVideoInfoScanner 1125124976 terminating

 

had the same exact issue.

 

http://lime-technology.com/forum/index.php?topic=27545.msg265356#msg265356

 

that post fixed my problem, not completely can't remember what else i had to do but that led me down the correct path. had to do a little fiddling, because i remember it didn't work right away.

  • 3 weeks later...

 

had the same exact issue.

 

http://lime-technology.com/forum/index.php?topic=27545.msg265356#msg265356

 

that post fixed my problem, not completely can't remember what else i had to do but that led me down the correct path. had to do a little fiddling, because i remember it didn't work right away.

 

This didn't fix it for me.

The problem is I had this working initially when Salud first came out. Then it broke, I fixed it and it was working for a month. Then it started randomly crashing on me, so I had to restart the plugin about twice a week it's still in Beta.

Finally i installed a fresh copy of Unraid and started from scratch, now it is half working. My TV downloads update from SickBeard but my Movies do not get updated from Couchpotato.

Then I read that Couchpotato has trouble with Python 2.7 and pushing the updates to Xbmc using this version of Python.

Despite many requests to compile this plugin with Python 2.6, it looks like it's not going to happen.

 

So finally I said f**k it, I grabbed my spare RaspberryPi, installed OpenElec on it and threw it on the network. I will be using the RPi to push updates to the SQL database instead of Salud.

Fact is that Salud is not stable enough to use

Salud not stable enough to use ? Now I'm worried as I've been running it for months now and it's keeping my 3 client xbmc clients nicely I sync without any of them needing to do a directory update.

 

Speaking of updating, is there a way I can get the xBMC auto library update add-on installed on xbmc Salud ?

  • Author

I haven't tried it but someone a few pages back installed the auto update add on.

  • Author

anyone who wants to test a new version can PM me. it should fix the python version issue.

  • Author

For those interested, here are the specific instructions I used to build this for Slackware 13.1:

 

From a stock 13.1 install all necesarry dependancies included in deps.zip. You can do this by extracting the zip to a folder and installing all files at once. For example:

 

installpkg /<path to files>/*

 

You can either use git to clone xbmc or download the source and extract it. If you use git you need to checkout the appropriate version otherwise it will use the latest alpha or beta.

 

git clone https://github.com/xbmc/xbmc.git

 

List and checkout appropriate version

 

git tag -l
git checkout tags/<tagname>

 

Change Directory

 

cd xbmc

 

Next copy  make_xbmc-server, make_xbmcVideoLibraryScan, xbmc-server.cpp, xbmcVideoLibraryScan.cpp from files.zip into ~/xbmc/xbmc

 

Patch with headless.patch and thumbnail_crash_patch.diff from patches.zip:

git apply --stat <path to patch>

 

./bootstrap

 

 

./configure \
  --enable-shared-lib \
  --enable-nfs \
  --disable-debug \
  --disable-vdpau \
  --disable-vaapi \
  --disable-crystalhd \
  --disable-vdadecoder \
  --disable-vtbdecoder \
  --disable-openmax \
  --disable-joystick \
  --disable-xrandr \
  --disable-rsxs \
  --disable-projectm \
  --disable-rtmp \
  --disable-airplay \
  --disable-airtunes \
  --disable-dvdcss \
  --disable-optical-drive \
  --disable-libbluray \
  --disable-libusb \
  --disable-libcec \
  --disable-libmp3lame \
  --disable-libcap \
  --disable-ssh \
  --disable-udev \
  --disable-libvorbisenc \
  --disable-asap-codec \
  --disable-afpclient \
  --disable-goom \
  --disable-avahi \
  --disable-non-free \
  --disable-upnp \
  --disable-alsa

 

make -j2

 

make install

 

cp libxbmc.so /lib
cd xbmc

 

make -f make_xbmcVideoLibraryScan all
make -f make_xbmc-server all

 

cp xbmc-server /usr/local/lib/xbmc/xbmc-server.bin
cp xbmcVideoLibraryScan /usr/local/lib/xbmc/

 

Run the following command once and let it sit for a few seconds before closing it so that all first run files are created:

 

/usr/local/lib/xbmc/xbmc-server.bin --no-test --headless -n -p

 

deps.zip is too big for the forum so it is on dropbox:

https://www.dropbox.com/s/0cuf7dt4g6285ui/deps.zip

files.zip

patches.zip

  • Author

Here is a new beta version.

 

Things that should be fixed:

 

It includes this patch to fix a segfault:
http://forum.xbmc.org/showthread.php?tid=132919&pid=1565792#pid1565792

Recompiled with the same version of python that Influencer's plugins use.

The need to require multiple versions of the same package

Background update tag in advancedsettings.xml as it is now in guisettings.xml (this just makes it easier for the initial install. try removing it to see if it works)

Removed pcre-8.32-i686-1PTr.txz. Pretty sure it isn't needed anymore.

 

If you want to test this then I would suggest clearing out the items in the package folder on the boot drive to make sure the plugin downloads everything it needs and to get rip of packages that are no longer needed. Please let me know if there are any issues or if things are working fine. It looks good on my initial testing but I have limited time to continue tests right now so the more feedback I get the faster this gets rolled out.

 

If everything works ok I will add it to the OP. Rename to plg of course.

 

I also updated the OP with a FAQ and a few other comments.

xbmcsalud_v1.3_beta.txt

I really want to try this but as I only have 1 server that house relies on XBMCSalud to keep everything running smoothly, I need to wait until a couple of others have come back and given the All OK before I can try this.

 

Or I wait until Jan 1st when my holidays start and I have time to recover if anything goes wrong.

I've got a problem with XBMCsalud not adding movies (couchpotato) to the db.

TV shows are working fine.

Here is an excerpt from the XBMC log.

 

22:38:18 T:1131412336   DEBUG: webserver: request received for /jsonrpc
22:38:18 T:1131412336   DEBUG: JSONRPC: Incoming request: [{"jsonrpc": "2.0", "params": {"message": "Downloaded Our Universe (1080P)", "image": "https://raw.github.com/RuudBurger/CouchPotatoServer/master/couchpotato/static/images/notify.couch.small.png", "title": "CouchPotato"}, "method": "GUI.ShowNotification", "id": "GUI.ShowNotification"}, {"jsonrpc": "2.0", "params": {"directory": "/mnt/user/Movies/Our Universe (2013)"}, "method": "VideoLibrary.Scan", "id": "VideoLibrary.Scan"}]
22:38:18 T:1131412336   DEBUG: JSONRPC: Calling gui.shownotification
22:38:18 T:1131412336   DEBUG: JSONRPC: Value does not match any of the enum values in type
22:38:18 T:1131412336   DEBUG: JSONRPC: Calling videolibrary.scan
22:38:18 T:1125124976  NOTICE: Thread CVideoInfoScanner start, auto delete: false
22:38:18 T:1125124976  NOTICE: VideoInfoScanner: Starting scan ..
22:38:18 T:1125124976   DEBUG: CAnnouncementManager - Announcement: OnScanStarted from xbmc
22:38:18 T:1125124976  NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:00
22:38:18 T:1125124976   DEBUG: CAnnouncementManager - Announcement: OnScanFinished from xbmc
22:38:18 T:1125124976   DEBUG: Thread CVideoInfoScanner 1125124976 terminating

 

i am actually having the same problem. were you able to fix it?

  • Author

It might be. I have never been able to recreate the issue but it is possible one of the recent changes will fix it. Exist2resist says couchpotato has issues pushing xbmc updates with python 2.7. While I have never had any problems with it, this version uses 2.6 so it may be fixed. If you try it let me know.

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.