Mytube modded+skin edit
DoeEensGek 14 aug 2012
Ive editted mytube to preform better eand easier on e2 boxes. Also added jump option [1,4,7,3,6,9].
Skin isnt good in openpli so here is an edit list, hope openpli will update it.
Destenation plugin.py -> \\Dm800se\root\usr\lib\enigma2\python\Plugins\Extensions\MyTube\
Skin isnt good in openpli so here is an edit list, hope openpli will update it.
skin.xml file: <widget name="config" position="520,110" size="740,25" scrollbarMode="showNever" selectionPixmap="PLi-HD/buttons/sel.png" transparent="1" zPosition="2" /> to: <widget name="config" position="520,110" size="720,25" scrollbarMode="showNever" selectionPixmap="PLi-HD/buttons/sel.png" transparent="1" zPosition="2" /> <widget render="Listbox" scrollbarMode="showOnDemand" selectionPixmap="PLi-HD/buttons/sel.png" position="520,135" size="740,480" source="feedlist" transparent="1" zPosition="1"> to: <widget render="Listbox" scrollbarMode="showOnDemand" selectionPixmap="PLi-HD/buttons/sel.png" position="520,135" size="720,480" source="feedlist" transparent="1" zPosition="1"> <widget name="config" position="520,110" size="740,510" scrollbarMode="showOnDemand" selectionPixmap="PLi-HD/buttons/sel.png" font="Regular;22" transparent="1" /> to: <widget name="config" position="520,110" size="720,510" scrollbarMode="showOnDemand" selectionPixmap="PLi-HD/buttons/sel.png" font="Regular;22" transparent="1" /> <screen name="MyTubeSuggestionsListScreen" position="520,130" size="740,231" zPosition="6" backgroundColor="grey" flags="wfNoBorder" > <eLabel backgroundColor="dark" position="3,3" size="734,225" zPosition="7" /> <widget position="3,3" render="Listbox" scrollbarMode="showOnDemand" selectionPixmap="PLi-HD/buttons/sel.png" size="734,225" source="suggestionslist" transparent="1" zPosition="8"> to: <screen name="MyTubeSuggestionsListScreen" position="520,130" size="720,231" zPosition="6" backgroundColor="grey" flags="wfNoBorder" > <eLabel backgroundColor="dark" position="3,3" size="714,225" zPosition="7" /> <widget position="3,3" render="Listbox" scrollbarMode="showOnDemand" selectionPixmap="PLi-HD/buttons/sel.png" size="714,225" source="suggestionslist" transparent="1" zPosition="8"> <screen name="MyTubeHistoryScreen" position="520,130" size="740,231" zPosition="6" backgroundColor="grey" flags="wfNoBorder" > <eLabel backgroundColor="dark" position="3,3" size="734,225" zPosition="7" /> <widget position="3,3" render="Listbox" scrollbarMode="showOnDemand" selectionPixmap="PLi-HD/buttons/sel.png" size="734,225" source="historylist" transparent="1" zPosition="8"> to: <screen name="MyTubeHistoryScreen" position="520,130" size="720,231" zPosition="6" backgroundColor="grey" flags="wfNoBorder" > <eLabel backgroundColor="dark" position="3,3" size="714,225" zPosition="7" /> <widget position="3,3" render="Listbox" scrollbarMode="showOnDemand" selectionPixmap="PLi-HD/buttons/sel.png" size="714,225" source="historylist" transparent="1" zPosition="8">
Destenation plugin.py -> \\Dm800se\root\usr\lib\enigma2\python\Plugins\Extensions\MyTube\
Bijgevoegde Bestanden
littlesat 14 aug 2012
What about the licences of the modified mytube plugin...?
And could you please commit the skin changes to github..
And what are the exact differences... I cannot see them...
It is better then to put the complete skin block screens as it should be here...
And could you please commit the skin changes to github..
And what are the exact differences... I cannot see them...
It is better then to put the complete skin block screens as it should be here...
DoeEensGek 14 aug 2012
Changes in skin are mostly minus20px horizontal cuase its out of screen on the right, like size="740 to size="720 etc. Wil place on github .What about the licences of the modified mytube plugin...?
And could you please commit the skin changes to github..
And what are the exact differences... I cannot see them...
It is better then to put the complete skin block screens as it should be here...
license is opensource software, not commercial distribute, only modded the py so you dont get the annoying questions(that not work properly on some boxes), play pause button properly works on all dreamboxes and 1 to 9 to skip into the movie.
And you mean skin like this?:
<!-- MyTube --> <screen name="MyTubePlayerMainScreen" position="fill" title="MyTubePlayer MainScreen" flags="wfNoBorder"> <panel name="PigTemplate"/> <panel name="ButtonTemplate_3"/> <panel name="KeyMenuInfoTemplate"/> <widget name="thumbnail" position="0,0" size="130,98" alphatest="on" /> <panel name="KeyTextTemplateBlue"/> <eLabel text="Virtual Keyboard" position="1010,643" size="300,26" backgroundColor="black" zPosition="1" transparent="1" font="Regular;20" halign="left" /> <widget name="HelpWindow" position="65,500" size="1,1" transparent="1" zPosition="3" alphatest="on" /> <widget name="config" position="520,110" size="720,25" scrollbarMode="showNever" selectionPixmap="PLi-HD/buttons/sel.png" transparent="1" zPosition="2" /> <widget render="Listbox" scrollbarMode="showOnDemand" selectionPixmap="PLi-HD/buttons/sel.png" position="520,135" size="720,480" source="feedlist" transparent="1" zPosition="1"> <convert type="TemplatedMultiContent"> {"templates": {"default": (80,[ MultiContentEntryPixmapAlphaTest(pos = (0, 0), size = (100, 75), png = 4), # index 4 is the thumbnail MultiContentEntryText(pos = (110, 1), size = (600, 24), font=0, flags = RT_HALIGN_LEFT | RT_VALIGN_TOP| RT_WRAP, text = 1), # index 1 is the Title MultiContentEntryText(pos = (110, 25), size = (390, 22), font=1, flags = RT_HALIGN_LEFT | RT_VALIGN_TOP| RT_WRAP, text = 5), # index 5 is the Published Date MultiContentEntryText(pos = (110, 47), size = (390, 22), font=1, flags = RT_HALIGN_LEFT | RT_VALIGN_TOP| RT_WRAP, text = 6), # index 6 is the Views Count MultiContentEntryText(pos = (500, 25), size = (200, 22), font=1, flags = RT_HALIGN_LEFT | RT_VALIGN_TOP| RT_WRAP, text = 7), # index 7 is the duration MultiContentEntryText(pos = (500, 47), size = (200, 22), font=1, flags = RT_HALIGN_LEFT | RT_VALIGN_TOP| RT_WRAP, text = 8), # index 8 is the ratingcount ]), "state": (80,[ MultiContentEntryText(pos = (10, 1), size = (690, 30), font=2, flags = RT_HALIGN_LEFT | RT_VALIGN_TOP| RT_WRAP, text = 0), # index 0 is the name MultiContentEntryText(pos = (10, 29), size = (690, 35), font=3, flags = RT_HALIGN_LEFT | RT_VALIGN_TOP| RT_WRAP, text = 1), # index 2 is the description ]) }, "fonts": [gFont("Regular", 22),gFont("Regular", 18),gFont("Regular", 26),gFont("Regular", 20)], "itemHeight": 80 } </convert> </widget> </screen> <screen name="MyTubePlayer" position="0,45" size="1280,100" backgroundColor="transparent" title="MoviePlayer" flags="wfNoBorder"> <panel name="PlayerTemplate"/> </screen> <screen name="MyTubeSettingsScreen" position="fill" title="MyTube Player settings" flags="wfNoBorder"> <panel name="PigTemplate"/> <panel name="ButtonTemplate_2"/> <widget name="config" position="520,110" size="720,510" scrollbarMode="showOnDemand" selectionPixmap="PLi-HD/buttons/sel.png" font="Regular;22" transparent="1" /> </screen> <screen name="MyTubeVideoInfoScreen" position="fill" title="MyTubePlayerMainScreen" flags="wfNoBorder"> <panel name="PigTemplate"/> <panel name="ButtonTemplate_1"/> <widget alphatest="on" name="thumbnail" position="0,0" size="130,98" /> <widget font="Regular;20" foregroundColor="foreground" halign="left" name="title" position="520,100" size="670,50" transparent="1" valign="center" zPosition="5" /> <widget position="605,500" render="Listbox" scrollbarMode="showNever" selectionDisabled="1" size="520,106" source="infolist" transparent="1" zPosition="6"> <convert type="TemplatedMultiContent"> {"templates": {"default": (106,[ MultiContentEntryPixmapAlphaTest(pos = (0,4),size = (130,98),png = 0), MultiContentEntryPixmapAlphaTest(pos = (130,4),size = (130,98),png = 1), MultiContentEntryPixmapAlphaTest(pos = (260,4),size = (130,98),png = 2), MultiContentEntryPixmapAlphaTest(pos = (390,4),size = (130,98),png = 3), ]), "state": (106,[ MultiContentEntryText(pos = (10,40),size = (500,38),font=2,flags = RT_HALIGN_LEFT | RT_VALIGN_TOP| RT_WRAP,text = 0), ]) }, "fonts": [gFont("Regular",18),gFont("Regular",14),gFont("Regular",22)], "itemHeight": 106 } </convert> </widget> <widget alphatest="on" name="starsbg" pixmap="PLi-HD/dvr/starsbar_empty.png" position="190,555" size="100,20" transparent="1" zPosition="5" /> <widget name="stars" pixmap="PLi-HD/dvr/starsbar_filled.png" position="190,555" size="100,20" transparent="1" zPosition="6" /> <widget font="Regular;20" halign="left" name="author" position="70,400" size="290,24" transparent="1" valign="top" zPosition="10" /> <widget font="Regular;20" halign="right" name="duration" position="360,400" size="120,24" transparent="1" valign="top" zPosition="10" /> <widget font="Regular;20" halign="left" name="published" position="70,430" size="290,24" transparent="1" valign="top" zPosition="10" /> <widget font="Regular;20" halign="right" name="views" position="360,430" size="120,24" transparent="1" valign="top" zPosition="10" /> <widget font="Regular;20" halign="center" name="tags" position="70,460" size="410,100" transparent="1" valign="top" zPosition="10" /> <widget font="Regular;20" halign="left" name="detailtext" position="520,150" size="670,325" transparent="1" valign="top" zPosition="10" /> </screen> <screen name="MyTubeSuggestionsListScreen" position="520,130" size="720,231" zPosition="6" backgroundColor="grey" flags="wfNoBorder" > <eLabel backgroundColor="dark" position="3,3" size="714,225" zPosition="7" /> <widget position="3,3" render="Listbox" scrollbarMode="showOnDemand" selectionPixmap="PLi-HD/buttons/sel.png" size="714,225" source="suggestionslist" transparent="1" zPosition="8"> <convert type="TemplatedMultiContent"> {"template": [ MultiContentEntryText(pos = (2,1),size = (528,24),font=0,flags = RT_HALIGN_LEFT,text = 0), MultiContentEntryText(pos = (530,1),size = (180,24),font=1,flags = RT_HALIGN_RIGHT,text = 1), ], "fonts": [gFont("Regular",20),gFont("Regular",18)], "itemHeight": 25 } </convert> </widget> </screen> <screen name="MyTubeHistoryScreen" position="520,130" size="720,231" zPosition="6" backgroundColor="grey" flags="wfNoBorder" > <eLabel backgroundColor="dark" position="3,3" size="714,225" zPosition="7" /> <widget position="3,3" render="Listbox" scrollbarMode="showOnDemand" selectionPixmap="PLi-HD/buttons/sel.png" size="714,225" source="historylist" transparent="1" zPosition="8"> <convert type="TemplatedMultiContent"> {"template": [ MultiContentEntryText(pos = (2,1),size = (708,24),font=0,flags = RT_HALIGN_LEFT,text = 0), ], "fonts": [gFont("Regular",20),gFont("Regular",18)], "itemHeight": 25 } </convert> </widget> </screen> <screen name="MyTubeVideoHelpScreen" position="fill" title="MyTube help" flags="wfNoBorder"> <panel name="PigTemplate"/> <panel name="ButtonTemplate_1"/> <widget name="detailtext" font="Regular;22" position="520,110" size="740,510" valign="top" transparent="1" /> </screen> <screen name="MyTubeTasksScreen" position="fill" title="MyTube - Tasks" flags="wfNoBorder"> <panel name="PigTemplate"/> <panel name="ButtonTemplate_1"/> <ePixmap pixmap="PLi-HD/buttons/key_ok.png" alphatest="on" position="40,645" size="35,25" /> <widget source="tasklist" render="Listbox" position="560,110" size="635,370" zPosition="2" scrollbarMode="showOnDemand" transparent="1" selectionPixmap="PLi-HD/buttons/sel.png" > <convert type="TemplatedMultiContent"> {"template": [ MultiContentEntryText(pos = (10, 1), size = (250, 24), font=1, flags = RT_HALIGN_LEFT, text = 1), # index 1 is the name MultiContentEntryText(pos = (270, 1), size = (110, 24), font=1, flags = RT_HALIGN_RIGHT, text = 2), # index 2 is the state MultiContentEntryProgress(pos = (390, 1), size = (100, 24), percent = -3), # index 3 should be progress MultiContentEntryText(pos = (500, 1), size = (100, 24), font=1, flags = RT_HALIGN_RIGHT, text = 4), # index 4 is the percentage ], "fonts": [gFont("Regular", 22),gFont("Regular", 18)], "itemHeight": 25 } </convert> </widget> </screen>
Veranderd door DoeEensGek, 14 augustus 2012 - 16:45
littlesat 14 aug 2012
That is not possible if it is based on the mytube plugin from schwerkraft...!! This means DMM boxes onlylicense is opensource software, not commercial distribute
Do you also have a diff from the mytube plugin compared what we have on our sources?
http://openpli.git.s...83e9417;hb=HEAD
Veranderd door littlesat, 14 augustus 2012 - 17:00
DoeEensGek 14 aug 2012
That is not possible if it is based on the mytube plugin from schwerkraft...!! This means DMM boxes only
license is opensource software, not commercial distribute
Do you also have a diff from the mytube plugin compared what we have on our sources?
http://openpli.git.s...83e9417;hb=HEAD
Ive got my selfmade log:
orriganilly made for myself...
#changes modded mytube
plugin.py file:
class MyTubePlayerMainScreen(Screen, ConfigListScreen):
self["key_red"] = Button(_("Close"))
to:
self["key_red"] = Button(_("Search"))
"back": self.leavePlayer,
"red": self.leavePlayer,
To:
"back": self.doQuit,
"red": self.switchToConfigList,
*******************
Add play pause buttons player:
[class MyTubePlayer(Screen, InfoBarNotifications):]
"playpauseService": self.playpauseService,
to:
"playpauseService": self.playpauseService,
"play": self.playpauseService,
"pause": self.playpauseService,
def handleLeave(self, how, error = False):
self.is_closing = True
if how == "ask":
list = (
(_("Yes"), "quit"),
(_("No, but play video again"), "playagain"),
(_("Yes, but play next video"), "playnext"),
(_("Yes, but play previous video"), "playprev"),
)
if error is False:
self.session.openWithCallback(self.leavePlayerConfirmed, ChoiceBox, title=_("Stop playing this movie?"), list = list)
else:
self.session.openWithCallback(self.leavePlayerConfirmed, ChoiceBox, title=_("No playable video found! Stop playing this movie?"), list = list)
else:
self.leavePlayerConfirmed([True, how])
to:
def handleLeave(self, how, error = False):
self.is_closing = True
self.close()
#if how == "ask":
# list = (
# (_("Yes"), "quit"),
# (_("No, but play video again"), "playagain"),
# (_("Yes, but play next video"), "playnext"),
# (_("Yes, but play previous video"), "playprev"),
# )
# if error is False:
# self.session.openWithCallback(self.leavePlayerConfirmed, ChoiceBox, title=_("Stop playing this movie?"), list = list)
# else:
# self.session.openWithCallback(self.leavePlayerConfirmed, ChoiceBox, title=_("No playable video found! Stop playing this movie?"), list = list)
#else:
# self.leavePlayerConfirmed([True, how])
class MyTubePlayer(Screen, InfoBarNotifications):
to:
class MyTubePlayer(Screen, InfoBarNotifications, InfoBarSeek):
Add:
InfoBarSeek.__init__(self, actionmap = "MediaPlayerSeekActions")
from Screens.InfoBarGenerics import InfoBarNotifications
To:
from Screens.InfoBarGenerics import InfoBarSeek, InfoBarNotifications
littlesat 15 aug 2012
The check that it is realy running on a dreambox????
Sorry the MyTube plugin is very sensitive regards to licenses....
Veranderd door littlesat, 15 augustus 2012 - 07:01
Sorry the MyTube plugin is very sensitive regards to licenses....
Veranderd door littlesat, 15 augustus 2012 - 07:01
DoeEensGek 15 aug 2012
The check that it is realy running on a dreambox????
Sorry the MyTube plugin is very sensitive regards to licenses....
Ok I didnt know about that, i just editted because on some dreamboxes it wouldnt work properly. And little bit easier, and since I did that i thought why not an jump function. Only the edit in the skin is much needed. The modded mytube isn't needed.
I dint change anything with tmpd or so, you can see above lines i only changed.
littlesat 15 aug 2012
Then you better can give us a diff/patch against the link i give... because it is better to update our mytube sources....