|
Phoenix This forum is for discussing the user-created Phoenix custom interface for SageTV. |
|
Thread Tools | Search this Thread | Display Modes |
#41
|
|||
|
|||
How to create a filtered directory view?
I am trying to create a view that is organized by directories. For now none of my experiments worked.
I have the following import directories: f:/MyMovies f:/TV What I would like is to have a view organized by directories for all files in f:/TV/Tech I tried this: Code:
<view name="test.tech.path" label="0: Tech Movies Test" flat="false"> <option name="root" value="/TV/Tech/" /> <tag value="video"/> <tag value="default"/> <source name="sagefilesystem"> <option name="content" value="VideosByFolder"/> </source> <filter by="filepath" value=".*Tech.*"> <option name="scope" value="include" /> <option name="use-regex-matching" value="true" /> </filter> <presentation> <sort by="title"> <option name="folders-first" value="true"/> </sort> </presentation> </view> Thanks |
#42
|
|||
|
|||
Wrems helped me with this one.
I have the folder \\homeserver\Videos as an import directory I wanted a view to display only \\homeserver\Videos\Cartoons . All my cartoons are in sub-directories. Upon opening, it displays: Betty Boop Bosko ... Filename for VFS is \userdata\vfs\GR_VFS.xml --------------------- Code:
<!DOCTYPE vfs SYSTEM "vfs.dtd"> <vfs> <views> <view name="GR_Cartoons" label="GRCartoons" flat="false"> <option name="root" value="/Cartoons/"/> <option name="children-only" value="true"/> <description>Display Cartoons Only</description> <tag value="video"/> <view-source name="phoenix.view.default.videofolders"/> <presentation> <sort by="title"> <option name="folders-first" value="true"/> </sort> </presentation> </view> </views> </vfs> My menu file at this time puts it on the Video menu Filename for Menu is \userdata\Menus\GR_Menus.xml ------------------------ Code:
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE menus SYSTEM "menus.dtd"> <menus> <fragment parentMenu="phoenix.menu.lz.videos" insertBefore="phoenix.menu.lz.videos.blueraydefaultbrowser"> <menuItem name="GR_Menus" label="Cartoons" visible="true"> <description>Cartoon Shorts</description> <eval>AddGlobalContext("DefaultView","GR_Cartoons")</eval> <screen name="Phoenix Universal Media Browser" /> </menuItem> </fragment> </menus> Last edited by bialio; 08-03-2011 at 08:43 AM. |
#43
|
|||
|
|||
Thanks, this worked.
|
#44
|
|||
|
|||
I finally have got my imported video views working, thanks to everyone who has posted code in here (especially Wrems and OneOfMany) for that. They're done purely based on folder structure as all imported videos are well organized that was already.
Now I'm looking at TV views... This means metadata filtering I believe? I'd like to set up the following views: Son TV Dad TV Mom TV Parent TV (combine Dad and Mom, or alternatively, exclude Son) (All TV exists already, obviously) I have a lot of existing TV (recorded and imported) that I need to address metadata on, and a lot of Series/Favourites that are adding to it all the time. How do I edit the existing metadata in the most efficient way, and how do I automate that for new recordings (do I use the Sage "User Categories"?) I doing all my testing/setup on my client PC, and once I get things working (to maintain WAF) I'll move it all to my HTPC in the living room. Does the client get all the metadata from the server HTPC? I'm not super-clear on how BMT works but I'm playing with it all the time... I don't want to spend a bunch of time editing metadata on the client only to find I have to do it again on the HTPC if I can avoid it.
__________________
Alpine Website Design |
#45
|
|||
|
|||
Well, I think I got most everything working, except for automatically tagging recordings. The only way I can see to do that is with User Categories, which I don't see any way to enable.
Ratings and Genres do not seem to be correct for me so I cannot use these to filter by without manually setting them first, which I want to avoid.
__________________
Alpine Website Design |
#46
|
|||
|
|||
Quote:
Grant |
#47
|
||||
|
||||
JonTom, I have a setup similar to yours and thought I would share what I’ve done. There are probably other/better ways of doing this, but this works for me. I’m open if other’s have a preferred/other method of achieving customized break downs of shows. This is just the only way I’ve thought of how to do this.
I only have 3 separations: - All Shows - Everything except what’s in the kid’s view. I do it alphabetic by show name because this serves as more of a repository for everything archived, currently recording etc. - Kid’s Shows - Just kid’s shows - Unwatched Shows - A set of filters I use to only show the shows that are unwatched from the All Shows view. The all shows view is too cumbersome by itself, because it’s the complete library of all the shows on my server, sorted alphabetically. The unwatched shows view really serves as the bookmarks for all our series and brings the newest to the top and only shows the episodes that haven’t been watched, we use this view mostly to find TV to watch. For All Shows. I exclude the Kids Shows. That way if I add a series it’s automatically there. I don’t have to do any manual additions. For Kid’s Shows. I include only the kid’s shows by name. I rarely add new kid’s shows so it’s pretty consistent. If I add a series then I know I have to add the show name to the include list. While this method works pretty good, there is a small amount of ongoing maintenance for the kids shows if/when we add new series. Here’s a snippet of my 2 breakdowns: Code:
<view name="wr_all_tv" label="WR TV - Adult Shows Only"> <description>Display all shows without kids shows</description> <view-source name="wr_basic_tv" > <filter by="pql"> <option name="value"> <![CDATA[ Title = "The Backyardigans" or Title = "Caillou" or Title = "The Cat in the Hat Knows a Lot About That!" or Title = "Clifford the Big Red Dog" or Title = "Curious George" ]]></option> <option name="scope" value="exclude"/> </filter> </view-source> <presentation level="1"> <group by="show"/> <sort by="title"> <option name="ignore-all" value="true"/> </sort> </presentation> <presentation level="2"> <sort by="seasonepisode"> <option name="sort-order" value="asc"/> </sort> </presentation> </view> <view name="wr_kids_tv" label="WR TV - Kid's Only"> <description>Display Kid's Shows Only</description> <view-source name="wr_basic_tv" > <filter by="pql"> <option name="value"> <![CDATA[ Title = "The Backyardigans" or Title = "Caillou" or Title = "The Cat in the Hat Knows a Lot About That!" or Title = "Clifford the Big Red Dog" or Title = "Curious George" ]]></option> <option name="scope" value="include"/> </filter> </view-source> <presentation level="1"> <group by="show"/> <sort by="title"> <option name="ignore-all" value="true"/> </sort> </presentation> <presentation level="2"> <sort by="seasonepisode"> <option name="sort-order" value="asc"/> </sort> </presentation> </view> Last edited by wrems; 08-23-2011 at 06:47 PM. |
#48
|
|||
|
|||
Thanks, I'll give that a try.
Judging from that code, it seems it should be possible to set up a way to add a functionality I would like - the ability to add a show title to a Landing Zone menu item called SHORTCUTS. The way I picture it working would be to have a menu item on the advanced options screen for a show that would add/remove the corresponding title (not episode) from a list of shows that I want quick access to - I usually watch entire seasons of shows in order, and it would be great to be able to easily add these shows/seasons to the landing zone.
__________________
Alpine Website Design |
#49
|
|||
|
|||
Hmm, doesn't seem to work. I changed your code to add to the list, and to change the presentation, but I get nothing populating the view, which I don't think is a result of those changes. I'm using my "recordedTV" view as the source for these filtered views, is that what the issue is?
Code:
<view name="JW_RecordedTV" label="TV-Recorded" flat="true"> <tag value="tv" /> <tag value="default"/> <view-source name="phoenix.view.primary.recordedtvarchived"/> <view-source name="phoenix.view.primary.recordedtv"/> <presentation level="1"> <group by="show"> <option name="prune-single-item-groups" value="false"/> </group> <sort by="recentactivity"> <option name="sort-order" value="desc"/> <option name="folders-first" value="false"/> </sort> </presentation> <presentation level="2"> <sort by="originalairdate" /> </presentation> </view> EDIT: tried "phoenix.view.primary.recordedtv" as the view-source, no change. Any ideas? Complete vfs below. Code:
<view name="JW_RecordedTVNicholas" label="TV-Recorded (Nicholas)"> <description>Display Only Nicholas's Shows</description> <view-source name="phoenix.view.primary.recordedtv" > <filter by="pql"> <option name="value"> <![CDATA[ Title = "The Backyardigans" or Title = "Caillou" or Title = "The Cat in the Hat Knows a Lot About That!" or Title = "Harry and His Bucket Full of Dinosaurs" or Title = "Ni Hao, Kai-lan" or Title = "Sesame Street" or Title = "Transformers Prime" or Title = "Animal Exploration With Jarod Miller" or Title = "Bob the Builder" or Title = "Thomas & Friends" or Title = "Rolie Polie Olie" or Title = "The Super Hero Squad Show" or Title = "Dinosaur Train" or Title = "Sid the Science Kid" or Title = "Four Square" or Title = "The Avengers: Earth's Mightiest Heroes!" or Title = "Avengers: Earth's Mightiest Heroes!" or Title = "Handy Manny" or Title = "Curious George" ]]> </option> <option name="scope" value="include"/> </filter> </view-source> <presentation level="1"> <group by="show"> <option name="prune-single-item-groups" value="false"/> </group> <sort by="recentactivity"> <option name="sort-order" value="desc"/> <option name="folders-first" value="false"/> </sort> </presentation> <presentation level="2"> <sort by="originalairdate" /> </presentation> </view>
__________________
Alpine Website Design Last edited by JonTom; 08-23-2011 at 05:58 PM. |
#50
|
||||
|
||||
Try changing this part of the code:
Code:
Title = "Curious George" ]]> </option> Code:
Title = "Curious George" ]]></option> |
#51
|
|||
|
|||
that did it, thanks
__________________
Alpine Website Design |
#52
|
|||
|
|||
Hey guys,
Is there a thread or post that might help me understand this more? I really want to learn how to create my own views, but really don't know where to begin. Thanks, Dana
__________________
Diehard SageTV User Hardware: Vizio M550NV 55",GA-H67A-UD3H-B3 LGA 1155, Intel i3, 4Gb DDR3, USB-UIRT, 2x Colossus, 1 HDHR, HD100, HD200 Software - Win7 64 bit, SageTV 7.1.9, Java v6, HD100 firmware v20100212-0, HD200 firmware 20100909 0 |
#53
|
||||
|
||||
The first post in this thread is the best explanation there is.
btl.
__________________
PHOENIX 3 is here! Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient |
#54
|
|||
|
|||
No longer working
The following view is no longer working for me with the latest release of Phoenix:
Code:
<view name="dp_special_interest_imports2" label="DP Special Interest Videos2" flat="false" visible="true"> <option name="root" value="/Other/" /> <option name="children-only" value="true" /> <description>Grab special interest content from the combined import paths</description> <tag value="video" /> <view-source name="phoenix.view.source.allimportedvideo" /> </view> I'm 90% sure this view was working before, but for some reason no longer does. Any suggestions? As a side note, I can no longer edit vfs and menus from BMT. I get a null error message when trying to save any changes to an existing file. This may be the wrong place to ask about this, but thought I'd throw it in as well. Thanks for the help.
__________________
Server: AMD Phenom II X6 3.20 GHz ♠ 16 GB RAM (15.7 usable) Capture: HDHomeRun PRIME ♠ Ceton InfiniTV 4 PCIe (Clear-QAM only) Tuning: OpenDCT v0.5.20-RC2 Software: Windows 7 Ultimate 64-bit ♠ SageTV v9.0.12.504 ♠ Java 1.8.0_111 Clients: 4 x STX-HD300 ♠ 3 x STX-HD200 ♠ MacOS Placeshifter |
#55
|
||||
|
||||
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 |
#56
|
|||
|
|||
Quote:
When I look at the view using BMT or via the Phoenix UI, it appears to be ignoring the: Code:
<option name="root" value="/Other/" />
__________________
Server: AMD Phenom II X6 3.20 GHz ♠ 16 GB RAM (15.7 usable) Capture: HDHomeRun PRIME ♠ Ceton InfiniTV 4 PCIe (Clear-QAM only) Tuning: OpenDCT v0.5.20-RC2 Software: Windows 7 Ultimate 64-bit ♠ SageTV v9.0.12.504 ♠ Java 1.8.0_111 Clients: 4 x STX-HD300 ♠ 3 x STX-HD200 ♠ MacOS Placeshifter |
#57
|
||||
|
||||
It may be that the vfs engine is a little picky on the root option. Try removing the trailing slash on the "/Other/" value.
__________________
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 |
#58
|
|||
|
|||
Quote:
"Failed to save file. Message was Failed to save: null" So I went into the userdata/Phoenix/vfs folder on my server and made the change by hand. I then went into BMT and selected "Refresh Configurations". Next I checked the view, but it was still showing all the video imports instead of the onces in the "/Other" root. Just to double check the change took affect, I opened up my custom vfs file using BMT. Low and behold, the the trailing slash was still there. I think I need to restart the SageTV service to test this change due to the BMT xml editor issue I'm currently having at the same time. Unfortunately the wife is watching TV right now. I'll report back once I get a chance to restart and test the change to my custom vfs which now has the trailing slash removed. ****UPDATED***** I was able to restart the SageTV process. However, removing the trailing slash had no effect. I still saw all of the import videos, including those outside of the "/Other" root. While the process was stopped, I also deleted the tmp folder from the userdata folder. The tmp folder seemed to have some vfs files in it from when I was trying to do the editing using BMT. I was hoping that by deleting this tmp folder, editing within BMT would work once again. Alas, it does not though. I'm still stuck with both issues.
__________________
Server: AMD Phenom II X6 3.20 GHz ♠ 16 GB RAM (15.7 usable) Capture: HDHomeRun PRIME ♠ Ceton InfiniTV 4 PCIe (Clear-QAM only) Tuning: OpenDCT v0.5.20-RC2 Software: Windows 7 Ultimate 64-bit ♠ SageTV v9.0.12.504 ♠ Java 1.8.0_111 Clients: 4 x STX-HD300 ♠ 3 x STX-HD200 ♠ MacOS Placeshifter Last edited by HokiePerogi; 10-05-2011 at 08:05 AM. Reason: Added findings.... |
#59
|
||||
|
||||
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 |
#60
|
|||
|
|||
Quote:
My SageTV import directories are: P:\Videos and \\PEROGINAS\media\Videos Both of these paths have the file structure of: Code:
...\Videos\ Home Videos Movies 3D Movies ... ... Adult Movies ... ... Bluray Movies ... ... DVD ... ... Other Exercise ... ... Photography ... TV ... ... The current behavior from the code snippet I provided is that ALL titles are being shown from the entire hierarchy. It seems that the "root" vfs option is being ignored or not being specified properly. To put it more simply, when I click on my new view in BMT, it displays the same titles as if I click on the "phoenix.view.source.allimportedvideo" view.
__________________
Server: AMD Phenom II X6 3.20 GHz ♠ 16 GB RAM (15.7 usable) Capture: HDHomeRun PRIME ♠ Ceton InfiniTV 4 PCIe (Clear-QAM only) Tuning: OpenDCT v0.5.20-RC2 Software: Windows 7 Ultimate 64-bit ♠ SageTV v9.0.12.504 ♠ Java 1.8.0_111 Clients: 4 x STX-HD300 ♠ 3 x STX-HD200 ♠ MacOS Placeshifter |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom views and SMMFolders | chrishallowell | Sage My Movies | 3 | 01-28-2011 05:41 AM |
Looking for ideas for setting up kids views | BarkOLounger | SageTV Software | 1 | 06-03-2010 08:24 AM |
Filter Folder Views? | nigfink | SageTV v7 Customizations | 2 | 05-21-2010 11:20 AM |
Multiple Recording or Guide Views? | bbwebb | SageTV Software | 1 | 05-11-2008 08:42 PM |
new display of folder views? | ChePazzo | SageTV Beta Test Software | 2 | 12-09-2006 10:04 PM |