2014-09-27, 02:20
Extended script stopped showing me plot roling for movies in moviesets on wall view
script ver. 0.0.8
Openelec 4.2.0
Gotham 13.2
script ver. 0.0.8
Openelec 4.2.0
Gotham 13.2
(2014-09-27, 02:20)djhifi Wrote: Extended script stopped showing me plot roling for movies in moviesets on wall view
script ver. 0.0.8
Openelec 4.2.0
Gotham 13.2
(2014-09-28, 22:32)phil65 Wrote: you can do "similarlocal" (similar from own db, movies only), "similarmovies" (fetches from TheMovieDB), "similarmoviestrakt" and "similartvshowstrakt" (Trakt.TV)
I never had any info=comments as far as i can remember.
<onload condition="System.HasAddon(script.extendedinfo) + Container.Content(movies)">RunScript(script.extendedinfo,info=comments,dbid=$INFO[ListItem.DBID],type=movie)</onload>
<onload condition="System.HasAddon(script.extendedinfo) + Container.Content(tvshows)">RunScript(script.extendedinfo,info=comments,dbid=$INFO[ListItem.DBID],type=tvshow)</onload>
(2014-09-29, 02:39)ZexisStryfe Wrote:(2014-09-28, 22:32)phil65 Wrote: you can do "similarlocal" (similar from own db, movies only), "similarmovies" (fetches from TheMovieDB), "similarmoviestrakt" and "similartvshowstrakt" (Trakt.TV)
I never had any info=comments as far as i can remember.
similartvshowstrakt and similarmoviestrakt would be great, but there is a severe limitation- the items have to be in your database. I am looking to use similar movies/tvshows when looking at the details of something in airingtvshows, premiereshows, trendingshows, etc. You used to be able to do this with 'similar'. I can use 'similarmovies' for trendingmovies, but there is no tv show equivalent. I also preferred when they both fell under the similar command- that way I didn't have to dupe entire content sections and only had to add a second onload parameter calling the tvshows.
Re- similartvshowstrakt and similarmoviestrakt. What is the syntax for calling these (is it SimilarMoviesTrakt.property/SimilarTvshowsTrakt.property?) and what properties exist for them? I can't find any documentation on them.
Re- comments. This definitely existed prior. It pulled the comments from Trakt.TV. Maybe Nessus added this when he was maintaining it? I still have these lines of code in my skin-
Code:<onload condition="System.HasAddon(script.extendedinfo) + Container.Content(movies)">RunScript(script.extendedinfo,info=comments,dbid=$INFO[ListItem.DBID],type=movie)</onload>
<onload condition="System.HasAddon(script.extendedinfo) + Container.Content(tvshows)">RunScript(script.extendedinfo,info=comments,dbid=$INFO[ListItem.DBID],type=tvshow)</onload>
(2014-09-29, 02:48)phil65 Wrote: no, they don´t have to be in your database (that´s when using dbid=). You can also use id= and put in an imdbid you have pulled from some other method.
I could rename both property prefixes to SimilarTrakt if that helps (I don´t care since I only use the plugin:// method)
The last part can best be answered by Nessus.
(2014-09-29, 02:56)ZexisStryfe Wrote:(2014-09-29, 02:48)phil65 Wrote: no, they don´t have to be in your database (that´s when using dbid=). You can also use id= and put in an imdbid you have pulled from some other method.
I could rename both property prefixes to SimilarTrakt if that helps (I don´t care since I only use the plugin:// method)
The last part can best be answered by Nessus.
Combining the two SimilarTrakt with a info=movies/info=tvshows would be awesome. I will try SimilarTVshowsTrakt in the meantime (you had only put DBID in your documentation hence why I though that was all you could use). What properties are available and are they called by using Window(Home).Property(SimilarTvshowsTrakt.x.propertyname)?
def HandleTraktMovieResult(results):
count = 1
movies = []
for movie in results:
try:
premiered = str(datetime.datetime.fromtimestamp(int(movie["released"])))[:10]
except:
premiered = ""
try:
movie = {'Title': movie["title"],
'Runtime': movie["runtime"],
'Duration': movie["runtime"],
'Tagline': movie["tagline"],
'Trailer': ConvertYoutubeURL(movie["trailer"]),
'Year': movie["year"],
'ID': movie["tmdb_id"],
'Path': "plugin://script.extendedinfo/?info=playtrailer&&id=" + str(movie.get('tmdb_id', "")),
'mpaa': movie["certification"],
'Plot': movie["overview"],
'Premiered': premiered,
'Rating': movie["ratings"]["percentage"] / 10.0,
'Votes': movie["ratings"]["votes"],
'Watchers': movie["watchers"],
'Genre': " / ".join(movie["genres"]),
'Art(poster)': movie["images"]["poster"],
'Poster': movie["images"]["poster"],
'Art(fanart)': movie["images"]["fanart"],
'Fanart': movie["images"]["fanart"]}
movies.append(movie)
except Exception as e:
log(e)
count += 1
if count > 20:
break
return movies
def HandleTraktTVShowResult(results):
count = 1
shows = []
for tvshow in results:
try:
premiered = str(datetime.datetime.fromtimestamp(int(tvshow["first_aired"])))[:10]
except:
premiered = ""
show = {'Title': tvshow["title"],
'Label': tvshow["title"],
'TVShowTitle': tvshow["title"],
'Runtime': tvshow["runtime"],
'Duration': tvshow["runtime"],
'Year': tvshow["year"],
'Status': tvshow.get("status", ""),
'mpaa': tvshow["certification"],
'Studio': tvshow["network"],
'Plot': tvshow["overview"],
'ID': tvshow["tvdb_id"],
'AirDay': tvshow["air_day"],
'AirShortTime': tvshow["air_time"],
'Label2': tvshow["air_day"] + " " + tvshow["air_time"],
'Premiered': premiered,
'Country': tvshow["country"],
'Rating': tvshow["ratings"]["percentage"] / 10.0,
'Votes': tvshow["ratings"]["votes"],
'Watchers': tvshow.get("watchers", ""),
'Genre': " / ".join(tvshow["genres"]),
'Art(poster)': tvshow["images"]["poster"],
'Poster': tvshow["images"]["poster"],
'Art(banner)': tvshow["images"]["banner"],
'Art(fanart)': tvshow["images"]["fanart"],
'Fanart': tvshow["images"]["fanart"],
'Thumb': tvshow["images"]["fanart"]}
shows.append(show)
count += 1
if count > 20:
break
return shows