Página 14 de 95

Re: Italian channels issues and development

Publicado: 30 Jul 2015, 19:48
por zanzibar1982
@Chryses

Well then let me know if everything is in order now and if there are any kind of issues with files and channels.

Re: Italian channels issues and development

Publicado: 30 Jul 2015, 20:51
por federdea
zanzibar1982 escribió:@Chryses
Regarding view mode
zanzibar1982 escribió:Trovai questo illo tempore

http://forum.kodi.tv/showthread.php?tid=133342

ma non ho mai provato perchè mi costerebbe perdere tante altre impostazioni

di kodi che tornerebbero di default.

Il post sopra tiene conto che tu usi la skin Confuence di default.

EDIT:

il file da editare è MyVideoNav.xml e si trova in
C:\Program Files (x86)\Kodi\addons\skin.confluence\720p
Regarding putting my files in a proper order,
I did not think anyone was downloading from
my git, but ok I'll sort them out.
anche io scarico sempre dal tuo github! Continuate così che state facendo un lavorone!! :D

Re: Italian channels issues and development

Publicado: 30 Jul 2015, 21:22
por zanzibar1982
@federdea

nice to hear that, hope the new sorted out files complies with requests.

Anyway, there is something threatening regarding cb01.eu, one of Italian's biggest source for streaming,

as they link the same content to many different hosts.

As you may have noticed opening site with the browser, there are pages redirecting to videos, where you have

to "press to continue".

The thing is that pelisalacarta has not all the necessary "server" files to bypass the newer services they are using to relink,

so ATM when the python script scrapes for video links it can only find a couple between the many.

If they change even the last two servers working, the channel becomes useless.

Trying to sort this thing out now.

I haven't figure out yet how to edit server files myself, and don't want to bother robalo all the time

for problems like these. He's done so much already.

Re: Italian channels issues and development

Publicado: 30 Jul 2015, 22:19
por zanzibar1982
Okay, looks like cb01.eu is using this service http://swzz.xyz to protect links like nowvideo.

Pelisalacarta servers like adfly.py takes the url to linkdecripter.com which usually gives back the link to the video page,

where the findvideo action then takes place.

Thing is linkdecripter service does not support above service yet.

Suggestions?

Re: Italian channels issues and development

Publicado: 30 Jul 2015, 23:28
por zanzibar1982
A friend of mine was having errors loading videos from nowvideo on android device, even if at home he had

google dns set on router (I checked his modem myself).

In the end we fixed the issue installing this app

https://play.google.com/store/apps/deta ... edns&hl=it

Re: Italian channels issues and development

Publicado: 30 Jul 2015, 23:36
por dentaku65
I suppose this can do the job for http://swzz.xyz/link/YV9Ll/ links type

Código: Seleccionar todo

req = urllib2.Request(starturl, datagen, headers)
res = urllib2.urlopen(req)
finalurl = res.geturl()

Re: Italian channels issues and development

Publicado: 30 Jul 2015, 23:57
por zanzibar1982
In the head of file I gave:

Código: Seleccionar todo

headers = [
    ['Host','http://www.cb01.eu'],
    ['User-Agent','Mozilla/5.0 (Windows NT 6.1; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0'],
    ['Accept-Encoding','gzip, deflate']
]
And in peliculas item:

Código: Seleccionar todo

for match in matches:
        scrapedtitle = scrapertools.unescape(match[2])
        scrapedurl = urlparse.urljoin(item.url,match[1])
        req = urllib2.Request(starturl, datagen, headers)
        res = urllib2.urlopen(req)
        finalurl = res.geturl()
        scrapedthumbnail = urlparse.urljoin(item.url,match[0])
        scrapedthumbnail = scrapedthumbnail.replace(" ", "%20");
        scrapedplot = scrapertools.unescape(match[3])
        scrapedplot = scrapertools.htmlclean(scrapedplot).strip()
        if (DEBUG): logger.info("title=["+scrapedtitle+"], url=["+scrapedurl+"], thumbnail=["+scrapedthumbnail+"]")
        itemlist.append( Item(channel=__channel__, action="findvideos" , title=scrapedtitle, url=finalurl, thumbnail=scrapedthumbnail, plot=scrapedplot, viewmode="movie_with_plot", fanart=scrapedthumbnail))
but gives error.

I think we should put a "pressed button emulator" line.

or am I doing it wrong?

Re: Italian channels issues and development

Publicado: 31 Jul 2015, 00:17
por dentaku65
I'm pretty sure it needs an emulator under /Servers but the code posted above should resolve the link redirection natively...I have no idea how to implement a server though 8-)

Re: Italian channels issues and development

Publicado: 31 Jul 2015, 04:10
por zanzibar1982
I could not sleep on that. :?

In page http://www.cb01.eu/kristy-hd-3d-2015/ we have for nowvideo http://swzz.xyz/link/Y6QV1/

that actually contains this string:

Código: Seleccionar todo

eval(function(p,a,c,k,e,d){e=function(c){return c};if(!''.replace(/^/,String)){while(c--){d[c]=k[c]||c}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('2 1="0://3.4.6/5/7";',8,8,'http|link|var|www|nowvideo|video|li|3610bbd982982'.split('|'),0,{}))
So it should not be difficult to generate a link to the movie page (not at all if you are robalo :) ).

"Findvideos" action takes place in first link posted here; we need to insert an "if" case for it, so that

if there's an url page starting with "http://swzz.xyz/link" then it has to go to above code string, and extract

"www|nowvideo|video|li|3610bbd982982" and re-format as http://www.nowvideo.li/video/3610bbd982982,

and then pass generated new url to "findvideos".

And that is just for nowvideo links! :lol:

Because for another host which pelisalacarta has a server for, like streamin.to, for the same movie we have this link,

http://swzz.xyz/link/Y8lnZ/ which contains the string:

Código: Seleccionar todo

eval(function(p,a,c,k,e,d){e=function(c){return c};if(!''.replace(/^/,String)){while(c--){d[c]=k[c]||c}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('1 0="2://3.4/5";',6,6,'link|var|http|streamin|to|jf3rf09eqnzj'.split('|'),0,{}))
so http|streamin|to|jf3rf09eqnzj should become http://www.streamin.to/jf3rf09eqnzj

the operation to extract the two links must be different for each one of them.

I really wish I didn't quit school to be a pizza chef.

Re: Italian channels issues and development

Publicado: 31 Jul 2015, 18:36
por blueste69
If i use the channelselector.py provided in this forum, the pelisalacarta addon doesn't even start, giving me an error
Has anyone had the same problem?

Thanks

Stefano