SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v7 Customizations > Batch Metadata Tools
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

Batch Metadata Tools This forums is for discussing the user-created Batch Metadata Tools for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-18-2011, 02:27 AM
hoep hoep is offline
Sage Advanced User
 
Join Date: Sep 2004
Posts: 197
Solved: How to exclude s specific import directory from a view ?

I tried to play a little bit with the vfs views and took the "sage Imports (Combined)" as a basis. The xml-Code is:

Code:
<view name="sagevideoimportsv7" label="Videos" flat="false">
   <option name="children-only" value="true"/>
   <description>View of All Sage Video Sources</description>
   <tag value="video"/>
     <source name="sagefilesystem">
        <option name="content" value="VideosByFolder"/>
     </source>
     <presentation>
        <sort by="title">
            <option name="folders-first" value="true"/>
        </sort>
      </presentation>
</view>
This gives me a goup of folder names which is fine. The folder names are e.g.: "Dokumentationen", "Eltern-BD", "Eltern-DVD"... which are my import folders. Is there a possibility to exclude now "Dokumentationen" with a filter command ?
Thanks for your help.
__________________
Server: AMD Phenomen IIX4 965 Black Edition, 4 GB, 2x Hauppauge HVR-3000, 2x PCTV DiB BDA - native, Terratec S7, Cine S2 (Dual DVBS2), WinTV-Nova usb via DVBLogic, xmltv, 20TB disk arrays

Clients: 3 x MediaMVP, 2 x HD-300, 4 x SageTV Client


Last edited by hoep; 05-18-2011 at 07:15 AM.
Reply With Quote
  #2  
Old 05-18-2011, 07:13 AM
hoep hoep is offline
Sage Advanced User
 
Join Date: Sep 2004
Posts: 197
issue solved: for everybody who is interested:
Code:
<!DOCTYPE vfs SYSTEM "vfs.dtd">
<vfs>
    <views>

        <view name="elternvideos" label="01 - Eltern-Videos" flat="false">
            <option name="children-only" value="true"/>
        
            <description>View of All Sage Video Sources</description>

            <tag value="video"/>

            <view-source name="videos"/>
            <view-source name="dvd"/>
            <view-source name="bluray"/>    
                
            <filter by="filepath" scope="exclude" value="Dokumentationen|Familie|Kinder-BD|Kinder-DVD|Kinder-HD|Kinder-SD|Kinder-Serien|Musik-DVD" />
            

            <presentation level="1">
                                <sort by="title"/>
                        </presentation>
        </view>
    </views>
</vfs>
__________________
Server: AMD Phenomen IIX4 965 Black Edition, 4 GB, 2x Hauppauge HVR-3000, 2x PCTV DiB BDA - native, Terratec S7, Cine S2 (Dual DVBS2), WinTV-Nova usb via DVBLogic, xmltv, 20TB disk arrays

Clients: 3 x MediaMVP, 2 x HD-300, 4 x SageTV Client

Reply With Quote
  #3  
Old 05-18-2011, 07:28 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Unfortunately, you cannot use a filter when using the Sage Import source. If you did apply a filter at the root level, then it would basically flatten the structure, then apply the filter, and as a result, you'd lose the folder structure.

You could try to add a filter to the <presentation> like,

<filter by="title" value="Dokumentationen" scope="exclude"/>

so it might look like this..

Code:
<view name="sagevideoimportsv7" label="Videos" flat="false">
   <option name="children-only" value="true"/>
   <description>View of All Sage Video Sources</description>
   <tag value="video"/>
     <source name="sagefilesystem">
        <option name="content" value="VideosByFolder"/>
     </source>
     <presentation>
        <filter by="title" value="Dokumentationen" scope="exclude"/>
        <sort by="title">
            <option name="folders-first" value="true"/>
        </sort>
      </presentation>
</view>
I don't know if that will work.
Reply With Quote
  #4  
Old 05-18-2011, 08:20 AM
hoep hoep is offline
Sage Advanced User
 
Join Date: Sep 2004
Posts: 197
thanks for our help .. i understand. loose of folder structure was by design .. therfore i did not notice the difference
__________________
Server: AMD Phenomen IIX4 965 Black Edition, 4 GB, 2x Hauppauge HVR-3000, 2x PCTV DiB BDA - native, Terratec S7, Cine S2 (Dual DVBS2), WinTV-Nova usb via DVBLogic, xmltv, 20TB disk arrays

Clients: 3 x MediaMVP, 2 x HD-300, 4 x SageTV Client

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Record Directory Nested in Import Directory jsonnabend SageTV Software 2 08-04-2008 06:59 AM
Adding a UNC Import directory fails with "Invalid Directory" Fastrack SageTV Software 2 03-09-2008 01:11 PM
New Feature: Define Archive to specific directory jominor SageTV Software 10 02-21-2007 07:10 PM
Video directory showing up in Import Video Directory dvd_maniac SageTV Software 5 12-19-2004 09:38 AM
Is it possible to move a file to a specific directory ldavis SageTV Software 0 09-20-2003 08:45 AM


All times are GMT -6. The time now is 01:30 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.