|
SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Custom Menus question.
Hi,
I have created a custom menu for family photos and movies using SageMC 16x9 and the BlueTwo skin. However all the photos and films can also be viewed with the general MY Films and My Pictures menu items which I didnt really want. Is it possible to specify which menu item can read specific folders to keep family photos and films seperate from general media. Had a quick look but as usual I can never find the information I want Thanks inadvance for any help provided jaminben |
#2
|
|||
|
|||
Well its obviuosly a stupid question or an easy question where the answers right in front of my face, but I cant see it for looking.
Anyone?? Yes or No will do, just need to know if its possible. Thanks |
#3
|
||||
|
||||
Sound like your import directories are all yes, Go to setup then detailed setup under general then media center import directories click on modify
|
#4
|
|||
|
|||
Quote:
neither stupid nor easy, but if you had mentioned 'SageMC' in your thread title I might have spotted it earlier Regarding your question: yes, you can create two or more menu items that filter on different music and videos directories (this functionality is not yet available for photos, but I'll check if I can get this into the next version) In order to restrict the music or video view to one or more specific directories, you have to edit your dynamic menu definition file and add the following: Code:
<internalScreenMenuItem icon="hover_my videos.png" screen="Video Library Folder View" title="My Personal Videos"> <evalExpression>AddStaticContext("PathFilterExprs", new_java_util_ArrayList())</evalExpression> <evalExpression>java_util_List_add(PathFilterExprs, "\\\\server\\videos\personal")</evalExpression> <evalExpression>AddStaticContext("PathFilterExcludes", false)</evalExpression> </internalScreenMenuItem> Likewise, if you want to show all videos except those from the personal folder, set AddStaticContext("PathFilterExcludes", true) Dirk |
#5
|
|||
|
|||
Excellent,
Thankyou both for the quick replys. I shall go and have a play with this now |
#6
|
|||
|
|||
hmmm, this seems a little hard for me, are there any tutorials which I could use. Could you also point me the direction of the dynamic menu definition file.(cant find it on mine)
Regards jaminben The only one I can find is sagemc_menu.bak, is the correct one? Last edited by jaminben; 09-20-2007 at 09:17 AM. |
#7
|
||||
|
||||
You're looking for sagemc_menu.xml.
Gerry
__________________
Big Gerr _______ Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB. |
#8
|
|||
|
|||
Thanks gplasky
So the default looks like the code below, Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE sageMenu PUBLIC "-//NIELM//DTD SAGEMENU XML 1.4//EN" "http://www.sage-community.org/~nielm/nielm_modules/dynamic_menu/sagemenu_1_3.dtd"> <sageMenu version="1.4"> <menu title="Main"> <internalScreenMenuItem icon="hover_my videos.png" screen="Video Library Folder View" title="Movies"> <evalExpression> </evalExpression> </internalScreenMenuItem> <!-- --> <internalScreenMenuItem icon="hover_my tv.png" screen="My TV" title="Televison"> <evalExpression> </evalExpression> </internalScreenMenuItem> <!-- --> <subMenuItem title="TV Series"> <menu title="TV Series"/> </subMenuItem> <!-- --> <subMenuItem title="Family Archive"> <menu title="Family Archive"> <subMenuItem title="Camcorder"> <menu title="Camcorder"/> </subMenuItem> <!-- --> <subMenuItem title="Photographs"> <menu title="Photographs"/> </subMenuItem> <!-- --> </menu> </subMenuItem> <!-- --> <subMenuItem icon="hover_my explorer.png" title="My Menu"> <menu title="My Menu"> <internalScreenMenuItem screen="Google Video" title="Google Video"> <evalExpression> </evalExpression> </internalScreenMenuItem> <!-- --> <internalScreenMenuItem screen="YouTube Video" title="YouTube"> <evalExpression> </evalExpression> </internalScreenMenuItem> <!-- --> <internalScreenMenuItem screen="Rss News Feeds -- nielm" title="RSS Feeds"> <evalExpression> </evalExpression> </internalScreenMenuItem> <!-- --> <internalScreenMenuItem screen="Video Conversions" title="Video Conversions"> <evalExpression> </evalExpression> </internalScreenMenuItem> <!-- --> <internalScreenMenuItem screen="Parental Controls" title="Parental Controls"> <evalExpression> </evalExpression> </internalScreenMenuItem> <!-- --> <internalScreenMenuItem screen="Setup Menu" title="Settings"> <evalExpression> </evalExpression> </internalScreenMenuItem> <!-- --> </menu> </subMenuItem> <!-- --> </menu> </sageMenu> Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE sageMenu PUBLIC "-//NIELM//DTD SAGEMENU XML 1.4//EN" "http://www.sage-community.org/~nielm/nielm_modules/dynamic_menu/sagemenu_1_3.dtd"> <sageMenu version="1.4"> <menu title="Main"> <internalScreenMenuItem icon="hover_my videos.png" screen="Video Library Folder View" title="Movies"> <evalExpression> </evalExpression> </internalScreenMenuItem> <!-- --> <internalScreenMenuItem icon="hover_my tv.png" screen="My TV" title="Televison"> <evalExpression> </evalExpression> </internalScreenMenuItem> <!-- --> <subMenuItem title="TV Series"> <menu title="TV Series"/> </subMenuItem> <!-- --> <internalScreenMenuItem icon="hover_my videos.png" screen="Video Library Folder View" title="Family Archive"> <evalExpression>AddStaticContext("PathFilterExprs", new_java_util_ArrayList())</evalExpression> <evalExpression>java_util_List_add(PathFilterExprs, "\\\\jaminbenpc\\videos\camcorder")</evalExpression> <evalExpression>AddStaticContext("PathFilterExcludes", false)</evalExpression> </internalScreenMenuItem> </subMenuItem> <!-- --> <subMenuItem title="Photographs"> <menu title="Photographs"/> </subMenuItem> <!-- --> </menu> </subMenuItem> <!-- --> <subMenuItem icon="hover_my explorer.png" title="My Menu"> <menu title="My Menu"> <internalScreenMenuItem screen="Google Video" title="Google Video"> <evalExpression> </evalExpression> </internalScreenMenuItem> <!-- --> <internalScreenMenuItem screen="YouTube Video" title="YouTube"> <evalExpression> </evalExpression> </internalScreenMenuItem> <!-- --> <internalScreenMenuItem screen="Rss News Feeds -- nielm" title="RSS Feeds"> <evalExpression> </evalExpression> </internalScreenMenuItem> <!-- --> <internalScreenMenuItem screen="Video Conversions" title="Video Conversions"> <evalExpression> </evalExpression> </internalScreenMenuItem> <!-- --> <internalScreenMenuItem screen="Parental Controls" title="Parental Controls"> <evalExpression> </evalExpression> </internalScreenMenuItem> <!-- --> <internalScreenMenuItem screen="Setup Menu" title="Settings"> <evalExpression> </evalExpression> </internalScreenMenuItem> <!-- --> </menu> </subMenuItem> <!-- --> </menu> </sageMenu> Cheers jaminben |
#9
|
|||
|
|||
Looks fine, but note that the "Movies" menu will still show *all* of your videos, including those in "\videos\camcorder"... If you want to have two distinct sets of videos, you also need a filter (this time an 'exclude' filter) for the Movies menu:
Code:
<sageMenu version="1.4"> <menu title="Main"> <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, "\\\\jaminbenpc\\videos\camcorder")</evalExpression> <evalExpression>AddStaticContext("PathFilterExcludes", true)</evalExpression> </internalScreenMenuItem> <!-- --> <internalScreenMenuItem icon="hover_my tv.png" screen="My TV" title="Televison"> <evalExpression> </evalExpression> </internalScreenMenuItem> <!-- --> <subMenuItem title="TV Series"> <menu title="TV Series"/> </subMenuItem> <!-- --> <internalScreenMenuItem icon="hover_my videos.png" screen="Video Library Folder View" title="Family Archive"> <evalExpression>AddStaticContext("PathFilterExprs", new_java_util_ArrayList())</evalExpression> <evalExpression>java_util_List_add(PathFilterExprs, "\\\\jaminbenpc\\videos\camcorder")</evalExpression> <evalExpression>AddStaticContext("PathFilterExcludes", false)</evalExpression> </internalScreenMenuItem> Dirk |
#10
|
|||
|
|||
You could proberly have guessed this but it doesnt work
Sage gives the error: Failed to parse XML from c:\program files\sagetv\sagemc menu.xml error at line 22 col 19: The element type "menu" must be terminated by the matching end-tag "</menu>". I've tried various combinations of code, but I'm really just guessing and its a bit like looking for a needle in a haystack. Anyone spot the error and can fix it for me, please Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE sageMenu PUBLIC "-//NIELM//DTD SAGEMENU XML 1.4//EN" "http://www.sage-community.org/~nielm/nielm_modules/dynamic_menu/sagemenu_1_3.dtd"> <sageMenu version="1.4"> <menu title="Main"> <internalScreenMenuItem icon="hover_my videos.png" screen="Video Library Folder View" title="Movies"> <evalExpression> </evalExpression> </internalScreenMenuItem> <!-- --> <internalScreenMenuItem icon="hover_my tv.png" screen="My TV" title="Televison"> <evalExpression> </evalExpression> </internalScreenMenuItem> <!-- --> <subMenuItem title="TV Series"> <menu title="TV Series"/> </subMenuItem> <!-- --> <internalScreenMenuItem icon="hover_my videos.png" screen="Video Library Folder View" title="Family Archive"> <evalExpression>AddStaticContext("PathFilterExprs", new_java_util_ArrayList())</evalExpression> <evalExpression>java_util_List_add(PathFilterExprs, "\\\\jaminbenpc\\Family Archive\Videos")</evalExpression> <evalExpression>AddStaticContext("PathFilterExcludes", false)</evalExpression> </internalScreenMenuItem> </subMenuItem> <!-- --> <subMenuItem title="Photographs"> <menu title="Photographs"/> </subMenuItem> <!-- --> </menu> </subMenuItem> <!-- --> <subMenuItem icon="hover_my explorer.png" title="My Menu"> <menu title="My Menu"> <internalScreenMenuItem screen="Google Video" title="Google Video"> <evalExpression> </evalExpression> </internalScreenMenuItem> <!-- --> <internalScreenMenuItem screen="YouTube Video" title="YouTube"> <evalExpression> </evalExpression> </internalScreenMenuItem> <!-- --> <internalScreenMenuItem screen="Rss News Feeds -- nielm" title="RSS Feeds"> <evalExpression> </evalExpression> </internalScreenMenuItem> <!-- --> <internalScreenMenuItem screen="Video Conversions" title="Video Conversions"> <evalExpression> </evalExpression> </internalScreenMenuItem> <!-- --> <internalScreenMenuItem screen="Parental Controls" title="Parental Controls"> <evalExpression> </evalExpression> </internalScreenMenuItem> <!-- --> <internalScreenMenuItem screen="Setup Menu" title="Settings"> <evalExpression> </evalExpression> </internalScreenMenuItem> <!-- --> </menu> </subMenuItem> <!-- --> </menu> </sageMenu> |
#11
|
|||
|
|||
Quote:
Dirk |
#12
|
|||
|
|||
Yep that appears to be working, thankyou. However none of the films showup. They do however work with the normal video section so I know the shares are working (I'll move onto filtering once I have the other part working).
I'm asuming the below code line refrences where my files are stored which is - G:\family\videos. I also have a UNC setup within Sage which points to - \\jaminbenpc\family\videos. <evalExpression>java_util_List_add(PathFilterExprs, "\\\\jaminbenpc\\family\videos")</evalExpression> Any ideas what I need to do other than this? Cheers jaminben Last edited by jaminben; 09-20-2007 at 02:44 PM. |
#13
|
|||
|
|||
Quote:
Dirk |
#14
|
|||
|
|||
I used \\jaminben\family\videos for the SageTV import directory. I have also tried changing the file names of all the paths to lower case and removed the space from "family archive" to make it just "family". I've also redone the sharing of the folders and recreated an import directory within sagetv after renaming the directorys etc.
|
#15
|
|||
|
|||
Quote:
Dirk |
#16
|
|||
|
|||
Quote:
SageMC STV ersion : 6.3.3c |
#17
|
|||
|
|||
Quote:
Can you create a debug log and post it ? - shut down UI - add/edit debug_logging=TRUE plugins/df/debug_level=1 to your sagetv property file (Sage.properties, or SageClient.properties if you are using a client) - restart UI - select the filtered menu - attach sagetv_0.txt (or sagetvclient_0.txt) Dirk |
#18
|
|||
|
|||
Ok , I've attached the log, hopefully i did it right
Thanks for helping me out like this Maybe I didnt do it right, Attached another file Last edited by jaminben; 09-20-2007 at 03:45 PM. |
#19
|
|||
|
|||
Quote:
Code:
java_util_List_add(PathFilterExprs, "\\\\jaminbenpc\\Family Archive\\Videos") Code:
java_util_List_add(PathFilterExprs, "\\\\jaminbenpc\\Family Archive\Videos") |
#20
|
|||
|
|||
Yep, Thats got the little bleeder working
Now before we get too excited I've also added true to the exclude filter to cut out the general media from this menu. Guess what? It dont work for me... Heres the lines from the code to which I added true - <internalScreenMenuItem icon="hover_my videos.png" screen="Video Library Folder View" title="Family Archive"> <evalExpression>AddStaticContext("PathFilterExprs", new_java_util_ArrayList())</evalExpression> <evalExpression>java_util_List_add(PathFilterExprs, "\\\\jaminbenpc\\family\\videos")</evalExpression> <evalExpression>AddStaticContext("PathFilterExcludes", true)</evalExpression> Should this not also work? Soo close to the finish line now |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using Neil's Custom Menus with SageMC? | lordmeatball | SageMC Custom Interface | 6 | 11-06-2006 02:50 PM |
Launching external programs w/ Nielm custom menus import | feilerd | SageTV Customizations | 0 | 02-26-2006 03:58 PM |
Just Another Custom Recording Quality Question | dvd_maniac | SageTV Software | 4 | 01-18-2006 05:09 PM |
STV Import: Malore's custom guide menus for SageTV3 (26/jul/2005) | nielm | SageTV Customizations | 25 | 09-24-2005 11:00 PM |
Custom Backgrounds and Menus | Lady Avatar | General Discussion | 0 | 04-05-2003 02:02 PM |