a4k-openproject / plugin.video.openmeta

GNU General Public License v3.0
3 stars 3 forks source link

[Bug] Vstream player #49

Closed melmel0101 closed 4 years ago

melmel0101 commented 4 years ago

Hello Describe the bug When i'm chosing "vstream " player it's working (I have add it : https://github.com/Arias800/zonal.vstream.o.metalliq.json/raw/master/zonal.vstream.o.metalliq.json). But it's not showing the results. (it's working endlessly)

Thanks

Platform

melmel0101 commented 4 years ago

It's strange because with plugin.video.metalliq, with plugin.video.chappaai.. it's running correctly. I will try to see the difference in the code .. will see.

I think it's a problem of display response in folder. (there is action: ACTIVATE, in json player file)

melmel0101 commented 4 years ago

So I have changed play_base.py file (in addons\plugin.video.openmeta\resources\lib) I don't know if it's changing something else. But now Vstream addon player works. I have change in: def on_play_video(players, params, trakt_ids=None):

by: def on_play_video(players, params, trakt_ids=None): assert players action_cancel() selection = get_video_link(players, params) if not selection: return link = selection['path'] action = selection.get('action', '')

if action == "ACTIVATE": return xbmc.executebuiltin('ActivateWindow(10025,"%s")' % link)
elif link.startswith('videodb://'):
    return xbmc.executebuiltin('ActivateWindow(10025,"%s")' % link)
elif link.endswith('.strm'):
    return action_playmedia(link)
else:
    if trakt_ids:
        plugin.setProperty('script.trakt.ids', json.dumps(trakt_ids))
    return link
return None