Posts: 48
Joined: Aug 2020
Reputation:
0
Hey guys!
I need help filtering fanart with language.
I'm using the script below to bring background, but it's bringing no language.
How do I bring with language?
<content sortby="random" limit="5">plugin://plugin.video.themoviedb.helper/?info=upcoming&;type=movie</content>
Posts: 48
Joined: Aug 2020
Reputation:
0
Can help where I enter this command line. Please
Posts: 48
Joined: Aug 2020
Reputation:
0
When I add this line, it doesn't bring up any image, just black screen. How much shooting brings fanart. Looking at the tmdb helper plugin Wiki, there is nothing lanscape, I think the plugin does not have landscape support
Posts: 48
Joined: Aug 2020
Reputation:
0
After reading a lot lol, I did what you asked me to, but with the command line:
<value condition="!String.IsEmpty(Container(12341).ListItem.Art(landscape))>$INFO[Container(12341).ListItem.Art(landscape)]</value>
Nothing happens just black screen.
If I remove the first line leaving just like this:
<variable name="art">
<value>$INFO[Container(12341).ListItem.Art(fanart)]</value>
</variable>
He brings back the fanarts, without language.
Can you still help me?
s the plugin compatible with landscape TMDB?
If it helps I'm using the PELLUCID skin
I'm using this plugin for home screen background, to search for images of movies and TV Show in a random way, but that will have the name of the movie or TV SHow in the image.
Thank you very much for your attention.
Posts: 48
Joined: Aug 2020
Reputation:
0
I don't know if it helps.
But in a file plugin.video.themoviedb.helper
FILE: tmdb.py
There is this setting where it deals with image language.
But I don't have any knowledge to modify.
class TMDb(RequestAPI):
def __init__(self, api_key=None, language=None, cache_long=None, cache_short=None, append_to_response=None, mpaa_prefix=None, filter_key=None, filter_value=None, exclude_key=None, exclude_value=None):
super(TMDb, self).__init__(
cache_short=cache_short, cache_long=cache_long,
req_api_name='TMDb', req_api_url='https://api.themoviedb.org/3', req_wait_time=0,
req_api_key='api_key=a07324c669cac4d96789197134ce272b')
api_key = api_key if api_key else 'a07324c669cac4d96789197134ce272b'
language = language if language else 'en-US'
self.iso_language = language[:2]
self.iso_country = language[-2:]
self.req_language = '{0}-{1}&include_image_language={0},null'.format(self.iso_language, self.iso_country)
self.req_api_key = 'api_key={0}'.format(api_key)
self.req_append = append_to_response if append_to_response else None
self.imagepath_original = 'https://image.tmdb.org/t/p/original'
self.imagepath_poster = 'https://image.tmdb.org/t/p/w500'
self.mpaa_prefix = '{0} '.format(mpaa_prefix) if mpaa_prefix else ''
self.filter_key = filter_key if filter_key else None
self.filter_value = filter_value if filter_value else None
self.exclude_key = exclude_key if exclude_key else None
self.exclude_value = exclude_value if exclude_value else None
self.library = 'video'
Posts: 801
Joined: Aug 2009
Reputation:
187
roidy
Posting Freak
Posts: 801
Did you add the changes to both files?
Are you sure you made no mistakes in the code?
The changes I posted work perfectly fine for me.
Posts: 48
Joined: Aug 2020
Reputation:
0
Test with the line below
plugin://plugin.video.themoviedb.helper/?info=upcoming&;type=movie
plugin://plugin.video.themoviedb.helper/?info=popular&;type=movie