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 #2201 kokikoku

  • Senior Member
  • 42 posts

0
Neutral

Posted 17 July 2017 - 23:52

by telnet mothod

 

Collected errors:
 * pkg_run_script: package "gstplayer" postinst script returned status 1.
 * opkg_configure: gstplayer.postinst returned 1.



Re: TSmedia enigma2 plugin 1.0 #2202 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 18 July 2017 - 10:29

This error unrelated to TSmedia setup and do not think prevent successful setup

if TSmedia not installed use this in telnet

wget http://tunisia-dreambox.info/TSmedia/software_official/installer.sh -O - | /bin/sh

Edited by mfaraj57, 18 July 2017 - 10:29.


Re: TSmedia enigma2 plugin 1.0 #2203 johan56

  • Member
  • 3 posts

0
Neutral

Posted 20 July 2017 - 06:47

good morning everyone,to the forum i"m new.mfaraj i have problem with tsmedia.moovie works only 1channel.zmovie works only for 5-6 minutes and stops.tsmedia 11.8 works not translate.          can you help me please



Re: TSmedia enigma2 plugin 1.0 #2204 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 21 July 2017 - 23:34

Ok,i will check ,movies sites keep changing their script frequently which needs frequent local code update

Re: TSmedia enigma2 plugin 1.0 #2205 vzoli1987

  • Senior Member
  • 29 posts

0
Neutral

Posted 23 July 2017 - 20:43

hey mfaraj could you developing? how to programming this sites?

 

www.napiszar.com, www.napiszar.hu

 

http://www.napiszar....ategoria/video/ - the videos only

http://www.napiszar.hu/Post/Video - the videos only

 

what happened the dreamoem forum?

i trying developing but too hard coding

 

 

 

this the .com version started

 

# -*- coding: utf-8 -*-
import xbmc, xbmcgui, urllib, urlparse, re, xbmcplugin
 
from resources.lib import client, control
 
REMOTE_DBG = False
 
 
# append pydev remote debugger
if REMOTE_DBG:
    # Make pydev debugger works for auto reload.
    # Note pydevd module need to be copied in XBMC\system\python\Lib\pysrc
    try:
        sys.path.append("C:\\Users\\User\\.p2\\pool\\plugins\\org.python.pydev_4.4.0.201510052309\\pysrc")
        import pydevd # with the addon script.module.pydevd, only use `import pydevd`
    # stdoutToServer and stderrToServer redirect stdout and stderr to eclipse console
        pydevd.settrace('localhost', stdoutToServer=True, stderrToServer=True)
    except ImportError:
        sys.stderr.write("Error: " +
            "You must add org.python.pydev.debug.pysrc to your PYTHONPATH.")
        sys.exit(1)
 
napiszar = 'www.napiszar.com'
 
 
def folders():
    query = urlparse.urljoin(napiszar, '/kategoria/video/oldal/%s' % page)
    r = client.request(query)
    episodes = client.parseDOM(r, 'div', attrs={'class': 'post'})
    for item in episodes:
        try:
            link = client.parseDOM(item, 'a', ret='href')[0]
            plot = client.parseDOM(item, 'h2', attrs={'a': 'title'})[0]
            plot = plot.replace('\n','').replace('\t','')
            plot = re.compile('(.+?)<br').findall(plot)[0]
            plot = client.replaceHTMLCodes(plot)
            img = napiszar + client.parseDOM(item, 'img', ret='src')[0]
            title = client.parseDOM(item, 'a', attrs={'class': 'ntitle'})[0]
            title = client.replaceHTMLCodes(title)
            addFile(title.encode('utf-8'), link, 2, img, control.addonFanart(), plot.encode('utf-8'))
        except:
            pass
    try:
        next = client.parseDOM(r, 'div', attrs={'class': 'pagerright'})[0]
        if 'more' in next:
            next_page = str(int(page) + 1)
            addDir('''Következő oldal''', '', 1, control.addonIcon(), control.addonFanart(), '', next_page)
    except:
        pass
 
 
def getvideo():
    r = client.request(url)
    result = client.parseDOM(r, 'div', attrs={'class': 'largeimage'})
    direct_url = client.parseDOM(result, 'video', ret='src')[0]
    videoitem = xbmcgui.ListItem(label=name, thumbnailImage=iconimage)
    videoitem.setInfo(type='Video', infoLabels={'Title': name})
    xbmc.Player().play(direct_url, videoitem)
 
##########
 
def addDir(name, url, mode, iconimage, fanart, description, page):
    u=sys.argv[0]+"?url="+urllib.quote_plus(url)+"&mode="+str(mode)+"&name="+urllib.quote_plus(name)+"&iconimage="+urllib.quote_plus(iconimage)+"&fanart="+urllib.quote_plus(fanart)+"&description="+urllib.quote_plus(description)+"&page="+urllib.quote_plus(page)
    ok=True
    liz=xbmcgui.ListItem(name, iconImage=iconimage, thumbnailImage=iconimage)
    liz.setInfo( type="Video", infoLabels={ "Title": name, "Plot": description } )
    liz.setProperty( "Fanart_Image", fanart )
    ok=xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=u,listitem=liz,isFolder=True)
    return ok
 
def addFile(name, url, mode, iconimage, fanart, description):
    u=sys.argv[0]+"?url="+urllib.quote_plus(url)+"&mode="+str(mode)+"&name="+urllib.quote_plus(name)+"&iconimage="+urllib.quote_plus(iconimage)+"&fanart="+urllib.quote_plus(fanart)+"&description="+urllib.quote_plus(description)
    ok=True
    liz=xbmcgui.ListItem(name, iconImage=iconimage, thumbnailImage=iconimage)
    liz.setInfo( type="Video", infoLabels={ "Title": name, "Plot": description } )
    liz.setProperty( "Fanart_Image", fanart )
    ok=xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=u,listitem=liz,isFolder=False)
    xbmcplugin.setContent(int(sys.argv[1]), 'movies')
    return ok
 
def get_params():
    param=[]
    paramstring=sys.argv[2]
    if len(paramstring)>=2:
        params=sys.argv[2]
        cleanedparams=params.replace('?','')
        if (params[len(params)-1]=='/'):
            params=params[0:len(params)-2]
        pairsofparams=cleanedparams.split('&')
        param={}
        for i in range(len(pairsofparams)):
            splitparams={}
            splitparams=pairsofparams[i].split('=')
            if (len(splitparams))==2:
                param[splitparams[0]]=splitparams[1]
    return param
 
params = get_params()
url = None
name = None
mode = None
iconimage = None
fanart = None
description = None
page = '1'
 
try:
    url = urllib.unquote_plus(params["url"])
except:
    pass
try:
    name = urllib.unquote_plus(params["name"])
except:
    pass
try:
    iconimage = urllib.unquote_plus(params["iconimage"])
except:
    pass
try:        
    mode = int(params["mode"])
except:
    pass
try:        
    fanart = urllib.unquote_plus(params["fanart"])
except:
    pass
try:        
    description = urllib.unquote_plus(params["description"])
except:
    pass
try:        
    page = urllib.unquote_plus(params["page"])
except:
    pass
 
if mode==None or mode==1:
    folders()
elif mode==2:
    getvideo()
    
xbmcplugin.endOfDirectory(int(sys.argv[1]))


Re: TSmedia enigma2 plugin 1.0 #2206 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 24 July 2017 - 19:46

Dreamoem closed forever
I will look to the code soon and feedback to you

Re: TSmedia enigma2 plugin 1.0 #2207 Dream1975

  • Senior Member
  • 1,634 posts

+14
Neutral

Posted 24 July 2017 - 20:23

On a particular video (unfortunately can't remember which one) I got below crash:

 

close failed in file object destructor:
IOError: [Errno 22] Invalid argument
No handlers could be found for logger "AT"
ADD Peer hd2400wk=hd2400wk.local:8001
ADD Peer hd2400wk=hd2400wk.local:8001
REMOVE Peer hd2400wk
REMOVE Peer hd2400sk
REMOVE Peer hd2400wk
REMOVE Peer hd2400sk
[eDVBPESReader] Created. Opening demux
[eDVBPESReader] Created. Opening demux
ADD Peer hd2400wk=hd2400wk.local:8001
ADD Peer hd2400wk=hd2400wk.local:8001
close failed in file object destructor:
IOError: [Errno 22] Invalid argument
REMOVE Peer hd2400wk
REMOVE Peer hd2400wk
ADD Peer hd2400wk=hd2400wk.local:8001
ADD Peer hd2400wk=hd2400wk.local:8001
close failed in file object destructor:
IOError: [Errno 22] Invalid argument
[eDVBPESReader] Created. Opening demux
[eDVBPESReader] Created. Opening demux
Traceback (most recent call last):
  File "/usr/lib/enigma2/python/Plugins/Extensions/TSmedia/resources/process4.py", line 2059, in action
  File "/usr/lib/enigma2/python/Plugins/Extensions/TSmedia/resources/process4.py", line 2176, in get_youtube_url1
  File "/usr/lib/enigma2/python/Plugins/Extensions/TSmedia/resources/process4.py", line 2211, in callBack
  File "/usr/lib/enigma2/python/Plugins/Extensions/TSmedia/resources/process4.py", line 2247, in __init__
  File "/usr/lib/enigma2/python/Plugins/Extensions/TSmedia/resources/process4.py", line 2331, in playlink
  File "/usr/lib/enigma2/python/Plugins/Extensions/TSmedia/resources/TSMplayer4.py", line 29, in <module>
ImportError: No module named syspath

Mutant HD2400, OpenPLi nightly, 2x DVB-C & 2x DVB-S

Mutant HD51, OpenPLi nightly, 1x DVB-C & 1x DVB-S

Wavefrontier T55 (Astra 1,2,3 en HB)

Smartcards Ziggo (Irdeto) and CDS (Seca) on Oscam

 


Re: TSmedia enigma2 plugin 1.0 #2208 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 24 July 2017 - 20:56

File syspath.pyo typically should be available in in resources directory but for some reasons the file deleted or corrupted installation,syspath.pyo file is available in other paths but reinstallation tsmedia may fix the problem

Re: TSmedia enigma2 plugin 1.0 #2209 krille

  • Senior Member
  • 69 posts

0
Neutral

Posted 21 August 2017 - 13:04

Hi mfaraj

Thanks for all works.

Just wondering the subtitle not working on tsmedia 12.

Can u please fix it?

Thanx again.



Re: TSmedia enigma2 plugin 1.0 #2210 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 21 August 2017 - 13:46

TSmedia 12 still under testing and do not know from where you get it

however thanks i will test subtitles today,subtitles needs some dependency files


Edited by mfaraj57, 21 August 2017 - 13:46.


Re: TSmedia enigma2 plugin 1.0 #2211 sadafjabeen

  • Member
  • 1 posts

0
Neutral

Posted 22 August 2017 - 13:16

Its so amazing plugin. i am using this plugin for my website ............... it is pakistani Entertainment Portal featuring Dramas, Movies, Political and many other types of Videos. for using this plugin its so easly manage and watching movies. thanks for plugin.

Edited by Frenske, 22 August 2017 - 14:05.
Read the forum rules. No commercial links please.


Re: TSmedia enigma2 plugin 1.0 #2212 mick80

  • Senior Member
  • 254 posts

+6
Neutral

Posted 23 August 2017 - 15:39

Hey mfaraj57, long time no see I just updated to 11.8 and noticed USTVnow was gone and it's no longer in the nettv section. Still, I manually restored the version I had earlier (14.4.7) and recordings still work fine for the most part, but live channels don't. I see there's a new version from mhancoc7 (see attachment), any chance you could make it work with tsmedia or have you decided not to support it anymore?

Attached Files



Re: TSmedia enigma2 plugin 1.0 #2213 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 23 August 2017 - 17:36

Hi mick80

yes,i removed most of the plugins but i will put again what is working only including the ustvnow you uploaded  above after testing it.

i put the final touch on TSmedia 12.0 and group net tv joined with net media

this link for TSmedia 12.0 beta for testing

please remove the previous TSmedia folder

or just run the following script in telnet and will manage everything

wget http://tunisia-dreambox.info/TSmedia/software_official/installer12.sh -O - | /bin/sh



Re: TSmedia enigma2 plugin 1.0 #2214 mick80

  • Senior Member
  • 254 posts

+6
Neutral

Posted 23 August 2017 - 19:33

Yeah, I had not used my boxes in a couple of months and I noticed you dropped lots of plugins. I think that's for the best, I mean, especially movie plugins... I guess it was a nightmare to keep them running since they would switch things up day in day out. It wasn't worth it

Re: TSmedia enigma2 plugin 1.0 #2215 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 23 August 2017 - 21:09

Yes,as you noticed I removed most of the movies plugins but kept 1channel because it is still running although it is blocked in many countries
Also kept search alluc,alluctmdb and zmovies
Also listed working servers only.
Now with version 12 size reduced to about 3mb and expect better performance with old boxes.

Re: TSmedia enigma2 plugin 1.0 #2216 Rick Hunter

  • PLi® Core member
  • 9,064 posts

+56
Good

Posted 23 August 2017 - 21:54

Hey mfaraj57, long time no see I just updated to 11.8 and noticed USTVnow was gone and it's no longer in the nettv section. Still, I manually restored the version I had earlier (14.4.7) and recordings still work fine for the most part, but live channels don't. I see there's a new version from mhancoc7 (see attachment), any chance you could make it work with tsmedia or have you decided not to support it anymore?

Mick80, 

You can also use the USTVNow plugin. See: https://wiki.openpli...in_Wiki:USTVNow

The plugin is not optimal and currently working only with SD channels.. but.. it works quite well.. 


Plinux member We have a.. (ehmm.. morgage) house.

Re: TSmedia enigma2 plugin 1.0 #2217 mick80

  • Senior Member
  • 254 posts

+6
Neutral

Posted 24 August 2017 - 07:11

Yes,as you noticed I removed most of the movies plugins but kept 1channel because it is still running although it is blocked in many countries
Also kept search alluc,alluctmdb and zmovies
Also listed working servers only.
Now with version 12 size reduced to about 3mb and expect better performance with old boxes.

When do you plan on releasing TSmedia 12? I hope it will be compatible with Diigo and Inoreader as I use them a lot. I know that both are no longer available for download, but I manually restore them each time you release a new version and they are still going strong. So, if it's not too much trouble, I guess you could put them both up again on the server. On the other hand, CB01 has not been working for a long time, and you can just go ahead and drop it once and for all as that one would also require very frequent updates like all the movie plugins, so it's not worth the hassle.

Mick80, 

You can also use the USTVNow plugin. See: https://wiki.openpli...in_Wiki:USTVNow

The plugin is not optimal and currently working only with SD channels.. but.. it works quite well.. 

 

Thanks, good to know  :)  I didn't know about it, I'll check it out later today



Re: TSmedia enigma2 plugin 1.0 #2218 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 25 August 2017 - 21:51

@mick80
May release tsmedia 12 in two days.nothing remained to add,you can install from the script I gave you above
Regarding diigo and the other one will test and sure will add to server again
Regarding cb01 not ready to spend time on it I will save my time only for stable addons

Re: TSmedia enigma2 plugin 1.0 #2219 krille

  • Senior Member
  • 69 posts

0
Neutral

Posted 26 August 2017 - 12:42

TSmedia 12 still under testing and do not know from where you get it

however thanks i will test subtitles today,subtitles needs some dependency files

Thanks mfaraj

it,s only problem with loading subtitle to movies.



Re: TSmedia enigma2 plugin 1.0 #2220 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 26 August 2017 - 16:13

It is working with me

you need these two packages to run subssupport subtitles

 

usually TSmedia installs them but some image feeds lack of these two packages

try and see

opkg update
opkg install python-xmlrpc
opkg install python-difflib

Edited by mfaraj57, 26 August 2017 - 16:14.



26 user(s) are reading this topic

0 members, 26 guests, 0 anonymous users