|
Batch Metadata Tools This forums is for discussing the user-created Batch Metadata Tools for SageTV. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
Filter by path
So I am neck deep into VFS and I am blown away how useful it is. I've been creating views all evening. I've come up with 2 questions. I was wondering if there was a way to filter by path?
Specifically I am working on sports views. My sports are in: //<servername>/media/Sports/<name of sport> Sage import path: //<servername>/media So something like: Code:
<filter by="path"> <option name="scope" value="media/Sports/Football"/> <option name="scope" value="include"/> </filter> Code:
<view-source name="phoenix.view.primary.importedtv"/> <filter by="genre" value="Mature"> <option name="scope" value="exclude"/> </filter> <filter by="watched"> <option name="scope" value="exclude"/> </filter> Thanks! |
#2
|
||||
|
||||
The filter by path problem that you mention might be solvable by using the "bookmark" or "root" behaviour of a view.
bookmark and root options are used to position the view automatically after creation... and the difference is that root will make the folder path of the view to be the root (ie, user cannot navigate up). Here's a view that I use to point to where I put new movies before I organize them. Code:
<view name="sls_newmovies" label="New Movies" flat="false"> <option name="bookmark" value="/Movies/New"/> <option name="children-only" value="true"/> <description>Movies in the New folder</description> <tag value="video"/> <view-source name="phoenix.view.default.videofolders"/> </view> Check out the VFS page for a list of filters/sorters/groupers/sources, etc... This list may be a little out of date... i may need to generate an updated version with the newer list of filters, etc. For multiple Filters... You cannot put multiple filter children in a View. You can mimic the behaviour if you create a new "filter" in the <filters> section that describes it's filters... For example the missing metada filter looks like this... Code:
<item-group name="missingmetadata-ext" label="Missing Metadata extended Filter" mode="and"> <filter by="homevideos" scope="exclude"/> <filter by="missingmetadata"/> <tag value="video"/> <tag value="tv"/> </item-group> Here's a link to the x-vfs.xml file for reference... check the <filters> section.
__________________
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
|
||||
|
||||
Awesome, thanks again! I have some xmls to play with tomorrow .
|
#4
|
||||
|
||||
Also for certain types of filtering you can look at the PQL (Phoenix Query Language) as well. You can do some pretty complex queries against the metadata, but unfortunately you can access fields like "watched" since that is not a metadata field
__________________
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
|
||||
|
||||
Holy crap Stuckless, this is like a full blown CMS system. Is there anything you didn't think to include? Looking forward to diving into PQL tonight.
|
#6
|
||||
|
||||
Something else to keep in mind when you are using BMT is that there is an undocumented "long press" operation for a media file. So, when you are browsing a view, if you long press/click on the item it will give a menu of operations for that specific item, such as, delete it, set watch, and one of my favorites, video thumbnails. I used to use the video thumbnails to look at a recording to see if it was corrupted/correct, back when my hdpvr was giving my issues (although I haven't had to use it for some time now).
__________________
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
|
||||
|
||||
Thanks! This is a very cool little hidden pop up. Video thumbnails and debugged metadata details is beyond great.
|
#8
|
|||
|
|||
Can anyone shed some light on how to install the little xml snippet above to obtain a different view in BMT? I'd also very much like to create a few views that are rooted at specific points of a remote filesystem.
__________________
Bruno Twisted Melon Inc. While you're clicking, check out my Mini Theater custom build. |
#9
|
||||
|
||||
Here is one I did:
Code:
<!DOCTYPE vfs SYSTEM "vfs.dtd"> <vfs> <views> <view name="silkmovlang" label="1Silk Foreign Movies by Language" flat="true"> <tag value="movie"/> <view-source name="phoenix.view.source.allimportedvideo"/> <filter by="filepath"> <option name="use-regex-matching" value="true"/> <option name="value" value="Movies\\Foreign Movies"/> </filter> <presentation level="1"> <group by="metadata"> <option name="empty-foldername" value="Unknown"/> <option name="field" value="Language"/> </group> <sort by="title"> <option name="sort-order" value="asc"/> <option name="folders-first" value="false"/> </sort> </presentation> <presentation level="2"> <group by="title"> <option name="prune-single-item-groups" value="true"/> </group> <sort by="title"> <option name="sort-order" value="asc"/> <option name="folders-first" value="false"/> <option name="ignore-all" value="true"/> </sort> </presentation> <presentation level="3"> <sort by="title"> <option name="sort-order" value="asc"/> <option name="folders-first" value="false"/> <option name="ignore-all" value="true"/> </sort> </presentation> </view> </views> </vfs> Code:
<filter by="filepath"> <option name="use-regex-matching" value="true"/> <option name="value" value="Movies\\Foreign Movies"/> </filter> Last edited by silkshadow; 11-05-2012 at 01:45 PM. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Menus with Multiple path filter expression | wirecreative | SageMC Custom Interface | 9 | 01-26-2010 05:55 AM |
Path | sam.griffin.bht | SageTV Studio | 9 | 06-23-2009 11:21 AM |
Multiple Path Filter Issue | Skirge01 | SageMC Custom Interface | 8 | 04-20-2009 08:15 PM |
UNC path help | APillowOfClouds | SageTV Software | 12 | 02-24-2009 01:25 AM |
what is the path? | rnewman | SageTV Software | 5 | 06-19-2007 05:02 PM |