Navtree 6 (How to show folders at the root solved and more)

General discussion about the media server. Feature requests. Hints, tips and tricks.
User avatar
phibertron
Posts: 1566
Joined: Sun Jan 30, 2011 5:52 pm
AV Hardware: Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

Re: Navtree (How to show folders at the root solved and more

Postby phibertron » Mon Feb 13, 2012 6:46 pm

@jbol

Sadly the Sony devices Tv's, PS3, Streamers all behave like this

They Nav Bar for Music, Photo, Video will only show things in a certain way
meaning if i was in video, even i could see all folders for all types, it would only show video
and not the other types in that folder, make sense?

So Scenario 11 is a no go on Sony and some other client devices
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

raphidae
Posts: 2
Joined: Fri Dec 16, 2011 12:43 am
AV Hardware: Mvix + TwonkyServer on WIndows SBS 2011

Re: Navtree (How to show folders at the root solved and more

Postby raphidae » Thu Feb 16, 2012 2:39 am

@phibertron

The webinterface shows some files, but not all. In my original post I ment the web browser interface with 'TwonkyServer HTML browser'.

Clients include an mvix, popcorn hour C-300 and some upnp app for my ipad, they are all in agreement that there's nothing.

User avatar
phibertron
Posts: 1566
Joined: Sun Jan 30, 2011 5:52 pm
AV Hardware: Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

Re: Navtree (How to show folders at the root solved and more

Postby phibertron » Thu Feb 16, 2012 3:06 am

@raphidae

thanks for re-stateing what you are seeing
I'll do some testing tommorow, to see what I can dig up
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

chrismcb
Posts: 8
Joined: Thu Feb 16, 2012 2:36 pm
AV Hardware: ReadyNas - Twonky 6.1
LG Smart TV
Samsung Smart TV
Western Digital Live Client

Re: Navtree (How to show folders at the root solved and more

Postby chrismcb » Thu Feb 16, 2012 2:40 pm

Excellent post and I'm trying to follow it, but getting confused.

What I'm looking to do is to split up the video section to show parent folders - rather than all videos being merged into one.

I have four source drives on my ReadyNas with TV Series, HD Movies, SD Movies and 3D Movies.
Instead of all 300+ merged folders appearing, is there a way to have the above four as an intermediate step?

The main reason for this is the smart TV navigation limitations - showing 9 directories on the screen at one time, with no way to skip to letter (which makes going to letter Z take about 7 minutes!).


Your advice would be much appreciated.


Thanks

User avatar
phibertron
Posts: 1566
Joined: Sun Jan 30, 2011 5:52 pm
AV Hardware: Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

Re: Navtree (How to show folders at the root solved and more

Postby phibertron » Thu Feb 16, 2012 6:03 pm

Thanks, and dont worry it makes my head spin too =)

Based on the stated 9 folder display limit of the client for folders and a question
If this 9 item limit for media items also, meaning videos ?

I ask this, as there may be more things to be done to make life easier for you
beyond the tweaks I have noted in this thread
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

chrismcb
Posts: 8
Joined: Thu Feb 16, 2012 2:36 pm
AV Hardware: ReadyNas - Twonky 6.1
LG Smart TV
Samsung Smart TV
Western Digital Live Client

Re: Navtree (How to show folders at the root solved and more

Postby chrismcb » Thu Feb 16, 2012 6:16 pm

The limit of 9 is just on one page.

It will scroll through them all, but takes ages!

An ideal solution would just be to group the media directories first by source location, then alphabetically.


Hope I'm making sense! Haha


Thanks again

User avatar
phibertron
Posts: 1566
Joined: Sun Jan 30, 2011 5:52 pm
AV Hardware: Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

Re: Navtree (How to show folders at the root solved and more

Postby phibertron » Thu Feb 16, 2012 6:41 pm

@chrismcb

your making sense =)
just wasnt sure about how it dealt with the items vs folders
or if even treated them different when displaying the list

I'll put together something for you here shortly

on the root of my video share, I have have folders for genre
and in the root of each genre i place the items
so when I do a by folder, I get a list of genre folders
a two for one deal

for you we will take the idea further, by putting folders at the root of video
and when we go from a folder, we will go to by letter
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

User avatar
phibertron
Posts: 1566
Joined: Sun Jan 30, 2011 5:52 pm
AV Hardware: Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

Re: Navtree (How to show folders at the root solved and more

Postby phibertron » Thu Feb 16, 2012 6:51 pm

@chrismcb

Here is a modified version of scenario 1
with the changes noted in my previous post
so if you limit the number of folders on your video share on your nas to 9
that will help the first branch
there are 26 letters, I chose by single letter, I could further group this if needed/wanted

for ex:
folder - A - items
folder - B - items
folder - C - items
or
folder - ABC - A -items
folder - ABC - B -items
folder - ABC - C -items

if you chose A, and there were more than 9 items there, your gonna have to scroll
but i dont thing it is going to be avoidable here in any way

chrismcb Custom Navtree Scenario 1.zip
(2.38 KiB) Downloaded 286 times
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

chrismcb
Posts: 8
Joined: Thu Feb 16, 2012 2:36 pm
AV Hardware: ReadyNas - Twonky 6.1
LG Smart TV
Samsung Smart TV
Western Digital Live Client

Re: Navtree (How to show folders at the root solved and more

Postby chrismcb » Thu Feb 16, 2012 9:03 pm

Thank you very much!

I have downloaded it and applied it, however it doesn't quite work right.

The videos are grouping, but just not at the right directory level.

I have the following files:

TV (dir)¬
_______Series Name (dir)¬
_____________________Series Number (dir) ¬
_____________________________________Episodes (media files)

HD Movies (dir) ¬
_____________Movie name (dir) ¬
___________________________Movie file

SD Movies (dir) ¬
______________Movie name (dir) ¬
___________________________Movie file

3D Movies (dir) ¬
_____________Movie name (dir) ¬
___________________________Movie file

Before it was merging all series names and movie names into one massive list with the sub-folders as above.
Now, its still merging all series names and movie names into one massive list, but inside each one is the alphabetised list.

My ultimate goal would be to have the following structure:

Video ¬
_____TV ¬
_________Series Name ¬
____________________Series Number ¬
_______________________________Episodes
_____HD Movies (dir) ¬
_________________(Alphabetised list = ABC, DEF, GHI...) ¬
_________________________________________________Movie file
_____SD Movies (dir) ¬
_________________(Alphabetised list = ABC, DEF, GHI...) ¬
_________________________________________________Movie file
_____3D Movies (dir) ¬
_________________(Alphabetised list = ABC, DEF, GHI...) ¬
_________________________________________________Movie file

Is this even possible?

Once again, your assistance is much appreciated.

User avatar
phibertron
Posts: 1566
Joined: Sun Jan 30, 2011 5:52 pm
AV Hardware: Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

Re: Navtree (How to show folders at the root solved and more

Postby phibertron » Thu Feb 16, 2012 9:35 pm

The hard part is to have TV subtree different than the others
as its an all or nothing deal with the enmuration

BUT it should work ok in your case with the tv "Series number" as the Alpha list also deals with Numerics

So this

Code: Select all

Video ¬
        TV ¬
            Series Name ¬
                               Series Number ¬
                                                     Episodes
        HD Movies (dir) ¬
                               (Alphabetised list = ABC, DEF, GHI...) ¬
                                                                                        Movie file
        SD Movies (dir) ¬
                               (Alphabetised list = ABC, DEF, GHI...) ¬
                                                                                        Movie file
        3D Movies (dir) ¬
                               (Alphabetised list = ABC, DEF, GHI...) ¬
                                                                                        Movie file


would possible look like this

Code: Select all

Video ¬
        TV ¬
            Series Name (Alphabetised list = ABC, DEF, GHI...) ¬
                               Series Number (Alphabetised list = ABC, DEF, GHI...) ¬
                                                                                        Episodes
        HD Movies (dir) ¬
                               (Alphabetised list = ABC, DEF, GHI...) ¬
                                                                                        Movie file
        SD Movies (dir) ¬
                               (Alphabetised list = ABC, DEF, GHI...) ¬
                                                                                        Movie file
        3D Movies (dir) ¬
                               (Alphabetised list = ABC, DEF, GHI...) ¬
                                                                                        Movie file


I've attached one to do the above, and included music and photos to do folder only view

chrismcb Custom Navtree Scenario 4.zip
(2.23 KiB) Downloaded 313 times
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

chrismcb
Posts: 8
Joined: Thu Feb 16, 2012 2:36 pm
AV Hardware: ReadyNas - Twonky 6.1
LG Smart TV
Samsung Smart TV
Western Digital Live Client

Re: Navtree (How to show folders at the root solved and more

Postby chrismcb » Thu Feb 16, 2012 10:22 pm

Thanks, tried that one too, but it's still doing the same and merging all four content sources into one big list.

I have all three types of movies and tv series shown in the Video list, within each of those is an alphabetised breakdown, with only one child - the actual file.

User avatar
phibertron
Posts: 1566
Joined: Sun Jan 30, 2011 5:52 pm
AV Hardware: Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

Re: Navtree (How to show folders at the root solved and more

Postby phibertron » Thu Feb 16, 2012 10:57 pm

Im actually home now, wht I gave you was off the top of my head :)

I just did a quick test, and yup I see what you see
I'm running 6.0.38 at present on Windows Home Server 2003

It looks like the buildon='res' has changed in its behavior yet again :?
It has some hard coded return to always return items for a folder
which is why we are seeing the list and the abc sub folders
wicked stupid!!!

its kinda odd that the reverse almost works sort of expected

Code: Select all

<container buildon='dc:title[3]' class='object.container' createClass='object.item.videoItem.movie'>
<container buildon='res' class='object.container' createClass='object.item.videoItem.movie' />
</container>


My best advice for stability and sanity, would be to use Scenario 4 as is
but with one caveat

You are going to have to create your own sub ABC DEF folders in each of your HD 3D folders
and move/place files accordingly in them

which in one can be a blessing in disguise
in that what you see on tv will be truly what you see on the nas
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

chrismcb
Posts: 8
Joined: Thu Feb 16, 2012 2:36 pm
AV Hardware: ReadyNas - Twonky 6.1
LG Smart TV
Samsung Smart TV
Western Digital Live Client

Re: Navtree (How to show folders at the root solved and more

Postby chrismcb » Fri Feb 17, 2012 11:59 am

I've been tinkering with the code all morning, trying to get my head around it all.

At minimum, I expect the ability to be able to list by storage folder, in alphabetical groups... is that something easy done?

My code is not working, and I'm sure there'll be something silly missed:

<container name='Video By Folder' id='video/folders' class='object.container.storageFolder' restricted='0' createClass='object.item.videoItem.movie'>
<container buildon='dc:title[3]' class='object.container' createClass='object.item.videoItem.movie'>
<container buildon='dc:title' class='object.container' createClass='object.item.videoItem.movie'/>
</container>
</container>

Could I possibly annoy you to cast your eye over the "stripped down" version I am creating?
Downloadable from http://www.filesavr.com/V7446MMNRBBSRBD

User avatar
phibertron
Posts: 1566
Joined: Sun Jan 30, 2011 5:52 pm
AV Hardware: Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

Re: Navtree (How to show folders at the root solved and more

Postby phibertron » Fri Feb 17, 2012 5:56 pm

I downloaded your code
and trust me on this, I did a ton of head banging to get the scenarios I posted to work
your attempt is missing a ton of things for twonky to work with it
If you read the very first part of this thread
I go into some explanation of the why and how
In a nutshell, my scenarios have everything a default xml has
but I moved them to the top, and are placed outside of the media sections for photo,music and video
if this is not done, yuo get kaplooey

As I stated in my previous post
What you want to accomplish completely in code is not possible at this time
The problem is with this command

buildon='res'

The 'res' is hard coded to always return items in a folder
even if there is a sub buildon command, it still returns the list into the folders of ther tree


Your right this section is not going to work as you would expect

Code: Select all

<container name='Video By Folder' id='video/folders' class='object.container.storageFolder' restricted='0' createClass='object.item.videoItem.movie'>
   <container buildon='dc:title[3]' class='object.container' createClass='object.item.videoItem.movie'>
      <container buildon='dc:title' class='object.container' createClass='object.item.videoItem.movie'/>
   </container>
</container>



If 'res' worked as like everything else, but it doesn't ;(, then this would have worked

Code: Select all

<container name='videos' id='video' createClass='object.item.videoItem.movie' class='object.container'>

   <container buildon='res' createClass='object.item.videoItem.movie' class='object.container.storageFolder' >
      <container buildon='dc:title[3]' createClass='object.item.videoItem.movie' class='object.container' />
   </container>

</container>



There is a solution though, not fun to do, but it will work

1. Use Custom Scenario 4

2. Create Alph Folders in each root folder on the nas

Fer ex:

Code: Select all

HD - ABC
   - DEF
   - GHI
   - JKL
   - MNO
   - PQR
   - STU
   - WXY
   - Z


or

Code: Select all

HD - ABC - A
         - B
         - C
   - DEF
   - GHI
   - JKL
   - MNO
   - PQR
   - STU
   - WXY
   - Z


3. Move media into Alpha Folders on the nas

Code: Select all

HD - ABC - Alpha.mp4
           Bravo.mp4
           Charlie.mp4


or

Code: Select all

HD - ABC - A - Alpha.mp4
         - B - Bravo.mp4
         - C - Charlie.mp4


If you do a search on this forum, you'll find that the working with folders in the navtree
has been a problem for a very very very long time
I was just glad to be able to take it as far as I have already
Going any further is going to take help from twonky developrs who maintain the code
also this is just the tip fo what you can and cant not do in the navtree
.
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

User avatar
phibertron
Posts: 1566
Joined: Sun Jan 30, 2011 5:52 pm
AV Hardware: Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

Re: Navtree (How to show folders at the root solved and more

Postby phibertron » Sat Feb 18, 2012 8:26 pm

Another possible solution for you in your scenario
is to do it based off of upnp:album
with one catch, you would want to put all the TV shows into the root of TV
else
upnp:album would treat each sub folder in TV as an album, possible big list in tree

So if you had the following root folders and NO sub folders in any of them

3D
HD
SD
TV

This would do exactly what you want to do

Code: Select all

<container buildon='upnp:album' createClass='object.item.videoItem.movie' class='object.container' >
   <container buildon='dc:title[3]' createClass='object.item.videoItem.movie' class='object.container' />
</container>


The problem will be with the TV section
in that episodic shows can have a lot of files names similiar

ShowName SeasonName EpisodeNumber EpisodeName

I would suggest doing this to help a little

Code: Select all

<container buildon='upnp:album' createClass='object.item.videoItem.movie' class='object.container' >
   <container buildon='dc:title[1]' createClass='object.item.videoItem.movie' class='object.container' />
</container>


I have attached a tested working example for you to evaluate for your needs

chrismcb Custom Navtree based on upnp album.zip
(2.29 KiB) Downloaded 305 times
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

chrismcb
Posts: 8
Joined: Thu Feb 16, 2012 2:36 pm
AV Hardware: ReadyNas - Twonky 6.1
LG Smart TV
Samsung Smart TV
Western Digital Live Client

Re: Navtree (How to show folders at the root solved and more

Postby chrismcb » Sun Feb 19, 2012 12:42 pm

Thanks for your help, however my media is managed automatically by a meta-fetcher, putting things into folders, downloading cast info, background images... so I can't alter the file structure without loosing that facility.

What I am now thinking of is creating a new directory on the NAS which has symbolic links to the root content folders (TV, HD, SD, 3D) making that folder a dummy one, gathering everything together, pushing everything down a level on the tree.

This will, with scenario 4, I think allow what I originally wanted, separation of the media by the source folder.

Will report back on its success (or otherwise!)

chrismcb
Posts: 8
Joined: Thu Feb 16, 2012 2:36 pm
AV Hardware: ReadyNas - Twonky 6.1
LG Smart TV
Samsung Smart TV
Western Digital Live Client

Re: Navtree (How to show folders at the root solved and more

Postby chrismcb » Sun Feb 19, 2012 12:59 pm

And it works!!!

With one small setting change in twonkymedia-server.ini - change followlinks=0 to followlinks=1

User avatar
phibertron
Posts: 1566
Joined: Sun Jan 30, 2011 5:52 pm
AV Hardware: Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

Re: Navtree (How to show folders at the root solved and more

Postby phibertron » Sun Feb 19, 2012 6:21 pm

I only wish followlinks=1 was available on the windows platform, I run twonky on a Windows Home Server

So let me get this straight

you created your symbolic links to point to a folder that contains folders
and in doing so,
scenario 4, only returns the root folders
and does not drill down/recognoize/return the sub folders
the symbolic link points to?
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

chrismcb
Posts: 8
Joined: Thu Feb 16, 2012 2:36 pm
AV Hardware: ReadyNas - Twonky 6.1
LG Smart TV
Samsung Smart TV
Western Digital Live Client

Re: Navtree (How to show folders at the root solved and more

Postby chrismcb » Sun Feb 19, 2012 9:54 pm

What I did was create a share on the NAS (calling it "video") and inside it, create symbolic links to the other shares which I want included in this (TV, HD, SD & 3D).

I can browse the NAS over the network, go into "video" and i see the four directories.

In doing this, I've basically put all video into one big folder and, after setting followlinks=1, Twonky treats it as a normal folder.

This new "video" share's only purpose is for Twonky to move everything down one on the hierarchy.

Scenario 4 now lets me see the four directories under "video" where it then displays all the folders as normal underneath it.


Return to “TwonkyServer”

Who is online

Users browsing this forum: Bing [Bot] and 2 guests

cron