One button library update

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Juno Offline
Junior Member
Posts: 43
Joined: Dec 2010
Reputation: 0
Post: #1
According to my problem posted: http://forum.xbmc.org/showthread.php?tid=126058
I have an idea.
Is it possible to update all library (music or video or both) with one button placed i.e. in submenu of home screen?
Could be like update of movies in submenu of Movies etc?

Hough!
find quote
mad-max Online
Posting Freak
Posts: 1,476
Joined: Jul 2010
Reputation: 52
Location: Germany
Post: #2
This is already doable...
You can create a new button in the submenu and make the onclick look like this:
Code:
UpdateLibrary(database,[path])

Quote:Takes either "video" or "music" as a parameter to begin updating the corresponding database. For "video" you can additionally specify a specific path to be scanned.

So it's a few lines of code you need to change...

[Image: obi3o55x.jpg]
[Image: 7c8w3bu8.png]

- - - Tribute to Metallica - - -

If I managed to help you, please click my reputation
find quote
Juno Offline
Junior Member
Posts: 43
Joined: Dec 2010
Reputation: 0
Post: #3
Is it doable in Confluence?
Of course in my case would be better to set autoupdate delay.
But this is a great option. Smile
Im not similiar with database, so should i give path to database files? And path starts with Storage on root?
What is typical path to database library files?
Thx! Smile
find quote
mad-max Online
Posting Freak
Posts: 1,476
Joined: Jul 2010
Reputation: 52
Location: Germany
Post: #4
(2012-03-21 12:48)Juno Wrote:  Is it doable in Confluence?

Yes, it is...
Download the file here:
http://pastebin.com/NNh2RGdp

and replace it with the current IncludesHomeMenuItems.xml in your confluence folder...

mad-max

[Image: obi3o55x.jpg]
[Image: 7c8w3bu8.png]

- - - Tribute to Metallica - - -

If I managed to help you, please click my reputation
(This post was last modified: 2012-03-22 13:50 by mad-max.)
find quote