2015-10-14, 18:27
Hi everyone,
I developed a very simple plugin based on the t0mm0's test addon. Then I created a file with the name of the movie and .strm extension, that I imported in the Kodi video library, with the following text inside:
plugin://script.module.teststream/?url=http://www.nowvideo.sx/video/abcde12345
When I start the movie I don't see the title and the poster in the player but a generic icon and the name of the stream file, for example efghijklmno6789.flv. So what should I do in order to see the poster and movie name in the video player
Thanks for your help!
This is the script
I developed a very simple plugin based on the t0mm0's test addon. Then I created a file with the name of the movie and .strm extension, that I imported in the Kodi video library, with the following text inside:
plugin://script.module.teststream/?url=http://www.nowvideo.sx/video/abcde12345
When I start the movie I don't see the title and the poster in the player but a generic icon and the name of the stream file, for example efghijklmno6789.flv. So what should I do in order to see the poster and movie name in the video player
Thanks for your help!
This is the script
PHP Code:
import os
import re
import string
import sys
from t0mm0.common.addon import Addon
from t0mm0.common.net import Net
import urlresolver
addon = Addon('script.module.teststream', sys.argv)
net = Net()
mode = addon.queries['mode']
play = addon.queries.get('play', None)
url = addon.queries.get('url', '')
host = addon.queries.get('host', '')
media_id = addon.queries.get('media_id', '')
#stream_url = urlresolver.resolve(play)
stream_url = urlresolver.HostedMediaFile(url=url, host=host, media_id=media_id).resolve()
addon.resolve_url(stream_url)