Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

Adding App to My Media

friedflixfriedflix Posts: 1,973Members, Plex Pass Plex Pass
Jaaps, is there a way to be able to add an app to the My Media list on the main menu in addition to the libraries? Specifically, I have an apple script that switches back and forth between Plex and EyeTV. The script's name is "Live TV"...i'd love to be able to make that appear as a 'library' within the My Media menu, rather than having to scroll to favorites the select the app or go to Apps/Other Apps and then select it...

Comments

  • jaapsjaaps Posts: 187Members ✭✭
    This is possible I think. Haven't tried it myself but you could do something like this:

    Open Blur/720p/Home.xml

    search for
    <content>
    <item id="1">
    <description>Favorites Menu</description>
    <label>Favorites</label>
    <onclick>Plex.ActivateWindow(Favourites)</onclick>
    <visible>Skin.HasSetting(ShowFavorites)</visible>
    </item>
    </content>
    


    Change it into:
    <content>
    <item id="1">
    <description>Favorites Menu</description>
    <label>Favorites</label>
    <onclick>Plex.ActivateWindow(Favourites)</onclick>
    <visible>Skin.HasSetting(ShowFavorites)</visible>
    </item>
    <item id="2">
    <description>TV Menu</description>
    <label>Live TV</label>
    <onclick>Plex.RunAppleScript(tell application "EyeTVPlexToggle" to activate)</onclick>
    </item>
    </content>
    


    The "Plex.RunAppleScript(tell application "EyeTVPlexToggle" to activate)" part could be different for your setup.
  • friedflixfriedflix Posts: 1,973Members, Plex Pass Plex Pass
    jaaps wrote:

    This is possible I think. Haven't tried it myself but you could do something like this:

    Open Blur/720p/Home.xml

    search for
    <content>
    <item id="1">
    <description>Favorites Menu</description>
    <label>Favorites</label>
    <onclick>Plex.ActivateWindow(Favourites)</onclick>
    <visible>Skin.HasSetting(ShowFavorites)</visible>
    </item>
    </content>
    


    Change it into:
    <content>
    <item id="1">
    <description>Favorites Menu</description>
    <label>Favorites</label>
    <onclick>Plex.ActivateWindow(Favourites)</onclick>
    <visible>Skin.HasSetting(ShowFavorites)</visible>
    </item>
    <item id="2">
    <description>TV Menu</description>
    <label>Live TV</label>
    <onclick>Plex.RunAppleScript(tell application "EyeTVPlexToggle" to activate)</onclick>
    </item>
    </content>
    


    The "Plex.RunAppleScript(tell application "EyeTVPlexToggle" to activate)" part could be different for your setup.


    Jaaps,
    Thanks! My question is that last part, in what way would it be different? The name of the script itself is Live TV btw...
  • friedflixfriedflix Posts: 1,973Members, Plex Pass Plex Pass
    Jaaps,
    one other follow up question:
    1. If i uncheck show favorites on my media will Live TV still show up (i would like it too)

    Thanks again.
  • jaapsjaaps Posts: 187Members ✭✭
    1. Depends on if your applescript is an application or a raw applescript.

    Somethings like this for an application:
    <onclick>Plex.RunAppleScript(tell application "Live TV" to activate)</onclick>

    or somethings like this for a raw script:
    <onclick>Plex.Runscript(Live TV.applescript)</onclick>

    2. It stays visible.
    The "<visible>Skin.HasSetting(ShowFavorites)</visible>" part in item 1 hides the favorites depending on the user settings.
    There is no visible tag with the Live TV item. This means it defaults to visible.
  • friedflixfriedflix Posts: 1,973Members, Plex Pass Plex Pass
    edited November 2010
    Its just a script....so i used the second option, but no dice...clicking on "Live TV" doesn't do anything (FYI, the script is saved in the Applications folder).
  • jaapsjaaps Posts: 187Members ✭✭
    Maybe try this:

    <onclick>Plex.ActivateWindow(MyPrograms,Live TV)</onclick>
  • friedflixfriedflix Posts: 1,973Members, Plex Pass Plex Pass
    Jaaps,
    You rock! That works. The one thing, which doesn't affect funtionality at all, is that Plex first goes to the Add Application page, then it switches as expected. Thanks!
  • speedy jspeedy j Posts: 1Members
    jaaps wrote:

    This is possible I think. Haven't tried it myself but you could do something like this:

    Open Blur/720p/Home.xml

    search for
    &lt;content&gt;
    &lt;item id="1"&gt;
    &lt;description&gt;Favorites Menu&lt;/description&gt;
    &lt;label&gt;Favorites&lt;/label&gt;
    &lt;onclick&gt;Plex.ActivateWindow(Favourites)&lt;/onclick&gt;
    &lt;visible&gt;Skin.HasSetting(ShowFavorites)&lt;/visible&gt;
    &lt;/item&gt;
    &lt;/content&gt;
    


    Change it into:
    &lt;content&gt;
    &lt;item id="1"&gt;
    &lt;description&gt;Favorites Menu&lt;/description&gt;
    &lt;label&gt;Favorites&lt;/label&gt;
    &lt;onclick&gt;Plex.ActivateWindow(Favourites)&lt;/onclick&gt;
    &lt;visible&gt;Skin.HasSetting(ShowFavorites)&lt;/visible&gt;
    &lt;/item&gt;
    &lt;item id="2"&gt;
    &lt;description&gt;TV Menu&lt;/description&gt;
    &lt;label&gt;Live TV&lt;/label&gt;
    &lt;onclick&gt;Plex.RunAppleScript(tell application "EyeTVPlexToggle" to activate)&lt;/onclick&gt;
    &lt;/item&gt;
    &lt;/content&gt;
    


    The "Plex.RunAppleScript(tell application "EyeTVPlexToggle" to activate)" part could be different for your setup.


    jaap,

    is there chance to update the home.xml for the blur_theme under laika?

    i cannot find the Favorites Menu in home.xml, so i can't add the eyetv-app.
Sign In or Register to comment.