The addons video mediaset not work with version 1.1.2 on tsmedia
version 1.2.1 is available but not present on more addons
please fix and add video Mediaset 1.2.1 automatic installation
Thanks
Edited by cukodilo, 24 March 2017 - 09:10.
Posted 28 March 2017 - 16:25
The addons video mediaset not work with version 1.1.2 on tsmedia
version 1.2.1 is available but not present on more addons
please fix and add video Mediaset 1.2.1 automatic installation
Thanks
sorry no way to run this addon in TSmedia,it uses libraries only available for kodi
Posted 30 March 2017 - 10:31
Hey mfaraj57, here's my two cents on the videomediaset issue.
I've rarely used it in enigma, as I use the app in my smart TV, but if you want to fix it (provided you have the will/desire... after all you mentioned last week you're not really into starting things from scratch nowadays, and I totally respect your decision), you should perhaps consider breaking away from the Kodi addon altogether. The way I see it, I guess you could just focus on a handful of core links:
http://www.video.mediaset.it/bacino/bacinostrip_1.shtml?page=all
This one is basically the database of the latest uploaded videos on their website. Here all the links which end in .html are in fact those videos, so you just grab the 6-digit stream id from inside 'data-src' (which are obviously the thumbnails for the videos) between 'video_' and '_videoThumbnail' and run it through this link
http://cdnsel01.mediaset.net/GetCdn.aspx?streamid={+ID}
where you get the raw mp4 address for that video.
I suppose just this would already be enough for most users, as it has all their videos from the past week. Then again, it could be a hassle having to scroll through so many items to find what you're looking for.
So, if you would also like to include the collection of all the mediaset shows, this is essentially the base url:
http://www.video.mediaset.it/programma/progr_archivio.json
Here the addon should grab all the 'archivio-video.shtml' links that start with '/programma/' and add it to
http://www.video.mediaset.it
Here's an example
http://www.video.mediaset.it/programma/101_pucci/archivio-video.shtml
Now the addon should fetch the 'data-id' for all the videos on that page and again run it through that cdnsel01 link to get the mp4.
Finally, the search function goes like this
http://www.video.mediaset.it/ricercaistella/videosearch?q={+KEYWORDS}&sort=date&limit=50
In this case, you just look for the 'id' instances to run through cdnsel01. BTW I've set the limit for the results to 50, but it accepts up to 1000.
Again, if you have no time and can't really be bothered with this, good riddance to videomediaset in enigma
Posted 30 March 2017 - 14:16
Good afternoon, i am new to TSMedia and this forum. I am very pleased i have added it to my box as i have found it to be very interesting.
My question is how do i get to use the movies options i have added? I have not been able to actually watch anything from what i
have tried. I have been getting Error messages. Regards, Oliver.
Edited by Oliver2017, 30 March 2017 - 14:16.
Posted 30 March 2017 - 15:30
Posted 31 March 2017 - 07:36
yes,you make everything easy and straight forward and will be interesting to do it
may be put the steps here how to do it if one want to learn how to make kodi plugin as tutorial
Thanks, mfaraj.
Meanwhile, going back to the 123movies issue for a second, since Mucky Duck is still MIA, I just took some time to inspect 123movies and, I may go out on a limb here, but it doesn't seem to me like their links are really all that well hidden after all.
Here's what I found out. Like I said last week, there are just three filters in place now which can be used for movies or tv series
baseurl="https://123movieshd.tv" MOVIE FILTERS (latest, most viewed, top imdb) baseurl+'/movie/filter/movie/all/all/all/all/latest/ baseurl+'/movie/filter/movie/all/all/all/all/most/ baseurl+'/movie/filter/movie/all/all/all/all/imdb/ TV FILTERS(latest, most viewed, top imdb) baseurl+'/movie/filter/series/all/all/all/all/latest/ baseurl+'/movie/filter/series/all/all/all/all/most/ baseurl+'/movie/filter/series/all/all/all/all/imdb/ SEARCH baseurl+'/movie/search/'+search
Following pages are unchanged (?page=).
Now, here's where the mp4 links are ensconced. For instance, while in the 'latest' section for movies, the addon should fetch all the href items starting with /film/ and build this type of links for each movie
baseurl+'/film/randommovietitle'+/watching.html
That watching.html link has a single instance of 'iframe src' which contains the embedded link for the movie with its own unique id, and that's where you find a single occurence of 'sources:[{file:' which is in fact the mp4 link. Of course, this process focuses just on their internal server's links (like Mucky Ducks' addon used to do after all) while completely disregarding other types of links such as openload which are often present as a backup.
I'm in a bit of a rush, so I didn't look at tv shows, but I expect the process to be quite similar although there are several links in play there for each episode in a season, so it might be a little trickier. Still, what do you say? Any chance we might work something out here? As always, no pressure if you still deem it to be too long a task to get the addon back up and running.
Posted 31 March 2017 - 11:20
yes,seems it is simple and straight forward,i thought it is more complicated than that
just translate what you said to code and attached default.py for all movies only
# -*- coding: utf8 -*- import sys import urllib,urllib2,re,os import xbmc, xbmcgui, xbmcplugin, xbmcaddon import re ############################################ ####functions baseurl="https://123movieshd.tv" def readnet(url): from addon.common.net import Net net=Net() USER_AGENT='Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:30.0) Gecko/20100101 Firefox/30.0' MAX_TRIES=3 headers = { 'User-Agent': USER_AGENT, 'Referer': url } html = net.http_GET(url).content return html def gethostname(url): from urlparse import parse_qs, urlparse query = urlparse(url) return query.hostname ##########################################parsing tools def showmenu(): addDir('••All••',baseurl+'https://123movieshd.tv/movie/filter/movie/all/all/all/all/latest/',100,'img/1.png',1) return ###################################movies def search(url): search_entered = '' debug=True if debug: keyboard = xbmc.Keyboard(search_entered, 'Search') keyboard.doModal() if keyboard.isConfirmed(): search_entered = keyboard.getText() .replace(' ','+') else: print "search error" url= url+search_entered getmovies("Search",url,0) def getmovies(namemain,urlmain,page):##movies print "page",page if page>1: #https://123movieshd.tv/movie/filter/movie/all/all/all/all/latest/?page=2 url_page=urlmain+'?page='+str(page) else: url_page=urlmain print "url_page",url_page data=readnet(url_page) if data is None: return blocks=data.split('<div class="ml-item">') i=0 print "blocks",len(blocks) for block in blocks: i=i+1 if i==1: continue regx='''<a href="(.*?)"''' href=re.findall(regx,block, re.M|re.I)[0] regx='''title="(.*?)"''' name=re.findall(regx,block, re.M|re.I)[0] regx='''<img data-original="(.*?)"''' img="http:"+re.findall(regx,block, re.M|re.I)[0] href=baseurl+href+"/watching.html" try:name=name.encode("utf-8") except:name=str(name) try:addDir(name,href,1,img,'',1) except:pass addDir("next page",urlmain,100,'img/next.png','',str(page+1)) if len(blocks)==0: addDir("Error:no results",urlmain,100,'','',str(page+1)) ###############################################tv shows def search_series(url): search_entered = '' debug=True if debug: keyboard = xbmc.Keyboard(search_entered, 'Search 1channel') keyboard.doModal() if keyboard.isConfirmed(): search_entered = keyboard.getText() .replace(' ','+') else: print "search error" url= url+search_entered getseries("Search",url,0) def getseries(name,urlmain,page):##series print "page",page if page>1: url_page=urlmain+'/page/'+str(page)+"/" else: url_page=urlmain print "url_page",url_page data=readnet(url_page) try:data=data.split('class="first-word"')[1] except:pass if data is None: return blocks=data.split('<td class="topic_head">') i=0 for block in blocks: i=i+1 if i==1: continue #block=block.lower() regx='''<a class="title" href="(.*?)" id=".*?">(.*?)</a>''' match=re.findall(regx,block, re.M|re.I) href=match[0][0] name=match[0][1] regx='''<img onerror='this.style.display = "none"' src="(.*?)" /></a>''' try:img=re.findall(img,block, re.M|re.I)[0] except:img='' name=name.encode("utf-8") addDir(name,href,1,img,'',1) if len(match)==0: addDir("Error:no results",urlmain,200,'','',str(page+1)) def getseasons(name,urlmain,page):##series data=readnet(url_page) try:data=data.split('<div class="title6">')[1] except:pass print "url_page",url_page if data is None: return seasons=re.findall('''<a href="(.*?)" >(.*?)</a>''',data, re.M|re.I) for href,name in seasons: addDir(name,href,202,'','',1) def getepisodes(name,urlmain,page):##series data=readnet(urlmain) try:data=data.split('class="first-word"')[1] except:pass if data is None: return '''<div id="season1-1-watch-ep" class="watch-ep-btn" data-click=" https://openload.co/embed/mb6cBGnT_ko" data-poster="http://image.tmdb.org/t/p/w1280/tVCmhoIAHMCIzNmzSBvSDja4wOY.jpg" onclick="setUpTvPlayer(this)"><i class="fa fa-play-circle"></i>Watch Episode</div> </div> </li> <li id=season1-2> <h2>Allen</h2> <span class="season-info">Season 1, Episode 2</span><br> <span class="season-info air-date">Air date: Aug-29-2005</span> <p class="synopsis-description"> Trouble is inevitable in the prison, with a race riot imminent. Michael has problems retrieving a screw from the bleachers. Veronica receives a security tape that shows Lincoln shooting Terrence Steadman. </p>''' blocks=data.split('<h3 class="threadtitle">') i=0 for block in blocks: i=i+1 if i==1: continue regx='''<a class="title" href="(.*?)" id=".*?">(.*?)</a>''' match=re.findall(regx,block, re.M|re.I) href=match[0][0] name=match[0][1] regx='''<img onerror='this.style.display = "none"' src="(.*?)" /></a>''' try:img=re.findall(img,block, re.M|re.I)[0] except:img='' name=name.encode("utf-8") addDir(name,href,1,img,'',1) if len(match)==0: addDir("Error:no results",urlmain,200,'','',str(page+1)) #######################################host resolving def gethosts(name,urlmain):##cinema and tv featured data=readnet(urlmain) if data is None: return regx='''<iframe.*?src="(.*?)".*?></iframe>''' link=re.findall(regx,data, re.M|re.I)[0] data=readnet(link) regx="file: '(.*?)'" link=re.findall(regx,data, re.M|re.I)[0] print "link",link playlink(link) def playlink(url): xbmc.Player().play(url) sys.exit(0) ############################################xbmc tools 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] print "input,output",paramstring,param return param def addDir(name,url,mode,iconimage,extra='',page=0): u=sys.argv[0]+"?url="+urllib.quote_plus(url)+"&mode="+str(mode)+"&name="+urllib.quote_plus(name)+"&page="+str(page) ok=True liz=xbmcgui.ListItem(name, iconImage="DefaultFolder.png", thumbnailImage=iconimage) liz.setInfo( type="Video", infoLabels={ "Title": name } ) ok=xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=u,listitem=liz,isFolder=True) return ok params=get_params() url=None name=None mode=None page=1 try: url=urllib.unquote_plus(params["url"]) except: pass try: name=urllib.unquote_plus(params["name"]) except: pass try: mode=int(params["mode"]) except: pass try: page=int(params["page"]) except: pass print "Mode: "+str(mode) print "URL: "+str(url) print "Name: "+str(name) print "page: "+str(page) if mode==None or url==None or len(url)<1: print "" showmenu() elif mode==1: print ""+url gethosts(name,url) elif mode==2: print ""+url resolve_host(url) elif mode==3: print ""+url playlink(url) elif mode==100: print ""+url getmovies(name,url,page) elif mode==101: print ""+url getgenre('movies') elif mode==102: print ""+url getA_Z('movies') elif mode==103: print ""+url search(url) elif mode==200: getseries(name,url,page) elif mode==201: getseasons(name,url,page) elif mode==202: getepisodes(name,url,page) xbmcplugin.endOfDirectory(int(sys.argv[1]))
not tested but assume will work
Edited by mfaraj57, 31 March 2017 - 11:21.
Posted 31 March 2017 - 11:32
regarding videomediasat,started to make the plugin,but look again for original plugin and found the code is simple and include what you have said,and need just script.module and it is available in the github with the plugin
i put again in the server for update,still the first live channels give crash with me also the second menu item is not working but i think from original source
Posted 31 March 2017 - 14:34
Posted 31 March 2017 - 15:08
Cool, I'm gonna test it out when I get home tonight. Meanwhile, I was having a slow day at work so I decided to entertain myself by whipping up a few 123movies-related thumbnails I see you've used movie posters as thumbnails, but feel free to use them, perhaps in a future version since we already know 123movies is quite flaky
0 members, 20 guests, 0 anonymous users