Página 27 de 95
Re: Italian channels issues and development
Publicado: 16 Ago 2015, 16:37
por superdanni
I will not start any movie from itastreaming

arrives at the server (only GoogleVideo) and then does nothing
They do not appear even though the covers there is the plot
A me non parte nessun film da itastreaming

arriva alla selezione server (solo googlevideo) e poi non fa più niente
non mi compaiono nemmeno le copertine però c'è la trama
Re: Italian channels issues and development
Publicado: 16 Ago 2015, 17:00
por zanzibar1982
@DrZ3r0
The channel sheet for itastreaming.co seems OK, I can browse the site but:
I can't see movie posters thumbnails,
cannot play googlevideos on movie streams even if I triple-checked that
I am using the googlevideo.py on dentaku's repo. What am I doing wrong?
Furthermore, my channelselector.py seems not able to get the site's icon.png,
so I uploaded an alternative thumbnail icon here in case you need:
http://i.imgur.com/R8plE1H.png
Re: Italian channels issues and development
Publicado: 16 Ago 2015, 19:11
por DrZ3r0
Hi,
thumbnails and icons are not seen because of cloudflare.
I have not found a way for them to work.
On ItaStreaming there are only videos from GoogleVideo.
For the problem that videos don't work it is because of windows: I am to committed a fix.
Re: Italian channels issues and development
Publicado: 16 Ago 2015, 19:27
por DrZ3r0
Fixed,
bye
Re: Italian channels issues and development
Publicado: 16 Ago 2015, 19:37
por zanzibar1982
TY DrZ3r0

Re: Italian channels issues and development
Publicado: 16 Ago 2015, 22:03
por zanzibar1982
Hola guys,
I made the channel for animesubita.info (even if a lot of content now is available only on Vvvvid.it)
but "findvideos" action is not working.
Help, anybody?
Código: Seleccionar todo
# -*- coding: utf-8 -*-
#------------------------------------------------------------
# pelisalacarta - XBMC Plugin
# Canal para animesubita
# http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/
#------------------------------------------------------------
import urlparse,urllib2,urllib,re
import os, sys
from core import logger
from core import config
from core import scrapertools
from core.item import Item
from servers import servertools
__channel__ = "animesubita"
__category__ = "A"
__type__ = "generic"
__title__ = "animesubita"
__language__ = "IT"
sito="http://www.animesubita.info/"
headers = [
['Host','www.animesubita.info'],
['User-Agent','Mozilla/5.0 (Windows NT 6.3; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0'],
['Accept-Encoding','gzip, deflate']
]
def isGeneric():
return True
def mainlist( item ):
logger.info( "pelisalacarta.animesubita mainlist" )
itemlist = []
itemlist.append( Item( channel=__channel__, title="[COLOR azure]Anime - Novita'[/COLOR]", action="novedades", url=sito ) )
itemlist.append( Item( channel=__channel__, title="[COLOR azure]Anime - Per Genere[/COLOR]", action="categorias", url=sito+"cerca-per-genere/" ) )
itemlist.append( Item( channel=__channel__, title="[COLOR azure]Anime - Lista A-Z[/COLOR]", action="categorias", url=sito+"lista-anime-streaming/") )
itemlist.append( Item( channel=__channel__, title="[COLOR yellow]Cerca Anime...[/COLOR]", action="search", thumbnail="http://dc467.4shared.com/img/fEbJqOum/s7/13feaf0c8c0/Search" ) )
return itemlist
def novedades( item ):
logger.info( "pelisalacarta.animesubita peliculas" )
itemlist = []
## Descarga la pagina
data = scrapertools.cache_page( item.url )
## Extrae las entradas (carpetas)
patron = '<div class="video-item">.*?<div class="item-thumbnail">.*?<a href="(.*?)" title="(.*?)"><img src="(.*?)" '
matches = re.compile( patron, re.DOTALL ).findall( data )
for scrapedurl,scrapedtitle,scrapedthumbnail in matches:
title = scrapertools.decodeHtmlentities( scrapedtitle )
itemlist.append( Item( channel=__channel__, action="findvideos", title=scrapedtitle, url=scrapedurl, thumbnail=scrapedthumbnail, viewmode="movie_with_plot") )
return itemlist
def categorias(item):
logger.info("pelisalacarta.animesubita categorias")
itemlist = []
data = scrapertools.cache_page( item.url )
# The categories are the options for the combo
patron = '<li><a title="(.*?)" href="(.*?)">.*?</a> <span class="mctagmap_count">.*?</span></li>'
matches = re.compile(patron,re.DOTALL).findall(data)
for scrapedtitle, scrapedurl in matches:
itemlist.append( Item( channel=__channel__, action="selection" , title=scrapedtitle, url=scrapedurl ) )
return itemlist
def selection( item ):
logger.info( "pelisalacarta.animesubita peliculas" )
itemlist = []
## Descarga la pagina
data = scrapertools.cache_page( item.url )
## Extrae las entradas (carpetas)
patron = '<div class="item-head">.*?<h3><a href="(.*?)".*?rel=.*?title="(.*?)">.*?</h3>'
matches = re.compile( patron, re.DOTALL ).findall( data )
for scrapedurl,scrapedtitle in matches:
itemlist.append( Item( channel=__channel__, action="episodios", title=scrapedtitle, url=scrapedurl) )
return itemlist
def episodios( item ):
logger.info( "pelisalacarta.animesubita peliculas" )
itemlist = []
## Descarga la pagina
data = scrapertools.cache_page( item.url )
## Extrae las entradas (carpetas)
patron = '<div class="col-md-3 col-sm-6 col-xs-6 ">.*?<div class="item-head">.*?<h3><a href="(.*?)".*?title="(.*?)">.*?</a>'
matches = re.compile( patron, re.DOTALL ).findall( data )
for scrapedurl,scrapedtitle in matches:
itemlist.append( Item( channel=__channel__, action="findvideos", title=scrapedtitle, url=scrapedurl) )
return itemlist
def search( item, texto ):
logger.info( "[animesubita.py] " + item.url + " search " + texto )
item.url = sito + "?s=" + texto
try:
return selection( item )
# Se captura la excepción, para no interrumpir al buscador global si un canal falla
except:
import sys
for line in sys.exc_info():
logger.error( "%s" % line )
return []
Keep things up using GitHub
Publicado: 17 Ago 2015, 10:48
por kalika303
Hello guys and thanks for the hard work you did.
As a developer, I would really like to help your effort and I'm reading through the plugin documentation to understand its internal API.
So a couple of questions:
- I've started here: http://www.mimediacenter.info/2009/09/2 ... a-parte-1/ – do you know if there is an English version? Would be better then Google Translate;
- Why don't you use GitHub for development? Adding issues would help a lot other developers taking on easier tasks and relate pull requests to features or bugs;
- Do you have any other comments or links for anyone willing to cooperate? Some guidelines and suggested behaviours?
Re: Italian channels issues and development
Publicado: 17 Ago 2015, 10:56
por zanzibar1982
@kalika303
Hi, and welcome!
Our githubs are here, in first post you can find the differences. Basically, the two repos are the same.
https://github.com/Zanzibar82/pelisalac ... n-channels
https://github.com/dentaku65/pelisalacartait
for a guide, here
http://pastebin.com/m5dekFSc I translated in italian an old guide by Jesus that I found helpful to begin with.
As for suggestions, I suggest as follows:
1) search this forum the keywords in english and spanish, if you find nothing then open an english thread in the right section: you'll have the replies you're looking for sooner or later.
2) Examinate the italian channels .py sheet files. They are very different, as different as the websites are, so you might learn something there. "guardaserie" took days to be edited by developers, eurostreaming only took 4-5 hours to be edited by my ignorance
3) understand it's about regular expressions to extract from a downloaded html page only the info you need. Most of the time the entries, or "matches" for each content, are: url=scrapedurl, title=scrapedtitle, thumbnail=scrapedthumbnail. Just look at the casacinema.py sheet in /pelisalacarta/channels .
4) You can check the modifies you apply to the .py file you edit having Kodi opened in windowed mode, exiting and re-entering the channel you are editing (if you edit the files in the plugin.video.pelisalacarta folder, of course)
Re: Italian channels issues and development
Publicado: 17 Ago 2015, 11:44
por kalika303
Thanks @zanzibar1982 for the complete answer.
Just to explain me better: sure I saw the two GitHub accounts (and cloned them

). What I was talking about, is managing issues through GitHub. Please, open tasks there for bugs and new features you need support with, even writing documentation if needed. Its a good way to let other people start.
Just my two cents!
Re: Italian channels issues and development
Publicado: 17 Ago 2015, 15:34
por dentaku65
Hello all,
sorry folks I'm still in vacation

... for features and bugs I personally agree with kalika3 to use directly github... my only doubt is regarding users that follow us here and are not confident with github,,, for zanzibar and drz3r0 what about to start over with a single repository on github?... my idea was to clone this one
https://github.com/conejoninja/plugin.v ... isalacarta and adding our stuff,,, in this way we can uninstall and reinstall the addon as soon as we implement a new channel and we can take on board kalika as new developer...by se u soon den