@plugin.route('/play/<url>')
def play_video_by_url(url):
 quality = plugin.get_setting('quality')
 url = api.get_media_stream_by_url(quality, url)
 plugin.log.info(('Play Quality: %s' % quality))
 plugin.log.info(('Playing url: %s' % url))
 return plugin.set_resolved_url(url)

@ plugin . route ( '/play/<url>' ) def play_video_by_url ( url ) : quality = plugin . get_setting ( 'quality' ) url = api . get_media_stream_by_url ( quality , url ) plugin . log . info ( ( 'Play Quality: %s' % quality ) ) plugin . log . info ( ( 'Playing url: %s' % url ) ) return plugin . set_resolved_url ( url )
this method is used to play any shahid .