Automatically refresh library
#1
is there anyway u could get xbmc to scan a specific folder (movies) everytime it start up and refresh its library automatically?

thanks
Reply
#2
Yes, there is a function to refresh the library. See the description of UpdateLibrary in http://wiki.xbmc.org/?title=List_of_Built_In_Functions. You need to create an autoexec.py in your userdata folder containing something like:

Code:
import xbmc

xbmc.executebuiltin('UpdateLibrary(video,[path])')

Replace [path] with the directory to be scanned. I haven't tried this myself so I'm not sure what format the [path] argument needs to be in.

JR
Reply
#3
how do i create the autoexec file plus where do i place it?
Reply
#4
ive placed the .py file in the following folder
C:\Program Files\XBMC\userdata

the file contains

import xbmc

xbmc.executebuiltin('UpdateLibrary(video,[E:\Moviez])')

and when i load XBMC, it doesn't pick up the new files!!!

What am i doing wrong?
Reply
#5
You have it in the wrong place in windows

http://wiki.xbmc.org/index.php?title=Userdata_folder

If your using portable mode in windows then it goes in

C:\Program Files\XBMC\portable_data\userdata

Why not just use update library at startup ?
Current HTPC Lian-Li PC-C37 • Gigabyte GA-E7AUM-DS2H • Intel C2D E8400 E0 Stepping • OCZ Vertex SSD • 4GB Corsair TwinX XMS2 DDR2 • Corsair HX650W Modular PSU (Free Upgrade) • LG CH08LS10 Blu-Ray Drive • Scythe Big Shuriken • Acousti DustPROOF 70mm Fan
Reply
#6
>>X<<' Wrote:Why not just use update library at startup ?

where is that option?
Reply
#7
Settings > Video Smile
Current HTPC Lian-Li PC-C37 • Gigabyte GA-E7AUM-DS2H • Intel C2D E8400 E0 Stepping • OCZ Vertex SSD • 4GB Corsair TwinX XMS2 DDR2 • Corsair HX650W Modular PSU (Free Upgrade) • LG CH08LS10 Blu-Ray Drive • Scythe Big Shuriken • Acousti DustPROOF 70mm Fan
Reply
#8
akhlaq768 Wrote:where is that option?

setting -> video -> library -> update library on startup
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#9
thanks... sorted

now going to get xbmc commander to work correctly
Reply

Logout Mark Read Team Forum Stats Members Help
Automatically refresh library0