[WINDOWS] HOW-TO schedule automatic library updates

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Pr.Sinister Offline
Fan
Posts: 631
Joined: Sep 2007
Reputation: 12
Location: Montreal, Canada
Post: #11
IsleOfMan Wrote:Not sure if anyone is still reading here, but when I try the Firefox method, I get the following confirmation box that requires action before the script will continue:



I'm running Firefox 3.6 and can't find a way to disable this particular popup. Any help?

Thanks!

Try using the command

Code:
Send("{ENTER}")

If that doesn't work, then make sure to activate the Firefox Window first like

Code:
WinActivate("Mozilla Firefox", "")
Send("{ENTER}")

The title of the Firefox window may different than that... Use the AutoIt Window Info tool to get the exact title.

-Pr.

------------------------------------------
[4 XBMC Clients + 2 Norco RPC-4224 Media Servers w/64 TB HDD Space]
If my post helped, thank me by adding to my reputation! :)
find quote
Pr.Sinister Offline
Fan
Posts: 631
Joined: Sep 2007
Reputation: 12
Location: Montreal, Canada
Post: #12
queeup Wrote:I prefer built-in schedule function for this.
http://trac.xbmc.org/ticket/9056

Obviously that would be better but in the meantime, this works fine for me Big Grin

------------------------------------------
[4 XBMC Clients + 2 Norco RPC-4224 Media Servers w/64 TB HDD Space]
If my post helped, thank me by adding to my reputation! :)
find quote
Pr.Sinister Offline
Fan
Posts: 631
Joined: Sep 2007
Reputation: 12
Location: Montreal, Canada
Post: #13
hermy65 Wrote:my path for wget is different then yous so im curious if this is the correct configuration then.

Run("C:\Program Files\GnuWin32\binwget.exe http://username:password@localhost/xbmcCmds/xbmcHttp?command=ExecBuiltIn%28UpdateLibrary%28video%29%29", "", "")

; ********************************
; Delete the file created by wget
; ********************************

FileDelete("C:\Program Files\GnuWin32\xbmcHttp@command=ExecBuiltIn%28UpdateLibrary%28video%29%29")

Yes. You just need to figure out where wget saves the file. By default, it usually saves it where it resides so changing C:\Unixtools to C:\Program Files\GnuWin32 should work just fine.

-Pr.

------------------------------------------
[4 XBMC Clients + 2 Norco RPC-4224 Media Servers w/64 TB HDD Space]
If my post helped, thank me by adding to my reputation! :)
find quote
RhysG Offline
Junior Member
Posts: 13
Joined: Jun 2010
Reputation: 0
Post: #14
Using WGet, AutoIt and Task Scheduler didn't work for me on Windows 7 x86 or x84. Do you have to set certain permissions? How can I test to see if the XBMC HTTP interface is available? I didn't use port 80 as that is already in use by something else, instead I mapped another port. Would that be a problem?
find quote
Pr.Sinister Offline
Fan
Posts: 631
Joined: Sep 2007
Reputation: 12
Location: Montreal, Canada
Post: #15
RhysG Wrote:Using WGet, AutoIt and Task Scheduler didn't work for me on Windows 7 x86 or x84. Do you have to set certain permissions? How can I test to see if the XBMC HTTP interface is available? I didn't use port 80 as that is already in use by something else, instead I mapped another port. Would that be a problem?

Well since using Sick Beard, i have discontinued using my auto-update hack but i just noticed yesterday in the XBMC add-ons directory something called XBMC Library Auto-Update. It seems to be a very easy way to do what you need.

-Pr.

------------------------------------------
[4 XBMC Clients + 2 Norco RPC-4224 Media Servers w/64 TB HDD Space]
If my post helped, thank me by adding to my reputation! :)
find quote
RhysG Offline
Junior Member
Posts: 13
Joined: Jun 2010
Reputation: 0
Post: #16
Pr.Sinister Wrote:Well since using Sick Beard, i have discontinued using my auto-update hack but i just noticed yesterday in the XBMC add-ons directory something called XBMC Library Auto-Update. It seems to be a very easy way to do what you need.

-Pr.

w00t thanks mate!
Although it would be much nicer if it were possible to schedule at certain times instead of every 2-x hours but this is still good Smile.
find quote
sossy Offline
Junior Member
Posts: 13
Joined: Nov 2009
Reputation: 0
Post: #17
I am having a bit of trouble getting this new Add-on to work.
In the Description page for this add-on, it says that you need to manually start the timer each time you start XBMC, or move the supplied autoexec.py to your userdata directory to get it to start automatically. I have looked for the autoexec.py file (supplied by the add-on) buy can't find it

What am I doing wrong?
(This post was last modified: 2010-11-04 02:36 by sossy.)
find quote
torstenk Offline
Junior Member
Posts: 7
Joined: Jan 2011
Reputation: 0
Post: #18
Hi all

I cannot get my advancedsettings.xml to work. I just want XBMC to remove the titles in the library that i have deleted on my share. I don't need the other settings. I have made a advancedsettings.xml file and placed in xbmc/userdata

It looks like this.
<advancedsettings>
<videolibrary>
<cleanonupdate>true</cleanonupdate> <!-- default set to false to prevent xbmc from removing items from the database while updating -->
</videolibrary>
</advancedsettings>

But it just doesnt remove movies from the library, can anyone help?
find quote
ihaterich Offline
Member
Posts: 71
Joined: Jul 2010
Reputation: 1
Post: #19
Quote:Originally Posted by queeup
I prefer built-in schedule function for this.
http://trac.xbmc.org/ticket/9056



In my experience, that plugin is not reliable.

I've used it on multiple machines and it always stops working after 1 or 2 updates, or will only update when XBMC is not idle.

But maybe it's just me.
(This post was last modified: 2011-07-28 05:05 by ihaterich.)
find quote
wiggy9906 Offline
Junior Member
Posts: 6
Joined: Feb 2009
Reputation: 0
Post: #20
I use a similar method to update my library. Using windows task manager and a vbscript.

Code:
x = TextFromHTML("http://127.0.0.1/xbmcCmds/xbmcHttp?command=ExecBuiltIn&parameter=XBMC.updatelibrary(video)")

Function TextFromHTML(URL)
    set ie = createobject("internetexplorer.application")
    ie.navigate URL
    do until ie.readystate = 4 : wscript.sleep 10: loop
    TextFromHTML = ie.document.body.outerHtml
    ie.quit
End Function
Save the above with a vbs extension and add as a scheduled task to execute as often as you want. Obviously you can edit the url to change IP or add username/password ie http://username:Password@192,168.1.5/xbmcCmds...............
(This post was last modified: 2011-10-09 19:55 by wiggy9906.)
find quote