SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations > SageMC Custom Interface
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageMC Custom Interface This forum is for discussing the user-created SageMC custom interface for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-12-2009, 08:48 PM
abc123 abc123 is offline
New Member
 
Join Date: Jul 2009
Location: usa
Posts: 3
Filtered Menus

I am trying to set up some menu filters and no matter what I try it simply won't work. I have tried adding the code shown on the forum and can't get it to work. What I end up with is no videos. For the path I have tried everything I can think of, even copying the path directly out of the sage.properties and it still won't work. This is code I have been trying to add without luck. Any ideas? Thanks

Code:
<internalScreenMenuItem icon="hover_my videos.png" screen="Video Library Folder View" title="Movies">
  <evalExpression>AddStaticContext("PathFilterExprs", new_java_util_ArrayList())</evalExpression>
  <evalExpression>java_util_List_add(PathFilterExprs, "D\:\\Movies")</evalExpression>
  <evalExpression>AddStaticContext("PathFilterExcludes", false)</evalExpression>
</internalScreenMenuItem>
Reply With Quote
  #2  
Old 07-13-2009, 08:56 AM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
ive never used drive paths with filter expressions (all my import folders are UNC paths) but if i remember correctly (reading somewhere in the SMW thread) that you do not need to \ the : character.... so your path would be:

"D:\\Movies"

other then that everything else looks right...
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
Reply With Quote
  #3  
Old 07-13-2009, 11:25 AM
abc123 abc123 is offline
New Member
 
Join Date: Jul 2009
Location: usa
Posts: 3
I tried it like that first and it does not work for some reason. The only reason I tried using the \: is that was the way it was listed in the sage properties as a import directory.

I tired using unc paths as well. I shared a drive on computer I am trying to setup and added it as a import directory in sage. All the videos show up on the normal my videos but nothing on the filtered ones. The path I tried to used was \\xxxx1-pc\o and still it does not work.
Reply With Quote
  #4  
Old 07-13-2009, 11:41 AM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
make sure you \\ all your \ in the path

so your directory should be: \\\\xxxx1-pc\\o
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
Reply With Quote
  #5  
Old 07-13-2009, 12:08 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by abc123 View Post
I am trying to set up some menu filters and no matter what I try it simply won't work. I have tried adding the code shown on the forum and can't get it to work. What I end up with is no videos. For the path I have tried everything I can think of, even copying the path directly out of the sage.properties and it still won't work. This is code I have been trying to add without luck. Any ideas? Thanks

Code:
<internalScreenMenuItem icon="hover_my videos.png" screen="Video Library Folder View" title="Movies">
  <evalExpression>AddStaticContext("PathFilterExprs", new_java_util_ArrayList())</evalExpression>
  <evalExpression>java_util_List_add(PathFilterExprs, "D\:\\Movies")</evalExpression>
  <evalExpression>AddStaticContext("PathFilterExcludes", false)</evalExpression>
</internalScreenMenuItem>

Razor is correct you need
"D:\\Movies"

not
"D\:\\Movies"

Also make sure when you edit that sage is closed and save and then reopen sage.
Reply With Quote
  #6  
Old 07-13-2009, 12:37 PM
abc123 abc123 is offline
New Member
 
Join Date: Jul 2009
Location: usa
Posts: 3
I tried d:\\ again for about the 10th time and still it won't work.

I tried using the unc path of a share with double the \'s and it worked finally. Kind of a half assed way to do it having to share everything on the same pc, but at least it works. Thanks for the help guys
Reply With Quote
  #7  
Old 07-13-2009, 01:13 PM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
there are other good reasons to use unc shares.... if you ever want to add an extender or client to the mix, using unc shares drastically simplifies things. and trust me the way this hobby goes you will definitely want to add clients/extenders to the mix.

anyway glad you got it working.
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
Reply With Quote
  #8  
Old 07-13-2009, 02:24 PM
cslatt's Avatar
cslatt cslatt is offline
Sage Advanced User
 
Join Date: Nov 2005
Posts: 239
What folder were you "importing" in Sage? Was it "D:\" or was it "D:\Movies"?
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
Customization request: Dynamic menus without dynamic menus ;-) owilsky SageTV Customizations 16 07-07-2009 03:33 PM
Filtered menu items. What am I missing? GollyJer SageMC Custom Interface 3 04-21-2008 08:45 PM
Malore menus in 6.2 srothwell SageTV Customizations 2 10-08-2007 06:55 PM
Changing the menus. alan92rttt SageTV Studio 20 01-15-2006 07:46 PM
Animated Menus cmaffia SageTV Software 0 10-16-2005 09:46 AM


All times are GMT -6. The time now is 02:59 AM.


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