Sign up here and you can log into the forum!

Plugin: HomePageAddons - YouTube and Pandora

The WDTVExt plugin depot. Plugins/libraries/code only

Re: Plugin: HomePageAddons - YouTube and Pandora   

Postby davron94 » Wed Jan 05, 2011 10:02 pm

antisuck wrote:Open it with a text editor, not with whatever Windows wants to run it with.


Thank you, thank you! that worked! I'll try to reload the plugin.
davron94
DLX'er
 
Posts: 182
Joined: Tue Aug 10, 2010 10:26 am

Re: Plugin: HomePageAddons - YouTube and Pandora   

Postby davron94 » Mon Dec 26, 2011 9:49 pm

tkorth wrote:Here is a pair of plugins that add YouTube and Pandora menu selections to the main menu.

HomePagePandora.plugin.js
Adds a Pandora icon to the main menu that starts Pandora immediately when clicked.
This plugin needs to be customized with your Pandora login email address before it will work. See the Readme.txt

HomePageYouTube.plugin.js
This will add a YouTube icon to the main menu that will open the YouTube menu.

Get both from here:
http://www.megaupload.com/?d=LZ44Y4L6

*******
recliq let me know there was a much easier way to put submenu items on the Top Menu. See here:
http://forum.wdlxtv.com/viewtopic.php?f=46&t=954#p6970









Is there a known bug with the Pandora addon? after loading the plugin it works just fine from the homepage. As soon as I power down the unit and repower again, it will not pull Pandora from the homepage. I have to go into Music>Pandora to load the website. Is there any way to fix this? I have to reboot the unit every time I want it to work properly after shutting down. I am using B-rad's 1.02.21 0.5.1.1. on a WD Live.

thanks,
davron94
DLX'er
 
Posts: 182
Joined: Tue Aug 10, 2010 10:26 am

Re: Plugin: HomePageAddons - YouTube and Pandora   

Postby davron94 » Thu Dec 29, 2011 10:30 am

Is there a known bug with the Pandora addon? after loading the plugin it works just fine from the homepage. As soon as I power down the unit and repower again, it will not pull Pandora from the homepage. I have to go into Music>Pandora to load the website. Is there any way to fix this? I have to reboot the unit every time I want it to work properly after shutting down. I am using B-rad's 1.02.21 0.5.1.1. on a WD Live.

thanks,

davron94
davron94
DLX'er
 
Posts: 182
Joined: Tue Aug 10, 2010 10:26 am

Re: Plugin: HomePageAddons - YouTube and Pandora   

Postby leetwanker » Mon Jan 12, 2015 11:24 pm

Can someone rehost HomePagePandora.plugin.js or post the code? Seems megaupload = DOA.

tkorth wrote:Here is a pair of plugins that add YouTube and Pandora menu selections to the main menu.

HomePagePandora.plugin.js
Adds a Pandora icon to the main menu that starts Pandora immediately when clicked.
This plugin needs to be customized with your Pandora login email address before it will work. See the Readme.txt

HomePageYouTube.plugin.js
This will add a YouTube icon to the main menu that will open the YouTube menu.

Get both from here:
http://www.megaupload.com/?d=LZ44Y4L6

*******
recliq let me know there was a much easier way to put submenu items on the Top Menu. See here:
http://forum.wdlxtv.com/viewtopic.php?f=46&t=954#p6970

leetwanker
DLX'er
 
Posts: 101
Joined: Sat Dec 08, 2012 7:52 am

Re: Plugin: HomePageAddons - YouTube and Pandora   

Postby recliq » Tue Jan 13, 2015 5:04 am

Read the posts from the link in your paste and you will be able to create this plugin yourself (it's the most simple plugin one can write for WDTVExt).
Some more help on the wiki:
http://wiki.wdlxtv.com/DevelopWDTVExtPlugin
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: Plugin: HomePageAddons - YouTube and Pandora   

Postby leetwanker » Tue Jan 13, 2015 5:47 am

recliq wrote:Read the posts from the link in your paste and you will be able to create this plugin yourself (it's the most simple plugin one can write for WDTVExt).
Some more help on the wiki:
http://wiki.wdlxtv.com/DevelopWDTVExtPlugin


Well, I've tried, I swear I have. I've written in the Pandora code in it's own script like tkorth wrote it. I tried adding it into your Reboot.plugin like the rest of them are written. I've even tried adding it into the MediaFolder.plugin like tkorth mentioned. bleh

Reboot.plugin exerpt
Code: Select all
   // hide Photos top menu
   Menu.Top["$$Photos"].visible = false
   
   // add Pandora to top level menu
   Menu.Top.addChild(Menu.top["$$Music"]["$$Pandora"]["user@server"])
   
   traceln("RebootPlugin.doBuildMenus... done.")
}


PandoraMenu.plugin.js that I cobbled together
Code: Select all
/*
# meta-name="Pandora Menu"
# meta-desc="Add Pandora to Top Menu"
# meta-author="recliq"
# meta-date="2010-06-24"
# meta-version="1.0.0"
# meta-type="wdtvext"
# meta-url="http://"
# meta-filename="PandoraMenu.plugin.js"
*/

var myPandora = new Menu("My Pandora","$$My Pandora","/osd/image/villa/home_pandora_icon_n.png","/osd/image/villa/home_pandora_icon_f.png", true);

MediaFolderPlugin.prototype.doBuildMenus = function() {
   traceln("MediaFolder: [ doBuildMenus ]")
   myPandora.handler = function(){
      Menu.Top["$$Music"]["$$Pandora"]["user@server"].handler()
   };
Menu.Top.addChild(myPandora);


MediaFolder.plugin.js exerpt
Code: Select all
MediaFolderPlugin.prototype.doBuildMenus = function() {
   traceln("MediaFolder: [ doBuildMenus ]")
   Menu.Top["$$Video"].handler = function() {
      Menu.Top["$$Video"]["$$Local Drives"]["$$Folders"].handler()
   }
   Menu.Top["$$Video"]["$$Local Drives"].title = "Movies"
   Menu.Top["$$Video"]["$$Local Drives"].image = Menu.Top["$$Video"]["$$Local Drives"]["$$Folders"].image
   Menu.Top["$$Video"]["$$Local Drives"].focusedImage = Menu.Top["$$Video"]["$$Local Drives"]["$$Folders"].focusedImage
   
}

var myPandora = new Menu("My Pandora","$$My Pandora","/osd/image/villa/home_pandora_icon_n.png","/osd/image/villa/home_pandora_icon_f.png", true);

   myPandora.handler = function(){
      Menu.Top["$$Music"]["$$Pandora"]["user@server"].handler()
   };
Menu.Top.addChild(myPandora);

MediaFolderPlugin.instance = new MediaFolderPlugin(scriptPath)
Plugin.registerPlugin(MediaFolderPlugin.instance)
traceln("MediaFolder: End loading MediaFolder plugin")


I'm wise enough to know when I'm out of my depth, I'm not sure where I've gone wrong but I've bungled it all up somehow! Teach me the error of my ways, good master, lest I be left in darkness forevermore.
Last edited by recliq on Tue Jan 13, 2015 5:58 am, edited 1 time in total.
Reason: fixed quoting
1.02.21_V.WDLXTV_LIVE-0.5.2.0
leetwanker
DLX'er
 
Posts: 101
Joined: Sat Dec 08, 2012 7:52 am

Re: Plugin: HomePageAddons - YouTube and Pandora   

Postby recliq » Tue Jan 13, 2015 5:57 am

You can't link to a list item within the pandora section as you can't link to a folder inside all drives. You're stuck one level above the dest folder you intetnd to use and there's nothing we can do about that because dmaosd compiles those list entries AFTER the plugin code to generate the menus is executed, so when you rebuild your menus in the plugin there is no eg. "user@host" menu entry in pandora.
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: Plugin: HomePageAddons - YouTube and Pandora   

Postby leetwanker » Tue Jan 13, 2015 6:01 am

recliq wrote:You can't link to a list item within the pandora section as you can't link to a folder inside all drives. You're stuck one level above the dest folder you intetnd to use and there's nothing we can do about that because dmaosd compiles those list entries AFTER the plugin code to generate the menus is executed, so when you rebuild your menus in the plugin there is no eg. "user@host" menu entry in pandora.



The user@server in my scripts is just where I have my email address in my scripts to log into Pandora. Just didn't want the spambots to find my email address from my posts.
1.02.21_V.WDLXTV_LIVE-0.5.2.0
leetwanker
DLX'er
 
Posts: 101
Joined: Sat Dec 08, 2012 7:52 am

Re: Plugin: HomePageAddons - YouTube and Pandora   

Postby leetwanker » Tue Jan 13, 2015 6:20 am

I guess I wasn't that far off afterall. Here's my working PandoraMenu.plugin.js plugin:

Code: Select all
/*
# meta-name="Pandora Menu"
# meta-desc="Add Pandora to Top Menu"
# meta-author="leetwanker"
# meta-date="2015-01-13"
# meta-version="1.0.0"
# meta-type="wdtvext"
# meta-url="http://"
# meta-filename="PandoraMenu.plugin.js"
*/

traceln("Start loading PandoraMenu plugin")

function PandoraMenuPlugin(path) {
    this.rootPath = path;
    traceln("PandoraMenu plugin : base path is " + this.rootPath);
}

PandoraMenuPlugin.prototype = new Plugin()
PandoraMenuPlugin.prototype.constructor = PandoraMenuPlugin;

PandoraMenuPlugin.prototype.doBuildMenus = function() {
   traceln("PandoraMenuPlugin.doBuildMenus...");

   //add Pandora
   var topMenu = new Menu("My Pandora", "$$My Pandora", "/osd/image/villa/home_pandora_icon_n.png","/osd/image/villa/home_pandora_icon_f.png", true);
   Menu.Top.addChild(topMenu);
   topMenu.handler = function(){
    Menu.Top["$$Music"]["$$Pandora"]["pandoralogin@email.com"].handler()
    }
      traceln("PandoraMenuPlugin.doBuildMenus... done.")
}
   
   
   
PandoraMenuPlugin.instance = new PandoraMenuPlugin(scriptPath)
Plugin.registerPlugin(PandoraMenuPlugin.instance)
traceln("End loading PandoraMenu plugin")
1.02.21_V.WDLXTV_LIVE-0.5.2.0
leetwanker
DLX'er
 
Posts: 101
Joined: Sat Dec 08, 2012 7:52 am

Re: Plugin: HomePageAddons - YouTube and Pandora   

Postby mad_ady » Tue Jan 13, 2015 11:03 am

Nice tricks! I had no idea you could do this. I may try them on my wdtv as well (how did I live without them all these years?) :lol:
User avatar
mad_ady
Developer
 
Posts: 4522
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

PreviousNext

Return to WDTVExt plugins

Who is online

Users browsing this forum: No registered users and 2 guests