• 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 8
[REQUEST] Auto Update Library Script?
#46
BTW, just checked and python2.6 shows on xbmclive, already installed.

Tried a

Quote:python2.6 setup.py build --build-lib ../script.module.pyinotify/lib/

But there is no lib directory under script.module.pyinotify
-= My Media Centre =-
ACER Revo R3610 | x2 1.5TB WD Caviar Green SATA Hard Drives (WD15EADS) | x2 2.0TB WD Caviar Green SATA Hard Drive ( WD15EARS ) | 3.5in Black eSATA USB Trayless SATA External Hard Drive Enclosure | Emprex 3009URF Wireless MCE Remote Control | XBMCLive Dharma Beta1
Reply
#47
ah getting somewhere

Code:
cd pyinotify-0.7.1/

Code:
python2.6 setup.py build --build-lib ../script.module.pyinotify/lib/


Code:
running build
running build_py
creating ../script.module.pyinotify/lib
copying src/pyinotify/pyinotify.py -> ../script.module.pyinotify/lib
copying src/pyinotify/inotify.py -> ../script.module.pyinotify/lib
copying src/pyinotify/iglob.py -> ../script.module.pyinotify/lib
running build_ext
building '_inotify' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c src/pyinotify/inotify.c -o build/temp.linux-i686-2.6/src/pyinotify/inotify.o
src/pyinotify/inotify.c:22:20: error: Python.h: No such file or directory
src/pyinotify/inotify.c:27: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
src/pyinotify/inotify.c:39: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
src/pyinotify/inotify.c:54: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
src/pyinotify/inotify.c:68: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âinotifyFunctionsâ
src/pyinotify/inotify.c: In function âinit_inotifyâ:
src/pyinotify/inotify.c:79: warning: implicit declaration of function âPy_InitModule3â
src/pyinotify/inotify.c:79: error: âinotifyFunctionsâ undeclared (first use in this function)
src/pyinotify/inotify.c:79: error: (Each undeclared identifier is reported only once
src/pyinotify/inotify.c:79: error: for each function it appears in.)
error: command 'gcc' failed with exit status 1

That created the lib directory

error reported that there is no Python.h which obviously means no functions found for that

The compiler Failed Sad

What did i do wrong ?
-= My Media Centre =-
ACER Revo R3610 | x2 1.5TB WD Caviar Green SATA Hard Drives (WD15EADS) | x2 2.0TB WD Caviar Green SATA Hard Drive ( WD15EARS ) | 3.5in Black eSATA USB Trayless SATA External Hard Drive Enclosure | Emprex 3009URF Wireless MCE Remote Control | XBMCLive Dharma Beta1
Reply
#48
you need the python2.4-dev package. but i dont think python2.6 will work.
its a long time ago but if i remember correctly i had some issues with exactly this.
Reply
#49
ssy080 Wrote:Thank you Grajen3 for your wonderful addon!

I am using Beta 2 Dharma on Windows 7 64bit.

1. Your addon is currently not creating the file autoexec.py. I had to manually create this under userdata\

Please fix!

2. Also, my system has trouble immediately connecting to the network after waking from hibernation, thus the library update fails. (my files are on the network) Is there any way of delaying the initial library update at start up, say 5 seconds?

The command of "time.sleep" does not work. I looked at the log and it seems like it is not recognizing the command.

How can I fix this?

3. the clean library function seems to conflict with the update function. The log says "ERROR: XBMC.CleanLibrary is not possible while scanning for media info"

4. Does this addon do library update after wake too? Or maybe do you know of a way to delay the xbmc's native library update at start up?

Thank you!
Ad. 2 In autoexec.py put "AlarmClock(AutoUpdater, XBMC.RunScript(script.autoupdate, 0),XXX,true)" where XXX = amount of minutes You want script to be delayed

Ad. 3 I'm aware that this isn't working - but I'm busy with other stuff now.

Ad. 1 Also I'll take a look
Ad. 4 Didn't check how it work after sleep - another thing on my TO DO list. Don't know any way to do it - but with Ad. 2 You can delay update by 1 minute for example so all Your network sources will be up & running
Reply
#50
Ok i managed to compile i686 binaries. Try this
Reply
#51
Wow i'm very impressed ventech, it works almost instantly. Amazing, well done.
-= My Media Centre =-
ACER Revo R3610 | x2 1.5TB WD Caviar Green SATA Hard Drives (WD15EADS) | x2 2.0TB WD Caviar Green SATA Hard Drive ( WD15EARS ) | 3.5in Black eSATA USB Trayless SATA External Hard Drive Enclosure | Emprex 3009URF Wireless MCE Remote Control | XBMCLive Dharma Beta1
Reply
#52
danz0l Wrote:ah getting somewhere

Code:
cd pyinotify-0.7.1/

Code:
python2.6 setup.py build --build-lib ../script.module.pyinotify/lib/


Code:
running build
running build_py
creating ../script.module.pyinotify/lib
copying src/pyinotify/pyinotify.py -> ../script.module.pyinotify/lib
copying src/pyinotify/inotify.py -> ../script.module.pyinotify/lib
copying src/pyinotify/iglob.py -> ../script.module.pyinotify/lib
running build_ext
building '_inotify' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c src/pyinotify/inotify.c -o build/temp.linux-i686-2.6/src/pyinotify/inotify.o
src/pyinotify/inotify.c:22:20: error: Python.h: No such file or directory
src/pyinotify/inotify.c:27: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
src/pyinotify/inotify.c:39: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
src/pyinotify/inotify.c:54: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
src/pyinotify/inotify.c:68: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âinotifyFunctionsâ
src/pyinotify/inotify.c: In function âinit_inotifyâ:
src/pyinotify/inotify.c:79: warning: implicit declaration of function âPy_InitModule3â
src/pyinotify/inotify.c:79: error: âinotifyFunctionsâ undeclared (first use in this function)
src/pyinotify/inotify.c:79: error: (Each undeclared identifier is reported only once
src/pyinotify/inotify.c:79: error: for each function it appears in.)
error: command 'gcc' failed with exit status 1

That created the lib directory

error reported that there is no Python.h which obviously means no functions found for that

The compiler Failed Sad

What did i do wrong ?

I just followed your instructions and it worked for me no errors..

I did

Code:
sudo aptitude install python-dev

I ended up with python 2.6

I then did
Code:
cd pyinotify-0.7.1/

Code:
python2.6 setup.py build --build-lib ../script.module.pyinotify/lib/

and it worked perfectly. maybe you don't have the gcc installed ?
Code:
sudo aptitude install gcc


-=Jason=-
Reply
#53
Ventech managed to compile for us Jason, i just used his scripts and it works perfectly.
-= My Media Centre =-
ACER Revo R3610 | x2 1.5TB WD Caviar Green SATA Hard Drives (WD15EADS) | x2 2.0TB WD Caviar Green SATA Hard Drive ( WD15EARS ) | 3.5in Black eSATA USB Trayless SATA External Hard Drive Enclosure | Emprex 3009URF Wireless MCE Remote Control | XBMCLive Dharma Beta1
Reply
#54
danz0l Wrote:Ventech managed to compile for us Jason, i just used his scripts and it works perfectly.

sweet, I think I got it on my own, but can't check until I get home from work. I have added two folders to my addons so I think it will work

-=Jason=-
Reply
#55
Flomaster Wrote:sweet, I think I got it on my own, but can't check until I get home from work. I have added two folders to my addons so I think it will work

-=Jason=-

Great, it seems very good, almost instant, and will make lighter work on my xbmc system Smile Just cjecked with TOP and its not effecting CPU at all.

python-dev was likely the key as i don't think we have it on our live systems. If i get into trouble with the compiled binary i'll do it manually but all seems good now.

===== NOTE TO SELF ==== turn of sickbeards auto update library.
-= My Media Centre =-
ACER Revo R3610 | x2 1.5TB WD Caviar Green SATA Hard Drives (WD15EADS) | x2 2.0TB WD Caviar Green SATA Hard Drive ( WD15EARS ) | 3.5in Black eSATA USB Trayless SATA External Hard Drive Enclosure | Emprex 3009URF Wireless MCE Remote Control | XBMCLive Dharma Beta1
Reply
#56
Danz0l are you talking about this option in Sick.

Config>Notifications>XBMC >Update XBMC library
Update XBMC library when we finish a download?

-=Jason=-
Reply
#57
Yes Jason, think it may be redundant now this script seems to work. As these media directories are being monitored by this script they should hopefully update instantly when sickbeard copies them over.
-= My Media Centre =-
ACER Revo R3610 | x2 1.5TB WD Caviar Green SATA Hard Drives (WD15EADS) | x2 2.0TB WD Caviar Green SATA Hard Drive ( WD15EARS ) | 3.5in Black eSATA USB Trayless SATA External Hard Drive Enclosure | Emprex 3009URF Wireless MCE Remote Control | XBMCLive Dharma Beta1
Reply
#58
forgive me since I am at work, but does this script mean we can turn off the updating feature in settings so I don't have to look at the scanning progress when xbmc loads on startup? and after starting once will a reboot mean you have to start the script each time from the programs menu?

-=Jason=-
Reply
#59
I have the scanning progress turned off as default and my understanding of this plugin is that it auto runs at startup.

You install the plugin by copying over the two directories, edit the options (basically point to where your media files are stored - it has 9 location slots) and then goto programs and run the plugin for the first time. After that it monitors those locations and updates xbmc when things change. I think you only have to run the plugin for the first time and then it installs the scripts. Very handy indeed.

I just copied two films from my download location (after i added the nfos, fanatrt etc using ember media manager) to my media saved location, went to look at new movies added and they were there Smile brilliant. Should be part of xbmc standard.

Oh and looking at the options, you can enable it to auto clean if you remove or move something. I've enabled that to keep my library 100%
-= My Media Centre =-
ACER Revo R3610 | x2 1.5TB WD Caviar Green SATA Hard Drives (WD15EADS) | x2 2.0TB WD Caviar Green SATA Hard Drive ( WD15EARS ) | 3.5in Black eSATA USB Trayless SATA External Hard Drive Enclosure | Emprex 3009URF Wireless MCE Remote Control | XBMCLive Dharma Beta1
Reply
#60
ZOMG.... FTMFW... I can't wait to get this dialed in

-=Jason=-
Reply
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 8

Logout Mark Read Team Forum Stats Members Help
[REQUEST] Auto Update Library Script?1