|
Phoenix This forum is for discussing the user-created Phoenix custom interface for SageTV. |
|
Thread Tools | Search this Thread | Display Modes |
#21
|
|||
|
|||
Thanks - this looks very similar to the solution that I created above.
I see only a few differences: 1. Mine: <option name="children-only" value="true"/> Yours: <option name="children-only" value="false"/> Can you explain the meaning of "children-only"? I assumed it meant to not keep the parent folder in the view... but it is a little confusing as "HomeVideos" is the parent that is being selected by the <bookmark> tag and you have it set to "false"... 2. Mine: <option name="mediamask" value="BDV"/> Yours: <option name="mediamask" value="V"/> I assume that the HomeVideos can still have blu-ray and DVD source materials... these will not be picked up by "V" alone, correct? 3. Mine: <option name="root" value="HomeVideos"/> Yours: <option name="bookmark" value="/HomeVideos/"/> I use a "root" instead of a bookmark...there is no practical difference here, correct? You pointed out that with "bookmark" you can navigate up and "root" is the top of the tree... however it does not seem to be any different for the "Memories->Videos" screen... 4. Mine: <presentation> <sort by="title"> <option name="folders-first" value="true"/> </sort> </presentation> Yours: None Is the default to present the folders by name first? Is that why you do not use a <presentation> tag? If so - it would be faster to remove the <presentation> tag as I assume it is re-sorting what is already sorted, correct? Another question I have - is there any performance disadvantage to using a raw source? Most views seem to use other views which in turn use raw sources... I would expect that creating this 'layering' would perform worse than a raw source, is that correct? As for the directory structure, one of the values of SageTV imports is that it does not need a single 'root'... so source material can be anywhere on your network. I think it would be a good idea if you allow the syntax to take that into account as many folks will not have a single tree hierarchy for their imports. It |
#22
|
||||
|
||||
There isn't much if any penalty performance wise on raw sources vs view-sources. You can use whatever gets the job done and not worry too much about performance. There are a few sorts that take longer than others (favorite priority is one), and one view that takes a while (it's labeled 'slow' already), but any others should be pretty quick no matter how you build them.
btl.
__________________
PHOENIX 3 is here! Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient |
#23
|
||||
|
||||
Quote:
The children-only=false means to preserve the root folder rather than just taking the "children" of the root folder. The mediamask can be whatever you want... typically I don't have DVDs or BluRays in my HomeVidoes so I just use the V. As for the single root... Phoenix doesn't require a single root, I'm just trying to show you how you can get what you want In fact I have multiple video import directories from multiple drives but they all get shown as a single merged filesystem (combined). At this point, given that sagetv is dead, I'd try to work with what's there for Phoenix, because I don't see much development happening in the next while So, if a solution requires a. you change YOUR import structure b. I make changes to Phoenix code (Ii'd go with option 'a', since that's the one that you can control -- and it's most likely the most time effective solution for both of us )
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#24
|
||||
|
||||
Quote:
It was when I tried to apply the bookmark|root to take only the hierachy under "HomeVideos" that the problem arose. It only would work if I used the raw source. If there is a way to get it to work with a non-raw source I'd like to know what I am doing wrong... Quote:
Code:
<option name="bookmark" value="/HomeVideos/"/> <option name="children-only" value="false"/> Quote:
As I pointed out above, both the raw and default.videofolders gave me the correct starting point - it was refining that starting point for the view which is the issues, correct? And that is only a question of Phoenix code not SageTV code as I understand it... Btw, with all the great work you and the Phoenix team have done... I think that SageTV will live on for many years in reality. ( ty! ) Quote:
The real issue is the phoenix.view.bmt.sagevideoimports view is based on the raw source <item name="sageimports" label="Sage Import Folders" class="sagex.phoenix.vfs.sources.SageSourcesFactory"> which is the ONLY method I have working currently... (it is a bit slow) I'm sure it would be faster if I could base it on the phoenix.view.default.videofolders source but I cannot seem to get root|bookmark to work with that source... Any way to fix this? |
#25
|
||||
|
||||
I think the slow one is still there, but it's not in x-vfs.xml anymore. I'm not sure where it is now, but it shows up in BMT at least.
Code:
<source name="sagefilesystem"> <option name="content" value="VideosByFolder"/> </source> Code:
<source name="sageimports"> <option name="combine" value="false"/> <option name="mediamask" value="BDV"/> </source> Quote:
__________________
PHOENIX 3 is here! Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient |
#26
|
||||
|
||||
Think of the root / bookmark as 'after the view gets built, this is where we will navigate to'. It doesn't impact how the view is built, which is why getting the view built where it shows the HomeVideos folder without any bookmarks is the way to go about solving this.
__________________
PHOENIX 3 is here! Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient |
#27
|
|||
|
|||
Quote:
When there is an XML block like this: Code:
<view name="phoenix.view.default.homevideos" label="Home Videos" flat="false"> <option name="bookmark" value="/HomeVideos"/> <option name="children-only" value="true"/> The way it would typically be read is: 1. Take the original output of the view (which in this case is a set of folders "Videos", "HDVideos", "HomeVideos") and apply each of the two options. 2. The "children-only" option excludes any top-level root node (the prefix). 3. The "bookmark" option selects "one of the folder in the hierarchy to serve as the root node" (which may or may not be excluded). If I have understood what you are saying correctly, the "bookmark" doesnt really act as an 'option' - it is more of a 'filter' on the result set of the view (like the other filters)... but currently I believe only 1 filter is allowed. Filters are usually ordered... Just some food for thought... In summary, based on the current design I need to change 'children-only' to 'true' (I had 'false' set). Now that I understand the design I'll try it out when I get home and report the results. Thanks for all the help/patience. Let me know if I am misunderstanding still. |
#28
|
|||
|
|||
That should have been:
In summary, based on the current design I need to change 'children-only' to 'false' (I had 'true' set). Now that I understand the design I'll try it out when I get home and report the results. |
#29
|
||||
|
||||
bookmark is an "option" for 2 reasons
1. It's not a filter, since it's not filtering the view, it's just positing the view's state to be at given level... just like when you bookmark a folder location in windows, or bookmark a page on a site in a browser. 2. A filter at the top level implicitly flattens your view. ie, if there was a <filter by="bookmark" value="HomeFolder"/> then it would never work since a top level filter on a view flattens the view before a filter is applied. That's an important thing to know about filters, since, if you are using a structured view source and then add a top level filter, then the results are no longer structured. Given that there's very little documentation on the vfs, these types of confusions are bound to happen. Perhaps someday, someone (other than us) will understand the VFS enough to produce some documentation
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#30
|
|||
|
|||
Quote:
I tried the changes last night.... the approach does not work. The fundamental issue is that the view phoenix.view.default.videofolders creates an output that is a list of folders from the top level of everyone of the source locations instead of just the top level import source nodes "Videos", "HDVideos", "HomeVideos". ie. if the source files look like //nas/Videos/video1, //nas/HDVideos/video2, //nas/HomeVideos/video3As a result there is nothing to use the root|bookmark option on. I would think that I need to <filter> out the non-"HomeVideos" folders but that does not seem to be able to be done because: 1) I cannot seem to get the filter by filepath to work... tried to do this by regex but did not succeed. What is the syntax methodology to use this? 2) Based on your comments above the filter would flatten the folder hierarchy which is exactly what I want to preserve The phoenix.view.default.videofolders view is based on: Code:
<source name="sagefilesystem"> <option name="content" value="VideosByFolder"/> </source> As another note, I found that the "sageimports" source actually adds an additional top level "Sage File Imports" node above the source paths. The structure becomes: /Sage File Imports/Videos/... /Sage File Imports/HDVideos/... /Sage File Imports/HomeVideos/... The root|bookmark works perfectly in this case once you include the right path of the view "/Sage File Imports/HomeVideos" but as was pointed out this is the slowest view. Is there a way to fix this with the "sagefilesystem" source? I tried to use the "filesystem" source but I could not figure out the syntax for using it ... |
#31
|
||||
|
||||
As I said above :
Quote:
btl.
__________________
PHOENIX 3 is here! Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient |
#32
|
||||
|
||||
Quote:
Something you can try in your <view> is to use a source like this Code:
<source name="sagefilesystem"> <option name="content" value="Filesystem"/> <option name="subdir" value="HomeVideos"/> <option name="grouping" value="Folder"/> </source> And if this doesn't get you where you need to be, then I'd seriously consider restructuring your videos
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#33
|
||||
|
||||
Quote:
Quote:
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#34
|
|||
|
|||
Quote:
Quote:
Quote:
|
#35
|
|||
|
|||
I tried the following with limited success:
Code:
<view name="phoenix.view.default.AAA" label="AAA" flat="false"> <option name="children-only" value="false"/> <description>Home Videos</description> <tag value="video"/> <source name="sagefilesystem"> <option name="content" value="Filesystem"/> <option name="subdir" value="//nas/HomeVideos"/> <option name="grouping" value="Folder"/> </source> </view> Ideas? |
#36
|
||||
|
||||
Quote:
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#37
|
|||
|
|||
I did try variants including eliminating the grouping and content options.
The only variants that made any change: 1) The view must be have "flat=false" or else no items populate at all 2) The subdir must be a full unc path or no items populate at all Other than that the folders always showed with 0 items. |
#38
|
||||
|
||||
Quote:
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#39
|
|||
|
|||
looks that way... oh well.
At least I got to play with the views... |
#40
|
|||
|
|||
I spent some time today trying to learn how views work, and figuring out a way to organize home videos seemed like a good place to start. I've had some success, so I though I should share.
The first method I used was to assign a genre to my home videos through BMT. So I have an "Africa" genre for our trip to Africa last summer, and an "Alaska" genre for some videos I've take while fishing in Alaska... you get the idea. Then I used the following view: Code:
<view name="phoenix.view.default.homevideos" label="Home Movies by Genre" flat="true"> <description>Home Videos</description> <tag value="homevideos"/> <tag value="default"/> <view-source name="phoenix.view.primary.homevideos"/> <presentation level="1"> <group by="genre"> <option name="empty-foldername" value="Miscellaneous"/> </group> <sort by="title"/> </presentation> </view> Code:
<view name="HomeMoviesByFolder" label="Home Movies by Folder" flat="false"> <option name="children-only" value="true"/> <description>View of All Home Movies</description> <tag value="video"/> <tag value="default"/> <source name="sagefilesystem"> <option name="content" value="VideosByFolder"/> </source> <filter by="homevideos" scope="include"/> <presentation> <sort by="title"> <option name="folders-first" value="true"/> </sort> </presentation> </view> Edit: Found out why I wasn't seeing home videos in the PC client. It was because I never bothered to configure the phoenix "Home Videos" directory since I hardly ever use it. Last edited by Dargason; 02-18-2012 at 02:27 PM. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
My Videos problem | ohpleaseno | SageMC Custom Interface | 16 | 09-14-2009 11:26 AM |
Videos by Folder problem | gwynp | SageTV Software | 10 | 08-05-2009 11:00 PM |
Problem copying videos | squeed | SageTV Software | 0 | 08-07-2008 08:31 PM |
Problem with Imported Videos | toricred | SageTV Software | 4 | 03-14-2008 05:32 PM |
Placeshifter Problem on Pal Videos | garystein | SageTV Beta Test Software | 0 | 02-21-2006 06:20 PM |