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 08-10-2009, 10:53 PM
cowboyway cowboyway is offline
Sage User
 
Join Date: Aug 2009
Posts: 44
Add menu item for My Podcasts?

I'm trying to create a menu item in sagemc that will display a list of recent podcasts already downloaded into a shared folder i have. I see from other similar postings this should be possible but don't think i have the right "screen"?!

I'll note the UNC path i have referenced is correct so that shouldn't be the issue. Here's a snipit from my sagemc_menu.xml file.

<internalScreenMenuItem icon="G:\media_root\Shared\podcast\Somepodcast\image.png" screen="MyFileBrowser" title="My Podcasts">
<evalExpression>AddStaticContext("PathFilterExprs", new_java_util_ArrayList())</evalExpression>
<evalExpression>java_util_List_add(PathFilterExprs, "\\\\SERVER\\Shared\\podcast\\Somepodcast")</evalExpression>
<evalExpression>AddStaticContext("PathFilterExcludes", false)</evalExpression>
</internalScreenMenuItem>

I'm not sure if the screen "MyFileBrowser" should be used or "My Music"? I've tried both and guessed at what might work based on a video/movie example elsewhere in the forum. It seems to just dump me into a folder a few levels above... rather then display a list of mp3's.

Any help would be appreciated. Thanks!
Reply With Quote
  #2  
Old 08-11-2009, 07:27 AM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
i think the pathfilterexpression MUST be a direct import directory and not a sub folder of an import directory. Is "\\\\SERVER\\Shared\\podcast\\Somepodcast" a direct import directory (ie if you go to SageTV setup where you setup your video import directories is your folder listed there)?
__________________
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 08-11-2009, 08:43 AM
cowboyway cowboyway is offline
Sage User
 
Join Date: Aug 2009
Posts: 44
Quote:
Originally Posted by razrsharpe View Post
i think the pathfilterexpression MUST be a direct import directory and not a sub folder of an import directory. Is "\\\\SERVER\\Shared\\podcast\\Somepodcast" a direct import directory (ie if you go to SageTV setup where you setup your video import directories is your folder listed there)?
Actually no it isn't.

\\\\SERVER\\Shared\\podcast

is mapped as an import directory. I can change that if necessary (assuming i'm pursuing this correctly). On a related note, which "screen" would be the best in this case?

Additionally, some of my podcasts are broken down into hour long segments per show (i.e. 3 hour long mp3 files for a 3 hour show). I've seen vista mc somehow know that all three were part of a single show and played them back to back without user intervention. Can sage do that? Would that require a playlist per day in this case?
Reply With Quote
  #4  
Old 08-11-2009, 08:48 AM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by cowboyway View Post
Actually no it isn't.

\\\\SERVER\\Shared\\podcast

is mapped as an import directory. I can change that if necessary (assuming i'm pursuing this correctly).
its worth a shot to test... easy enough to change.. but i remember some noise awhile back that the pathfilterexpression MUST be an import directory....

Quote:
On a related note, which "screen" would be the best in this case?
im not sure if the filebrowser screen is intended to be a full screen (rather then just a popup)... my gut says the My Music screen is the one you want.... but would require some playing

Quote:
Additionally, some of my podcasts are broken down into hour long segments per show (i.e. 3 hour long mp3 files for a 3 hour show). I've seen vista mc somehow know that all three were part of a single show and played them back to back without user intervention. Can sage do that? Would that require a playlist per day in this case?
you would need a playlist... i think... although with the music screens it might just auto play the next "song" in the folder... again not sure because i dont really use sage for music yet.
__________________
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 08-11-2009, 08:39 PM
cowboyway cowboyway is offline
Sage User
 
Join Date: Aug 2009
Posts: 44
I changed the path in my config file to the shorter path that is set as an import folder (podcast). It doesn't appear to do anything different. All i see is a window with both of my import folders listed.

Instead could i filter based on meta data like Artist? If i manually set the filters and sorting to get what i want i do it like this:

View by Album
Sort by Time
Filter by Genre = Podcast

If so what settings would use for that to get button on the main menu?

Last edited by cowboyway; 08-11-2009 at 08:43 PM.
Reply With Quote
  #6  
Old 08-12-2009, 07:07 AM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by cowboyway View Post
I changed the path in my config file to the shorter path that is set as an import folder (podcast). It doesn't appear to do anything different. All i see is a window with both of my import folders listed.
its possible that the My Music screens dont support PathFilterExpressions... not sure on that one... would have to dig into to Studio (the SageTV UI programming language) and look at the My Music code to see if PathFilterExpressions work in there.

Quote:
Instead could i filter based on meta data like Artist? If i manually set the filters and sorting to get what i want i do it like this:

View by Album
Sort by Time
Filter by Genre = Podcast

If so what settings would use for that to get button on the main menu?
Yes you can do all that but would probably require customization and coding within Studio to get the filtering/sorting the way you want....

On second thought there may be settings you can set in the menu.xml file to preselect those "View" settings because you can manually enter the My Music screen and set those settings correct? I don't know what those settings are off the top of my head though.
__________________
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
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
Menu item disappeared sleonard SageTV Customizations 2 02-27-2009 12:01 AM
exit menu item on main menu 49studebaker SageMC Custom Interface 1 11-14-2008 03:27 AM
Modifying Screen Page with menu item Brent SageMC Custom Interface 2 08-13-2008 01:13 PM
Menu item will not stay after exiting SageTV Andrew54 SageMC Custom Interface 2 04-11-2008 03:20 PM
Add menu item with studio jlabrue SageTV Beta Test Software 4 06-30-2007 08:44 AM


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


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