Jump to content


Photo

TSmedia enigma2 plugin 1.0


  • This topic is locked This topic is locked
2611 replies to this topic

Re: TSmedia enigma2 plugin 1.0 #2481 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 14 September 2018 - 12:09

Just updated  youtubedll which used by TSmedia to extract direct youtube links

I surprized and the situation should be better

can you send example of not working link.



Re: TSmedia enigma2 plugin 1.0 #2482 mick80

  • Senior Member
  • 254 posts

+6
Neutral

Posted 14 September 2018 - 12:55

Last night I was checking out trending videos as I've bookmarked that playlist to my favorites. And at least three out of the top five videos failed to play (no error message though, just black screen). One of those videos was about the new iphone models, I guess it was off the official apple channel and number 1 last night.

Edited by mick80, 14 September 2018 - 12:59.


Re: TSmedia enigma2 plugin 1.0 #2483 mick80

  • Senior Member
  • 254 posts

+6
Neutral

Posted 15 September 2018 - 09:55

YouTube working fine after update. Videos that had issues the other day are now okay.

Re: TSmedia enigma2 plugin 1.0 #2484 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 15 September 2018 - 10:39

nice, because i  changed some code in the extraction process for youtube links.

i pushed today new style for virtualkeyboard please test.

but Italian language is not available and tried to add but did not find the code for it included in any virtual keyboard of any image including openpli and openatv



Re: TSmedia enigma2 plugin 1.0 #2485 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 15 September 2018 - 10:55

This the new keyboard added to TSmedia with some shortcuts

tv button  insert space

radio button  clear all text

channel up and down ,insert the marker in start or end of text

also language selected is saved.

 

 

screenshot_19700101023151.jpg


Edited by mfaraj57, 15 September 2018 - 10:58.


Re: TSmedia enigma2 plugin 1.0 #2486 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 15 September 2018 - 19:55

Google suggestions is is very good idea.

 

I will add this also to the E2iPlayer keyboard based on Windows layout files (*.KLC)

1325981screenshot_20180915200126.jpg



Re: TSmedia enigma2 plugin 1.0 #2487 mick80

  • Senior Member
  • 254 posts

+6
Neutral

Posted 16 September 2018 - 08:01

i pushed today new style for virtualkeyboard please test.

but Italian language is not available and tried to add but did not find the code for it included in any virtual keyboard of any image including openpli and openatv

The new keyboard layout looks good, I don't care at all about it missing the Italian locale.

Just one question, though. Why did you map the radio button to clear out the search bar and the tv button to insert a space? It used to be the mute and one button respectively and those keys seemed a way better and more intuitive option for those purposes.

As for YouTube, TSmedia 12 allowed to hit the menu button to quickly jump to settings and that was very useful to toggle between filters (recently featured, most popular, etc.) when searching for videos. That doesn't seem to be possible in TSmedia 13 and TStube settings are only accessible from the main screen. Any plans to implement a more user-friendly solution?



Re: TSmedia enigma2 plugin 1.0 #2488 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 16 September 2018 - 08:38

@smsamsam

Very nice keyboard layout if you can make it compatible with enigma and will be of big value for E2iPlayer

following the code i have used for google suggestion for who intersted,i used twisted web engine to get suggestions,it is quick without delay in typing.

Suggestion list can be launched as dialog or intergerated within the screen of the virtualkeyboard, i found the second is more flexible and easy controlled.

class GoogleSuggestions():

    def __init__(self, callback = None, hl = 'en'):
        self.hl = hl
        self.conn = None
        self.callback = callback
        return

    def prepareQuery(self):
        self.prepQuerry = '/complete/search?output=chrome&client=chrome&'
        if self.hl is not None:
            self.prepQuerry = self.prepQuerry + 'hl=' + self.hl + '&'
        self.prepQuerry = self.prepQuerry + 'jsonp=self.gotSuggestions&q='
        return

    def dataError(self, error):
        print 'unable to get suggestion'
        self.callback([])

    def parseData(self, output):
        print 'output', output, self.hl
        if output:
            data = output
            charset = 'ISO-8859-1'
            if self.hl == 'ar':
                charset = 'windows-1256'
            elif self.hl == 'el':
                charset = 'windows-1253'
            try:
                data = data.decode(charset).encode('utf-8')
            except:
                pass

            list = data.split(',')
            data2 = []
            for item in list:
                if self.queryString in item:
                    item = item.replace('"', '').replace('[', '').replace(']', '').replace('self.gotSuggestions(', '')
                    data2.append(item)

            if self.callback is not None:
                self.callback(data2)
                return
        else:
            self.callback([])
        return

    def getSuggestions(self, queryString, hl = 'en'):
        self.hl = hl
        self.prepareQuery()
        self.queryString = queryString
        self.reactor = reactor
        if queryString is not '':
            query = self.prepQuerry + quote(queryString)
            url = 'http://www.google.com' + query
            getPage(url, headers={'Content-Type': 'application/x-www-form-urlencoded'}).addCallback(self.parseData).addErrback(self.dataError)
        else:
            return []


Re: TSmedia enigma2 plugin 1.0 #2489 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 16 September 2018 - 08:48

 

i pushed today new style for virtualkeyboard please test.

but Italian language is not available and tried to add but did not find the code for it included in any virtual keyboard of any image including openpli and openatv

The new keyboard layout looks good, I don't care at all about it missing the Italian locale.

Just one question, though. Why did you map the radio button to clear out the search bar and the tv button to insert a space? It used to be the mute and one button respectively and those keys seemed a way better and more intuitive option for those purposes.

As for YouTube, TSmedia 12 allowed to hit the menu button to quickly jump to settings and that was very useful to toggle between filters (recently featured, most popular, etc.) when searching for videos. That doesn't seem to be possible in TSmedia 13 and TStube settings are only accessible from the main screen. Any plans to implement a more user-friendly solution?

 

yes,i thought that mute still used by the system and volume but just tested  and not used by the system when keyboard displayed so will assign clear to it again.

for 1 seen it is assigned already to space by default so i will remove assigning space to to tv

regarding youtube settings and even general TSmedia settings your point is good and will assign again to menu.


Edited by mfaraj57, 16 September 2018 - 08:48.


Re: TSmedia enigma2 plugin 1.0 #2490 mick80

  • Senior Member
  • 254 posts

+6
Neutral

Posted 16 September 2018 - 10:19

That's excellent. Thanks. :)

 

Meanwhile, the latest version of skyit which you recently added to the international section seems to have messed something up with regards to videos that require tokens to play, which means videos that have "secure/encoded" in the url rather than just "encoded". The code is totally fine, but check this out for instance.

http://video.sky.it/SkyItVideoportalUtility/getVODAccessToken.do?token=d964eccd9a5e05772bdba8d529585d16&url=https://videoplatform.sky.it/secure/encoded/2018/09/15/1537043646263_ft_highlights_watvmu_web_high.mp4&dec=0

By visiting this link, the url for these "encrypted" videos is generated and that "sta" parameter is the only thing that changes each time a request is made. Anyway, that's the final url that TSmedia plays. Still, I've noticed that I now only get a black screen for some reason on most of those videos. It used to work fine until a few days ago when I was still using that old version you had created for TSmedia 12 in the netmedia section.

However, if I quickly copy that generated link off the log file before it expires and paste it into the iptvlist file, the video streams fine when started through the m3uplayer addon. That's a little weird, isn't it? It basically happens for almost all videos in the sports section, which I've added myself as it was missing in that earlier version, and you'll find it in the zip attached.

Attached Files



Re: TSmedia enigma2 plugin 1.0 #2491 mick80

  • Senior Member
  • 254 posts

+6
Neutral

Posted 16 September 2018 - 13:40

There's more. Just like with m3uplayer, these videos also stream okay when I boomkark the same generated url through diigo. So that black screen issue somehow only affects the sky addon. Here's a screenshot from that video I posted earlier when played through the diigo addon instead.
c00a7e767ff5373c28281e7d2415fc5f.jpg

Re: TSmedia enigma2 plugin 1.0 #2492 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 16 September 2018 - 14:29

I spent nearly 8 hours to know the reason.

in fact before mentioning skyit problem i faced with some youtubes links error "string buffer not in string" using youtube-dll as a method of extraction ,i test the same links in other youtube-dll dependent plugins and found no error,so guessed it is local problem with TSmedia.

i found the problem lastly in equel sign,when the link contains equal sign( "=") it is not playing,in some place in processing the links i used to encode "=" with letters ''ExQ'' and should reverse this before playing the link,but for some reasons i do not revese it for "=".I took me longtime to resolve because the link when printed to log file or to console windows it printed with "=" sign while it in fact the letters ''ExQ'' and for this reason when you copied the link to iptvllist you copy with true equal sign so no problem,however do not bother yourself by understanding the reason and i think youtube and skyit problem resolved.



Re: TSmedia enigma2 plugin 1.0 #2493 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 16 September 2018 - 15:14

Regarding vkeyboard seems the mute button assigned by system keymap.xml to delete one character at once so i assigned info button to clear all text.



Re: TSmedia enigma2 plugin 1.0 #2494 mick80

  • Senior Member
  • 254 posts

+6
Neutral

Posted 16 September 2018 - 16:45

I spent nearly 8 hours to know the reason.
in fact before mentioning skyit problem i faced with some youtubes links error "string buffer not in string" using youtube-dll as a method of extraction ,i test the same links in other youtube-dll dependent plugins and found no error,so guessed it is local problem with TSmedia.
i found the problem lastly in equel sign,when the link contains equal sign( "=") it is not playing,in some place in processing the links i used to encode "=" with letters ''ExQ'' and should reverse this before playing the link,but for some reasons i do not revese it for "=".I took me longtime to resolve because the link when printed to log file or to console windows it printed with "=" sign while it in fact the letters ''ExQ'' and for this reason when you copied the link to iptvllist you copy with true equal sign so no problem,however do not bother yourself by understanding the reason and i think youtube and skyit problem resolved.

Thanks for the detailed explanation. So that's more or less the same issue that affected TStube a few days ago. Like I said, that one is definitely fixed now. As for skyit, is it gonna take a software or simple addon update to fix that?

As for vkeyboard, the mute button was definitely mapped to clear out the search bar until a few days ago, and it worked exactly as it should. If you say that's no longer possible now, I guess the info button is all in all a way better option than the radio one.

Re: TSmedia enigma2 plugin 1.0 #2495 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 16 September 2018 - 17:23

just uploaded the updates ,as usual from main menu blue-blue to apply updates



Re: TSmedia enigma2 plugin 1.0 #2496 mick80

  • Senior Member
  • 254 posts

+6
Neutral

Posted 16 September 2018 - 19:48

Done and black screen issue in skyit is 100% fixed. Thanks.

That's an impressive update overall: info button works great to clear text in search bar; menu button in TStube is restored to its previous function, and I love how it instead prompts three options now in all other addons, among which "view current downloads" is particularly useful, as I have the help button mapped to something else. And the message about daily updates being available is a nice touch, as well

Re: TSmedia enigma2 plugin 1.0 #2497 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 16 September 2018 - 21:53

@mfaraj57

 

Thank you for the info. Generally I am not using twisted module. It will be harden to deploy this without twisted, but this is only technical problem.

 

Your idea to use Google as suggestion search engine  is brilliant I think.

 


Very nice keyboard layout if you can make it compatible with enigma

 

 

This was already added to E2iPlayer. 

This is how it looks with language selection:

 

thumb_4503395vk_1.jpg
 
thumb_7148436vk_2.jpg
 
thumb_3238662vk_3.jpg

 

 

It based on the Windows keyboard layout files (*.KLC), so there is possible to create own or modify existing keys layout using Windows utilities like:

Microsoft Keyboard Layout Creator 1.4

https://www.microsof...s.aspx?id=22339

 

or  test it with very nice program KBDEDIT

http://www.kbdedit.com/demo.html

 

The languages layouts are not hardcoded inside python file, they are read on demand from /etc/ directory.  


Edited by samsamsam, 16 September 2018 - 21:55.


Re: TSmedia enigma2 plugin 1.0 #2498 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 16 September 2018 - 21:53

thumb_7933471vk_4.jpg
 
thumb_6237984vk_5.jpg
 
thumb_6986564vk_6.jpg

Edited by samsamsam, 16 September 2018 - 21:56.


Re: TSmedia enigma2 plugin 1.0 #2499 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 16 September 2018 - 22:00

It supports Ligatures (used for example in the Arabic layout) as well as "deadcode"s



Re: TSmedia enigma2 plugin 1.0 #2500 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 17 September 2018 - 09:52

@smsamsam

Very excellent work.

Just tested with E2iPlayer and I was impressed by the design and the available keys,also movement between different keys is smooth as well as availablity of many languages not available in classical enigma keyboard.

i did not see google suggestion in action ,may be not implented yet in the last update.

i know the work still in the begining but some notes if added the keyboard will be perfect.

1- shortcuts for frequent  key usage like insert space,clearall,move marker to right or left or end or begining,

2- Assignment colors to main actions as in classical enigma keyboard(because user used to use them) ,green for enter,yellow for langauage

3-sms typing.

4-need some work with full hd skin and hd skin(the keyboard located down in the tv screen with hd skin and small with full hd skin)

 

RO_YA-1792018-923.png

 

RO_YA-1792018-918.png

RO_YA-1792018-916.png




8 user(s) are reading this topic

0 members, 8 guests, 0 anonymous users