|
SageMC Custom Interface This forum is for discussing the user-created SageMC custom interface for SageTV. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Main Menu link to folder?
Hi,
I just started using SageTV and SageMC. How can I link an item on the main menu to a specific media folder (that is, a shared folder with video files)? |
#2
|
|||
|
|||
see if this helps (and the rest of that thread too...):
http://forums.sagetv.com/forums/show...3&postcount=21
__________________
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 |
#3
|
|||
|
|||
Thanks. I'm looking at it but I haven't gotten anything to work, yet. I don't understand why I can't seem to find clear documentation for this kind of thing?
There's this example: Code:
<evalExpression>AddStaticContext("PathFilterExprs", new_java_util_ArrayList())</evalExpression> <evalExpression>java_util_List_add(PathFilterExprs, "V:\\Imported-Video\\Restricted")</evalExpression> <evalExpression>AddStaticContext("PathFilterExcludes", true)</evalExpression> Code:
<evalExpression>AddGlobalContext("CurrentVideoBrowserFolder", "Kids/")</evalExpression> Code:
<evalExpression>AddGlobalContext("CurrentVideoBrowserFolder", new_java_io_File("\\\\mediaserver\\media\\Video\\Kids"))</evalExpression> |
#4
|
|||
|
|||
I should probably add that I want to point to a subfolder of a folder that is in the media library.
Eg: This folder is in the media library (includes subfolders) c:\video and I want to add a direct menu item to c:\video\movies |
#5
|
|||
|
|||
Quote:
Path filter expressions MUST be import folders (and they must match the case exactly). So if you want a menu link to c:\video\movies that needs to be an import folder. And this is the code you want. If you follow the write up in the post i linked to previously that should get you all the syntax you need. Code:
<evalExpression>AddStaticContext("PathFilterExprs", new_java_util_ArrayList())</evalExpression> <evalExpression>java_util_List_add(PathFilterExprs, "V:\\Imported-Video\\Restricted")</evalExpression> <evalExpression>AddStaticContext("PathFilterExcludes", true)</evalExpression>
__________________
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 |
#6
|
|||
|
|||
Are you sure you can't? Where are these definitions found? I'm still curious about 'CurrentVideoFolder'.
In any case, though, it's not a big deal. I probably won't have more than a couple folders to share, anyway. So, I'll just go ahead and set it up that way. Thanks! |
#7
|
|||
|
|||
I'm not 100% sure because I didn't write the filtering code but that is my understanding and my experience with pathfilterexpressions. The two main stumbling blocks for using them seem to be: the folder must be an import folder, and it's case must match the import directory exactly
Quote:
__________________
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 |
#8
|
|||
|
|||
Quote:
As for CurrentFolder that is an attribute you can set in pathfilterexpressions but going straight to the folder would achieve the same results as Razor said. |
#9
|
|||
|
|||
Thanks for the replies. I just tried adding the path I am using and it still doesn't work, though. I typed it exactly as I see on the TV (after adding it to video folders):
<evalExpression>AddStaticContext("PathFilterExprs", new_java_util_ArrayList())</evalExpression> <evalExpression>java_util_List_add("PathFilterExprs", "D:\\Videos\\Movies")</evalExpression> <evalExpression>AddStaticContext("PathFilterExcludes", false)</evalExpression> PLUCKYHD That makes sense except that Sage can obviously get to subfolders in an added folder or I wouldn't be able to browse anything. So, I don't see why I should need to add a folder that is already there (essentially). In any case, it's not working, at this point... Last edited by flightman; 09-08-2009 at 07:30 PM. |
#10
|
|||
|
|||
that looks right... can you post the full menu snippet for the video library... the line before and after in your sagemc_menu.xml?
one thing to try... (someone else just had this issue a couple days ago)
__________________
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 |
#11
|
|||
|
|||
Hmm I tried that.. still nothing!
Here is the entry as I have it: <internalScreenMenuItem icon="hover_dvd.png" screen="Video Library Folder View" title="Movies"> <evalExpression>AddStaticContext("PathFilterExprs", new_java_util_ArrayList())</evalExpression> <evalExpression>java_util_List_add("PathFilterExprs", "V:\\DVDs")</evalExpression> <evalExpression>AddStaticContext("PathFilterExcludes", false)</evalExpression> </internalScreenMenuItem> That is definitely the right path. |
#12
|
||||
|
||||
Check to make sure that the path is EXACTLY the same as it shows up in the sage.properties file's "seeker/archive_directory" property.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
#13
|
|||
|
|||
did you try lowercase 'V'... (grasping at straws)
or switch to using UNC paths... i don't think i ever got local paths to work with the path filter expressions so therefore (and for the whole server/client reasons) i use UNC paths exclusively
__________________
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 |
#14
|
||||
|
||||
not sure, but the : may also need to be excaped.. (V\:\\DVDs) regarldess, razr's suggestion for using UNC paths is really the universally approved way of mapping folders with Sage.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer) unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers. Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA. Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S Other Clients: Mi Box in Master Bedroom, HD-200 in kids room |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
"Back to Main Menu" Link | thecgmguy | SageMC Custom Interface | 2 | 12-20-2008 01:44 AM |
exit menu item on main menu | 49studebaker | SageMC Custom Interface | 1 | 11-14-2008 03:27 AM |
How do you link a menu? | SageGk | SageMC Custom Interface | 1 | 04-03-2008 09:32 PM |
Link Animations to Menu Items? | jagee23 | SageTV Customizations | 2 | 07-24-2006 07:03 AM |
Where can I find the menu title theme (Main Menu, Program Guide, Setup Menu, etc) | mkanet | SageTV Studio | 5 | 11-11-2005 04:55 AM |