Jump to content


Photo

Vu's Youtube player


  • Please log in to reply
12 replies to this topic

#1 ims

  • PLi® Core member
  • 13,787 posts

+214
Excellent

Posted 26 January 2014 - 10:08

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 ?


Kdo nic nedělá, nic nezkazí!

Re: Vu's Youtube player #2 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

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.


Re: Vu's Youtube player #3 littlesat

  • PLi® Core member
  • 57,178 posts

+698
Excellent

Posted 26 January 2014 - 10:31

Erik... Look how that is done in the mediaplayer...

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Vu's Youtube player #4 ims

  • PLi® Core member
  • 13,787 posts

+214
Excellent

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.

Kdo nic nedělá, nic nezkazí!

Re: Vu's Youtube player #5 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

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.


Re: Vu's Youtube player #6 ims

  • PLi® Core member
  • 13,787 posts

+214
Excellent

Posted 26 January 2014 - 16:39

Yes, there must be called showYoutubeTV. I have it, but I cannot make patch - I have not git for it now. Here is whole file.

Attached Files


Edited by ims, 26 January 2014 - 16:40.

Kdo nic nedělá, nic nezkazí!

Re: Vu's Youtube player #7 littlesat

  • PLi® Core member
  • 57,178 posts

+698
Excellent

Posted 26 January 2014 - 18:42

What parameter should be given there?

Edited by littlesat, 26 January 2014 - 18:42.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Vu's Youtube player #8 ims

  • PLi® Core member
  • 13,787 posts

+214
Excellent

Posted 26 January 2014 - 19:01

no parameter

 

There was not ok call it from "Extended" via plugin's menu routine, but call directly showYoutubeTV


Kdo nic nedělá, nic nezkazí!

Re: Vu's Youtube player #9 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

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.


Re: Vu's Youtube player #10 ims

  • PLi® Core member
  • 13,787 posts

+214
Excellent

Posted 27 January 2014 - 17:33

it seems, it is ok.


Kdo nic nedělá, nic nezkazí!

Re: Vu's Youtube player #11 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

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.


Re: Vu's Youtube player #12 satmax12

  • Member
  • 4 posts

0
Neutral

Posted 23 May 2014 - 22:31

Hello, when i want to use youtube tv, it still freeezing. How can i solve this problem?



Re: Vu's Youtube player #13 fotjon

  • Senior Member
  • 162 posts

0
Neutral

Posted 25 May 2014 - 20:57

Is there a plugin that supports public youtube playlists?  So you enter your youtube account name and the public playlists become available.


Xtrend ET-5000 // OpenPli 4



4 user(s) are reading this topic

0 members, 4 guests, 0 anonymous users