|
UrlResolverUse ResolveUrl script module to resolve streams Resolve streams from many popular hosters such as openload and pass the url to the Kodi player.
<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://userscloud.com/embed-tu8jeh9rhkzg.html' try: u = resolveurl.resolve(url) except: u = 'http://projects.net.in.tum.de/projects/videoaufzeichnungen/export/339/andre/public/vids/ilab1/video.mp4' return u ]]></expres> <page></page> </regex> <item> NOTE:It will generate 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. |