|
ResolveUrlUse ResolveUrl script module to resolve streams Resolve streams from many popular hosters such as openload and pass the url to the Kodi player. For more information: https://github.com/jsergio123/script.module.resolveurl.
<item> <title>Big Buck Bunny</title> <urlsolve>https://vimeo.com/1084537</urlsolve> </item> Using py code block: <item> <title>tvaddons.ag | carlomono1</title> <link>$doregex[id3]</link> <regex> <name>id3</name> <expres><![CDATA[#$pyFunction def GetLSProData(page_data,Cookie_Jar,m): import resolveurl url = 'https://vimeo.com/1084537' try: u = resolveurl.resolve(url) except: u = 'http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8' return u ]]></expres> <page></page> </regex> <item> NOTE: It will generate an error if the file has been removed or if the host is not supported and your code always expects resolveurl to resolve it. Writing it this way would handle the unknown host or if the file has been deleted. You can set up any video as the exception notification. |