Could be added there in Youtube setting in Plugins item for Display/Hide Youtube on main menu ?
Why must I to have it there on main menu ?
Posted 26 January 2014 - 10:22
Yes you are so right.
I already did a try to move the item to the blue button menu, but it resulted in a GSOD. I'm not good at python/enigma.
If you can make a patch, I'd happily apply it!
* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.
Posted 26 January 2014 - 16:23
Traceback (most recent call last):
File "/usr/lib/enigma2/python/mytest.py", line 191, in processDelay
callback(*retval)
File "/usr/lib/enigma2/python/Screens/InfoBarGenerics.py", line 1833, in extensionCallback
File "/usr/lib/enigma2/python/Tools/BoundFunction.py", line 9, in __call__
File "/usr/lib/enigma2/python/Screens/InfoBarGenerics.py", line 905, in runPlugin
TypeError: start_menu_main() takes exactly 1 argument (0 given)
... when I tried run it from Extended menu. GSOD , then is for little time visible channel EPG or what, restart E2
may be, must be call from own "main" function for Extended. I will see,
Edited by ims, 26 January 2014 - 16:27.
Posted 26 January 2014 - 16:26
Yes that is the exact error I got when I tried the same.
* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.
Posted 27 January 2014 - 15:02
The source has been changed by vuplus in the meantime. I've tried to make a patch, can you please check if this is exact the changes you made?
--- a/plugin.py 2014-01-27 14:52:55.213446901 +0100 +++ b/plugin.py 2014-01-26 16:38:52.000000000 +0100 @@ -2226,6 +2235,7 @@ config.plugins.youtubetv = ConfigSubsection() config.plugins.youtubetv.showhelp = ConfigYesNo(default = False) config.plugins.youtubetv.uri = ConfigText(default = "http://www.youtube.com/tv", visible_width = 50, fixed_size = False) +config.plugins.youtubetv.onMainMenu = ConfigYesNo(default = False) class YoutubeTVWindow(Screen, HelpableScreen): skin = """ <screen name="YoutubeTVWindow" position="center,center" size="550,160" title="Start YouTube TV" > @@ -2364,8 +2374,10 @@ self.menulist = [] entryUri = getConfigListEntry(_("YouTube TV URL"), config.plugins.youtubetv.uri) entryShowHelp = getConfigListEntry(_("Do not show YouTube TV Starter again"), config.plugins.youtubetv.showhelp) + entryOnMainMenu = getConfigListEntry(_("Display YouTube in main menu"), config.plugins.youtubetv.onMainMenu) self.menulist.append(entryUri) self.menulist.append(entryShowHelp) + self.menulist.append(entryOnMainMenu) self["config"].list = self.menulist self["config"].l.setList(self.menulist) @@ -2458,7 +2468,7 @@ session.open(YoutubeTVSettings) def start_menu_main(menuid, **kwargs): - if menuid == "mainmenu": + if menuid == "mainmenu" and config.plugins.youtubetv.onMainMenu.getValue(): return [(_("YouTube TV"), showYoutubeTV, "youtube_tv", 46)] return [] @@ -2490,6 +2500,7 @@ l = [] l.append(PluginDescriptor(where=PluginDescriptor.WHERE_AUTOSTART, fnc=auto_start_main)) l.append(PluginDescriptor(name=_("YouTube TV"), where=PluginDescriptor.WHERE_MENU, fnc=start_menu_main)) + l.append(PluginDescriptor(name=_("YouTube TV"), where=PluginDescriptor.WHERE_EXTENSIONSMENU, fnc=showYoutubeTV)) l.append(PluginDescriptor(name=_("YouTube TV Settings"), where=PluginDescriptor.WHERE_PLUGINMENU, fnc=youtube_setting_main)) l.append(PluginDescriptor(where=PluginDescriptor.WHERE_SESSIONSTART, needsRestart=True, fnc=session_start_main, weight=-10)) l.append(PluginDescriptor(name=_("HbbTV Applications"), where=PluginDescriptor.WHERE_EXTENSIONSMENU, needsRestart=True, fnc=plugin_extension_start_application))
* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.
Posted 27 January 2014 - 17:39
It will be in tonight
Edited by Erik Slagter, 27 January 2014 - 17:39.
* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.
0 members, 4 guests, 0 anonymous users