Create A to Z structure under TV and Film
#1
Note that I don't want Shortcut Solutions!
Kodi Skin : Confluence
4 Sources - both on separate NAS boxes -
one NAS is Films, the other, TV and the TV NAS folder structure has 3 separate subfolders (TV Shows, Documentaries and Music Videos)

The subfolder structure is identical under all 4  - namely 27 folders (A to Z + 1 for numbers)
what i want is to click on (say) films and see 27 the "letters", then go into a letter and get only TV shows that start with that letter (obviously same for films, docs and music vids)
I'm guessing that it is probably via nodes BUT the documentation for Nodes is very poor
does anyone have code that can do this.
Again, i emphasize that I do NOT want shortcut (ie Key) solutions
thanks
Reply
#2
(2024-01-29, 01:33)Lefrenchman36 Wrote: I'm guessing that it is probably via nodes
Yep, using nodes is your best solution.

I'll get you started with the node design.

First, have you copied your nodes across to the Userdata (wiki) folder, or have you installed and run, at least once, the Node Editor?
If no to both, install the Node Editor and run it once. No need to do anything, just run it so it copies files across. We don't need to use it again.

Are you using Windows?

Go to ..\Roaming\Kodi\userdata\library\video\movies\
Create a new folder. Call it A-Z or Movies A-Z or whatever you want.
In the new folder create a new file called index.xml and copy the following code into it...

xml:
<?xml version='1.0' encoding='UTF-8'?>
<node order="6" type="folder" visible="Library.HasContent(Video)">
<label>A-Z Movies</label>
</node>
Change the Label name if you want.
The Node Order number dictates where it will display in the listing of nodes.

Now you need to create the 27 files. The following is for L
Create another file and name it L.xml
Copy the following code into it...

xml:
<?xml version='1.0' encoding='UTF-8'?>
<node order="12" type="filter">
<label>L</label>
<content>movies</content>
<icon>C:\Users\HTPC\AppData\Roaming\Kodi\userdata\library\video\movies\mpaaratings\ratedg.png</icon>
<order direction="ascending">sorttitle</order>
<group>none</group>
<rule field="title" operator="startswith">
<value>L</value>
</rule>
</node>
Adjust your "node order" to correctly sort the letters- A=1 L=12 Z=26 etc
Change the "value" and "label" for the new letter.
Create 26 more Smile
Create your own icon and add the path to the icon in the "icon" tag. Best to save it next to the xml file

Let us know if that works.

Should look like this...
Image
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#3
Thanks for that - will try later
the code logic kinda makes sense
I think i was missing the index.XML
Reply

Logout Mark Read Team Forum Stats Members Help
Create A to Z structure under TV and Film0