Keyboard Shortcut for Update Library?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
nugentgl Offline
Donor
Posts: 194
Joined: Nov 2008
Reputation: 0
Post: #1
I am using iMON with XBMC and I examined the keymap.xml file and located the keyboard shortcuts for all major functions; however, I can't find a keyboard shortcut for updating my video library. Does this exist?
find quote
brownstein Offline
Senior Member
Posts: 107
Joined: Jan 2007
Reputation: -10
Post: #2
I would be interested in this as well, or at least the proper way to add that functionality to the keymap.xml.
find quote
SlaveUnit Offline
Posting Freak
Posts: 1,736
Joined: Oct 2008
Reputation: 14
Location: San Diego
Post: #3
Wouldnt you just go to the folder with your movies and hit the "i" on the keyboard or a mapped remote button to that? After the initial "set content" is setup I think it will scan for new movies.

Or hit the "c" on the keyboard and select scan for new content. But maybe you just want a single stroke to do everything. That Im not sure about.

Yeah ignore this. I see you are probably just trying to get it all with one keystoke.
(This post was last modified: 2008-12-02 00:34 by SlaveUnit.)
find quote
Ashex Offline
Member
Posts: 54
Joined: Oct 2008
Reputation: 0
Post: #4
According to the keymap.xml faq and the Global Keyboard faq, it's not in there yet.
A workaround would be to setup Eventghost and assign a key to the update library event using the xbmc plugin. I would also open a ticket requesting this be added to keymap.xml (unless a dev knows what the function is called since it's not documented)
find quote
rwparris2 Offline
Team-XBMC Python Developer
Posts: 1,333
Joined: Jan 2008
Reputation: 2
Location: US
Post: #5
its a built in - XBMC.updatelibrary(database) :: Takes either "video" or "music" as a parameter to begin updating the corresponding database.

I haven't tried it myself but I see no reason that wouldn't work.

I can't remember if keymap wants the "XBMC." part of it, try it with and without.

On the keymap.xml page under Avaliable Actions, it says "In addition to the following actions, you can also use the Built-in functions available to FTP, Webserver, skins, keymap and to python in XBMC." with a link to the built-ins I listed above. In other words, it is documented.

Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/
(This post was last modified: 2008-12-02 02:48 by rwparris2.)
find quote
CapnBry Offline
Fan
Posts: 406
Joined: Oct 2004
Reputation: 0
Location: Tampa, FL USA
Post: #6
Ashex Wrote:I would also open a ticket requesting this be added to keymap.xml (unless a dev knows what the function is called since it's not documented)
XBMC.UpdateLibrary(video) or XBMC.UpdateLibrary(music). There is no way to initiate a scan of both as far as I know.

EDIT: Beaten by 3 mins! [Image: emot-argh.gif] Damn me checking the source to see if there is a way to do both.
find quote
Ashex Offline
Member
Posts: 54
Joined: Oct 2008
Reputation: 0
Post: #7
rwparris2 Wrote:On the keymap.xml page under Avaliable Actions, it says "In addition to the following actions, you can also use the Built-in functions available to FTP, Webserver, skins, keymap and to python in XBMC." with a link to the built-ins I listed above. In other words, it is documented.

Well damn, that's what I get for posting from work :/
find quote
nugentgl Offline
Donor
Posts: 194
Joined: Nov 2008
Reputation: 0
Post: #8
OK, I couldn't get it to work so I will just have it scan for new content when it starts. Easy enough work around for now.
find quote