heads up: Video library reorganisation via XML

  Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
wilson.joe Offline
Fan
Posts: 449
Joined: Nov 2010
Reputation: 6
Location: Salem, Or
Post: #31
Would be nice to be able to add to tags when looking through videos. a pop up of existing tags or create a new tag option.

In a world without walls and fences who needs windows and gates, open source, opens minds, so open yours today.

[Image: widget]
find quote
nightvision Offline
Junior Member
Posts: 3
Joined: Jul 2012
Reputation: 0
Post: #32
I keep going back th the settings never getting what I want.
This needs a a WYSIWYG editor.

anyways that's not a reality yet so what next ?

I need to control this code.

mmmm
find quote
Hitcher Offline
Team-Kodi Member
Posts: 12,327
Joined: Aug 2007
Reputation: 159
Location: Eastleigh, UK
Post: #33
Is there a way to have links on the home screen to open these nodes yet?

Thanks.
(This post was last modified: 2012-10-09 15:54 by Hitcher.)
find quote
MassIV Offline
Skilled Skinner
Posts: 1,121
Joined: Mar 2012
Reputation: 36
Post: #34
I used this link in main menu:
xbmc.activatewindow(Videos,library://video/tvshows/test.xml)

With this test node (~\XBMC\userdata\Database\video\tvshows\test.xml):
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

<node order="11" type="filter" visible="Library.HasContent(TVShows)">
  <label>test</label>
  <icon>DefaultRecentlyAddedEpisodes.png</icon>
  <content>episodes</content>
  <path>videodb://2/2</path>
  <order direction="descending">dateadded</order>
  <limit>3</limit>
  <rule field="tvshow" operator="contains">dexter</rule>
</node>

Restart to add new.
(This post was last modified: 2012-10-07 02:15 by MassIV.)
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 26,217
Joined: Oct 2003
Reputation: 181
Post: #35
You can hardcode them, but the problem is that the user can change them. I was hoping to get static lists filled from a folder, but didn't have enough time.

The only way to make it easy, might be to allow Skin.SetPath() to take a root path (rather than listing all the sources in a particular category).

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
Hitcher Offline
Team-Kodi Member
Posts: 12,327
Joined: Aug 2007
Reputation: 159
Location: Eastleigh, UK
Post: #36
Thanks.

Couldn't we use Skin.SetFile instead?

Code:
<onclick>Skin.SetFile(string,.xml,special://userdata/system/database/video_flat)</onclick>
(This post was last modified: 2012-10-07 10:33 by Hitcher.)
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 26,217
Joined: Oct 2003
Reputation: 181
Post: #37
Problem is that some of them are genuine folders.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
MassIV Offline
Skilled Skinner
Posts: 1,121
Joined: Mar 2012
Reputation: 36
Post: #38
I'd rather wait for a pretty solution then, when time comes. They are only a click away from the library anyway...
Hoping that frees up time for posters vs banners Wink
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 26,217
Joined: Oct 2003
Reputation: 181
Post: #39
@Hitcher: A win32 test build for skin.setpath(setting_name, path_to_browse) is available here:

http://mirrors.xbmc.org/test-builds/win3...y_path.exe

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
Hitcher Offline
Team-Kodi Member
Posts: 12,327
Joined: Aug 2007
Reputation: 159
Location: Eastleigh, UK
Post: #40
(2012-10-09 01:33)jmarshall Wrote:  @Hitcher: A win32 test build for skin.setpath(setting_name, path_to_browse) is available here:

http://mirrors.xbmc.org/test-builds/win3...y_path.exe

Works perfectly, thanks.

PHP Code:
<onclick>Skin.Setpath(Video_Node,library://video/)</onclick> 

PHP Code:
<onclick>ActivateWindow(Videos,$INFO[Skin.String(Video_Node)])</onclick
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 26,217
Joined: Oct 2003
Reputation: 181
Post: #41
Great - will do a PR and slot it in.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
Mike_Doc Offline
Posting Freak
Posts: 786
Joined: May 2014
Reputation: 60
Post: #42
Might be the wrong thread to ask this, if so apologies.

I've used the video node editor to create 2 new nodes and the relevant xmls exist in /library/video/movies but the submenu for movies has not changed. What I would like to do is a 2 new default options to the default movies submenu? Can some point me in the right direction please?

Mike.

SKIN: Aeon Madnox

When I grow up I want to be a skilled skinner
Thank me by ⬇ adding to my + reputation
find quote
phil65 Offline
Team-Kodi Developer
Posts: 6,033
Joined: Mar 2009
Reputation: 113
Location: Cologne, Germany
Post: #43
What do you mean with submenu exactly? (screenshots always welcome)
Perhaps you´re just on completely the wrong trail Wink
find quote
Mike_Doc Offline
Posting Freak
Posts: 786
Joined: May 2014
Reputation: 60
Post: #44
Hi Phil,

the sub menu for movies, shown here:

[Image: vDabc7A.jpg]

It has as default items the following:

Title
Latest
Seach
Genres
Years
Directors
Actors
Update
Movie Sets
Cinema
Trailers

If possible I'd like to add 2 more additional default movie options. I know I can add a custom sub-menu and assign but that is user specific. I wish to have 2 additional "permanent" options?

Hope that makes a bit more sense?

Mike.

SKIN: Aeon Madnox

When I grow up I want to be a skilled skinner
Thank me by ⬇ adding to my + reputation
find quote
phil65 Offline
Team-Kodi Developer
Posts: 6,033
Joined: Mar 2009
Reputation: 113
Location: Cologne, Germany
Post: #45
(2015-06-10 19:49)Mike_Doc Wrote:  Hi Phil,

the sub menu for movies, shown here:

[Image: vDabc7A.jpg]

It has as default items the following:

Title
Latest
Seach
Genres
Years
Directors
Actors
Update
Movie Sets
Cinema
Trailers

If possible I'd like to add 2 more additional default movie options. I know I can add a custom sub-menu and assign but that is user specific. I wish to have 2 additional "permanent" options?

Hope that makes a bit more sense?

Mike.

This is not connected to video library nodes. Either the submenu items are defined in skin code or they are managed by script.skinshortcuts. Depends on skin.
(This post was last modified: 2015-06-10 19:58 by phil65.)
find quote