|
Phoenix This forum is for discussing the user-created Phoenix custom interface for SageTV. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Help: VFS
Let me see if I understand the VFS.
There are different aspect for media types. For lack of a better word, I refer to them as tags. Movies can be both DVDs and Imports where Movies would be a Media Type and DVDs and Import would be a "tag". Setting up the views is defining which "tags" (or combination thereof) I want to show up in that view. Does that start to scratch the surface? I looked at the guide to setting up views and got a little bit intimidated, but I'm going to soldier ahead and try my best.
__________________
Server: WHS with 11TB of storage Clients:1) HD-200 to a Samsung 32" Slimfit CRT HDTV 2) HD-200 to a Pioneer 26" X1 LCD Tuners: 1) HD-Homerun 2) Avermedia USB ATSC Twitter: ohpleaseno |
#2
|
||||
|
||||
"tags" in the vfs has a special meaning, sort of like labels.
A view is basically a collection of media files (from one or more sources) that can then be filtered, grouped and sorted.. A view can have multiple "tags". ie, a DVD view might have a tag of "dvd" and a tag of "video" meaning that when browsing the view categories the DVD view would should show up in the "dvd" category, AND it would show up in the "video" category. Vew categories (ie, tags) are just a way to organize the views into groups. Since phoenix will have 100s of views over time, "tags" is just a way to organize things. While the main vfs file has sourcs, filters, groups, sorters, and views... your editing will probably just be in the <views> area. The other parts are for adding new filters, sources, groupers, etc. Views simply slice and dice data to present it in any way that you want.
__________________
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 |
#3
|
|||
|
|||
BMT has subversively got me used to the way Phoenix categorizes things.
One thing I don't understand though is why there is not a item just called "Movies". When I select "Videos" it encompasses all imported video. In BMT, all video content is either Movie or TV. Is there a distinction I'm not understanding between the two?
__________________
Server: WHS with 11TB of storage Clients:1) HD-200 to a Samsung 32" Slimfit CRT HDTV 2) HD-200 to a Pioneer 26" X1 LCD Tuners: 1) HD-Homerun 2) Avermedia USB ATSC Twitter: ohpleaseno |
#4
|
||||
|
||||
Quote:
You can build a Movies view and it would include all media files that were of MediaType "Movie". That would pull in dvds, blurays, recorded movies, etc.
__________________
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 |
#5
|
|||
|
|||
I don't know why I get frustrated by that. I just want to click "Movies" in BMT and have them pop up. I know I can create a view, but it just seems so natural. It's like the drop-down in the metadata editing page taunts me.
If we create a custom view in Phoenix, does it show up across the board in all Phoenix "products"? Will the custom view be selectable in BMT? Will there be some sort of xml generator available either as a STV or webUI? I'm really regretting not learning more about xml now.
__________________
Server: WHS with 11TB of storage Clients:1) HD-200 to a Samsung 32" Slimfit CRT HDTV 2) HD-200 to a Pioneer 26" X1 LCD Tuners: 1) HD-Homerun 2) Avermedia USB ATSC Twitter: ohpleaseno |
#6
|
||||
|
||||
Quote:
BMT and Phoenix share the same views, so if you create it in Phoenix then it will show up in bmt. At some point, we will have view editing tools available. I'm looking at adding that support to bmt, and I'm the Mike and Brian are looking at that from the STV side of things as well. The problem is the the views are so flexible that it's really hard to make an editor that is "simple". I think when we do have an editor, it may just be some basic editing, and then if you really need to tweak a view, then you'll have to dive into the XML.
__________________
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 |
#7
|
|||
|
|||
Quote:
Thanks for considering a "Movies" view. Even for people who don't end up using Phoenix UI, those who rely on BMT will greatly appreciate it. Okay, I'm going to stop with the theoretical stuff and actually get into using Phoenix. I'm sure I wasn't invited to the private beta to ask questions.
__________________
Server: WHS with 11TB of storage Clients:1) HD-200 to a Samsung 32" Slimfit CRT HDTV 2) HD-200 to a Pioneer 26" X1 LCD Tuners: 1) HD-Homerun 2) Avermedia USB ATSC Twitter: ohpleaseno |
#8
|
||||
|
||||
I get all of my movies with the All Titles view, which is the first item in the 'Movies' on the Landing zone. Is this not showing you all of your movies? It isn't sorted! so this might be throwing you off a bit.....
__________________
PHOENIX 3 is here! Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient |
#9
|
|||
|
|||
I'm at work, but if I remember the All Titles view gives me Movies and TV. Again this is from memory so I may be off.
__________________
Server: WHS with 11TB of storage Clients:1) HD-200 to a Samsung 32" Slimfit CRT HDTV 2) HD-200 to a Pioneer 26" X1 LCD Tuners: 1) HD-Homerun 2) Avermedia USB ATSC Twitter: ohpleaseno |
#10
|
||||
|
||||
It does have movies that were recorded on TV. But anything that BMT thinks is a TV show, or that Sage thinks is a Recording, shouldn't be in there.....
__________________
PHOENIX 3 is here! Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient |
#11
|
|||
|
|||
Made my first attempt at creating a view. I'm trying to get all TV (recorded/imported) to be presented in alpha order, then the next level be seasons in reverse order and then episodes in reverse order.
My knowledge of xml sucks, but I did a bit of copy and paste. Here is the result... Code:
<!DOCTYPE vfs SYSTEM "vfs.dtd"> <vfs> <tags> <tag value="tv" label="TV"/> <tag value="video" label="Videos"/> <tag value="dvd" label="DVD"/> <tag value="bluray" label="Blu-Ray"/> <tag value="picture" label="Pictures"/> <tag value="music" label="Music"/> <tag value="videodisc" label="DVD or Blu-Ray"/> <tag value="epg" label="Program Guide"/> <tag value="metadata" label="Metadata"/> <tag value="online" label="Online"/> <tag value="web" label="Web" visible="false"/> <tag value="android" label="Android" visible="false"/> <tag value="landingzone" label="Landing Zone" visible="false"/> <tag value="quickchange" label="Quick Change" visible="false"/ </tags> <views> <view name="tvseriesseason2" label="TV"> <description>TV Grouped by Series and then Season</description> <tag value="tv"/> <view-source name="recordings"/> <view-source name="archivedrecordings"/> <view-source name="videos" > <filter by="mediatype" value="tv" /> </view-source> <presentation level="1"> <group by="show"/> <sort by="title"/> <hint value="series"/> </presentation> <presentation level="2"> <group by="season"> <option name="prune-singe-item-groups" value="true"/> </group> <sort by="SeasonNumber"> <option name="sort-order" value="desc"/> <sort/> </presentation> <presentation level="3"> <sort by="EpisodeNumber"> <option name="sort-order" value="desc"/> <sort/> </presentation> </view> </views> </vfs>
__________________
Server: WHS with 11TB of storage Clients:1) HD-200 to a Samsung 32" Slimfit CRT HDTV 2) HD-200 to a Pioneer 26" X1 LCD Tuners: 1) HD-Homerun 2) Avermedia USB ATSC Twitter: ohpleaseno |
#12
|
|||
|
|||
Any tips on the xml file I posted?
__________________
Server: WHS with 11TB of storage Clients:1) HD-200 to a Samsung 32" Slimfit CRT HDTV 2) HD-200 to a Pioneer 26" X1 LCD Tuners: 1) HD-Homerun 2) Avermedia USB ATSC Twitter: ohpleaseno |
#13
|
||||
|
||||
Sorry I did see this yesterday morning on my way to work, but then I forgot about it
I can see one issue that stands out, and that is we don't have a SeasonNumber sorter (Check out the VFS Documentation page under Sorters) So, here's how I'd change things.... Code:
<!DOCTYPE vfs SYSTEM "vfs.dtd"> <vfs> <views> <view name="ohpleaseno_tvseriesseason2" label="Custom TV"> <description>TV Grouped by Series and then Season</description> <tag value="tv"/> <view-source name="recordings"/> <view-source name="archivedrecordings"/> <view-source name="videos" > <filter by="mediatype" value="tv" /> </view-source> <presentation level="1"> <group by="show"/> <sort by="title"/> <hint value="series"/> </presentation> <presentation level="2"> <group by="season"> <option name="prune-singe-item-groups" value="true"/> </group> <sort by="metadata"> <option name="field" value="SeasonNumber"/> <option name="compare-numeric" value="true"/> <option name="sort-order" value="desc"/> </sort> </presentation> <presentation level="3"> <sort by="metadata"> <option name="field" value="EpisodeNumber"/> <option name="compare-numeric" value="true"/> <option name="sort-order" value="desc"/> </sort> </presentation> </view> </views> </vfs> 2. I've changed the label to "Custom TV" for now, since that'll make it easy to see if your view is actually being loaded. views that have errors will not be loaded.. So if you don't see Custom TV in your view list, then you know it had errors (or you didn't reload the vfs) 3. For presentation level=2 (ie the Season view) I used a metadata sorter (since we don't have a specific season only sorter). I'm telling to sort on metadata field SeasonNumber and to compare them as numbers. 4. For the presentation leve=3 (ie the Episode view) I'm telling it to sort by metadata field EpisodeNumber and compare those numerically as well. 5. I also fixed some xml errors. Validating your xml before you try to have them processed by phoenix will go a long way in reducing your headaches. I don't use Windows... but i did a quick search for free xml editors... apparently MS has one... I would edit ALL xml using an xml editor just so that you can minimize the potential for typos. If you open a vfs file and it complains that it is missing the "dtd" then copy the vfs.dtd file from STVs/Phoenix/vfs/ directory to the same directory as your .xml file.
__________________
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 |
#14
|
|||
|
|||
Thanks Sean,
I copied and pasted the xml from your rewrite into a file called tv.xml and put it in the sagetv/stvs/phoenix/vfs folder. After doing that, I should see a view in BMT called "Custom TV", right?
__________________
Server: WHS with 11TB of storage Clients:1) HD-200 to a Samsung 32" Slimfit CRT HDTV 2) HD-200 to a Pioneer 26" X1 LCD Tuners: 1) HD-Homerun 2) Avermedia USB ATSC Twitter: ohpleaseno |
#15
|
||||
|
||||
You will if you reloaded the vfs AND there were no other errors. I just manually edited your xml that you pasted, not with an xml editor, so I'm not sure if there other xml editors or not. Do you get any errors when you open the file file with an xml editor?
__________________
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 |
#16
|
||||
|
||||
FYI, Just in case you miss it, there is a typo in the view that Sean posted:
Code:
<group by="season"> <option name="prune-singe-item-groups" value="true"/> </group> Aloha, Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full." - Nikolaus (4yrs old) |
#17
|
|||
|
|||
Quote:
I named the file tv.xml and put it in the vfs folder, but when I refresh the vfs, it doesn't show up in BMT or as a selectable view in the Phoenix UI.
__________________
Server: WHS with 11TB of storage Clients:1) HD-200 to a Samsung 32" Slimfit CRT HDTV 2) HD-200 to a Pioneer 26" X1 LCD Tuners: 1) HD-Homerun 2) Avermedia USB ATSC Twitter: ohpleaseno |
#18
|
||||
|
||||
Sorry for not getting back to you on this, but I was away for a couple days...
Here's the view (I tested this in my local setup) Code:
<!DOCTYPE vfs SYSTEM "vfs.dtd"> <vfs> <views> <view name="ohpleaseno_tvseriesseason2" label="Custom TV"> <description>TV Grouped by Series and then Season</description> <tag value="tv"/> <view-source name="recordings"/> <view-source name="archivedrecordings"/> <view-source name="videos" > <filter by="mediatype" value="tv" /> </view-source> <presentation level="1"> <group by="show"/> <sort by="title"/> <hint value="series"/> </presentation> <presentation level="2"> <group by="season"> <option name="prune-single-item-groups" value="true"/> </group> <sort by="metadata"> <option name="field" value="SeasonNumber"/> <option name="compare-numeric" value="true"/> <option name="sort-order" value="desc"/> </sort> </presentation> <presentation level="3"> <sort by="metadata"> <option name="field" value="EpisodeNumber"/> <option name="compare-numeric" value="true"/> <option name="sort-order" value="desc"/> </sort> </presentation> </view> </views> </vfs> New views are NOT loaded automatically, but rather you'll need to refresh the vfs. You can do this from the web ui; Configures -> Refresh Configuration -> Refresh VFS or, you can do it from the phoenix stv ui, but hitting home twice. After I reloaded my vfs with this new file, I saw an entry called "Custom TV", and that grouped by series, then season, sorting decending order for season and episode (ie newer seasons and episodes show first). Let me know how yo make out with this view.
__________________
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 |
#19
|
|||
|
|||
Worked great!
Two things though. 1) the userdata/phoenix/vfs folder doesn't exist, so that needs to be created. 2) the vfs.dtd file needs to be copied over. In a future build of Phoenix, could you auto-populate those two items?
__________________
Server: WHS with 11TB of storage Clients:1) HD-200 to a Samsung 32" Slimfit CRT HDTV 2) HD-200 to a Pioneer 26" X1 LCD Tuners: 1) HD-Homerun 2) Avermedia USB ATSC Twitter: ohpleaseno |
#20
|
||||
|
||||
Quote:
As for the dtd file. It is not required by phoenix, since I automatically process the xml files against the central .dtd file. But, an xml validation tool may complain about the missing dtd.
__________________
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 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
VFS - add one for Movies | jusjoken | Batch Metadata Tools | 9 | 02-12-2011 12:01 PM |
Bug in phoenix VFS ViewFactory class | skiingwiz | Batch Metadata Tools | 10 | 10-10-2010 11:05 AM |
VFS in Version 4.1.0 | toricred | Batch Metadata Tools | 8 | 10-02-2010 10:54 AM |