Jump to content

Library nodes are to deep for many skins


inkubux
Go to solution Solved by Angelblue05,

Recommended Posts

inkubux

When using custom skins I am not able to create widgets and custom menu items from library nodes because they are nested to deep for many skin eg:

 

I have a library of workouts that are of the type TV Show

 

I want to have custom menu item pointing to "Video Library > Emby > Workouts > Workouts" but the interface only allow me to create custom menu item pointing  "Video Library > Emby > Workouts" which leads me to the "Workouts" sumbmenu instead of all the TV Shows.

 

On another note I can go to Ad Ons > Video Adons > Emby > Workouts > Workouts but then the shortcut is "messed up" and gives me numbers instead of tv show/workouts names. There is a quick fix for this " edit the shortcut action and make sure it starts with ActivateWindows(Videos,... rather than ActivateWindows(Music,..."

 

but I can't do that for widgets.

 

I found another solution that proves the the Library nodes are to Deep.

 

Go to the userdata folder, and  and in the library/video/emby folder and copy the folders inside of it to  library/video (it will remove a level). 

 

After go to each copied folder and edit the index.xml file and rename the title to Emby Workouts or anything you wan really

 

After this you will be able to create your submenu and widgets with ease to 

"Video Library > Emby Workouts > Workouts" 

 

Is there a way to tell the plugin to create the Library nodes  library/video instead of his own subfolder ? It wold make it easy for newcomers to create submenu and widgets for their skins ?

 

Thanks a lot.

 

 

 

Link to comment
Share on other sites

inkubux

What about adding to Favorites first, then pointing to that?

 

It works for menu items, but for widgets I need to create a custom playlist for each of them. It's not straight forward for newcomers and I have to do it on every kodi client in my house (I have 4 of them).

 

The data is there in the plugin .. just not at the right place so themes can pick them up.

 

To me this simple change would greatly improve user experience for those who likes to try new skins every now and then.

Link to comment
Share on other sites

  • Solution
Angelblue05

Thanks, I'll make the adjustments and remove that extra nesting emby folder.

 

 

Sent from my iPhone using Tapatalk

  • Like 1
Link to comment
Share on other sites

inkubux

Thanks you made my day.

 

It will make it so much easier to create custom menu items in skins

  • Like 1
Link to comment
Share on other sites

Angelblue05

I can't figure out why video nodes default to music. You didn't find anything on that either?

 

 

Sent from my iPhone using Tapatalk

Link to comment
Share on other sites

inkubux

I can't figure out why video nodes default to music. You didn't find anything on that either?

 

 

Sent from my iPhone using Tapatalk

 

Unfortunately no. I didn't go deeper into it, but the other add-on named EmbyCon does not do that, if it helps you compare how they do it.

Link to comment
Share on other sites

Angelblue05

It's not the same. It doesn't use actual video nodes, just plugin shortcuts. Anyway, thank you. I'll make the adjustment.

Link to comment
Share on other sites

horstepipe

I can't figure out why video nodes default to music. You didn't find anything on that either?

Sent from my iPhone using Tapatalk

Just a wild guess, but maybe because Emby for Kodi is also declared as a music addon and Kodi prioritizes that for some reason?

Link to comment
Share on other sites

Angelblue05

But they are video nodes... The only thing it would associate to the plugin is the icon. I doubt that defines the type... The declaration for the xml does not matter either. I've tried with and still get the same issue.

 

Hmmm.. now that I'm trying to reproduce this, I can't. It correctly sets ActivateWindow(Videos,...

 

For example:

Kids movies video node:

<node order="1" type="filter">
  <match>all</match>
  <rule field="tag" operator="is">
    <value>Kids movies</value>
  </rule>
  <label>Kids movies</label>
  <icon>special://home/addons/plugin.video.emby/icon.png</icon>
  <content>movies</content>
  <order direction="ascending">sorttitle</order>
</node>

Regular Kodi movies node:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<node order="2" type="filter">
  <label>369</label>
  <icon>DefaultMovieTitle.png</icon>
  <content>movies</content>
  <order direction="ascending">sorttitle</order>
</node>
Link to comment
Share on other sites

inkubux

 

But they are video nodes... The only thing it would associate to the plugin is the icon. I doubt that defines the type... The declaration for the xml does not matter either. I've tried with and still get the same issue.

 

Hmmm.. now that I'm trying to reproduce this, I can't. It correctly sets ActivateWindow(Videos,...

 

For example:

Kids movies video node:

<node order="1" type="filter">
  <match>all</match>
  <rule field="tag" operator="is">
    <value>Kids movies</value>
  </rule>
  <label>Kids movies</label>
  <icon>special://home/addons/plugin.video.emby/icon.png</icon>
  <content>movies</content>
  <order direction="ascending">sorttitle</order>
</node>

Regular Kodi movies node:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<node order="2" type="filter">
  <label>369</label>
  <icon>DefaultMovieTitle.png</icon>
  <content>movies</content>
  <order direction="ascending">sorttitle</order>
</node>

 

It only does it when you go to Ad-ons > Video-ad-ons > Emby > LIBTYPE for your shortcut and not directly in the video node. If you go to video library and pick a emby video node (after the fix or my hack) it works ok.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...