Recent Changes - Search:

LiveStreamsPro

PmWiki

pmwiki.org

edit SideBar

UrlResolver

Use UrlResolver script module to resolve streams

It will generate error if the file has been removed or if the host is not supported and your code always expects urlresolver 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.

For example:

Code:

<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 urlresolver
   url = 'https://userscloud.com/embed-tu8jeh9rhkzg.html'
   try:
       u = urlresolver.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>
\\\

Edit - History - Print - Recent Changes - Search
Page last modified on October 15, 2016, at 01:44 PM