Recent Changes - Search:

LiveStreamsPro

PmWiki

pmwiki.org

edit SideBar

Redirection

Redirection or better say no redirection will not follow any redirect or location directives in the HTML

The <noredirection>true</noredirection> won’t do the redirection so that’s it, it will return whatever html is received. This can be used for example when ffmpeg doesn’t correctly redirect to the new server.

There is another tag <includeheaders/> which append the headers with the html at the end and return back, the format is $$HEADERS_START$$:headername:headervalue$$HEADERS_ END$$

Here is the sample output.
Code:
$$HEADERS_START$$:content-length:0
  server:FlashCom/3.5.5
  connection:Keep-Alive
  location:http://109.68.40.71:1935/castGeo/smil:inter.smil/playlist.m3u8
  cache-control:no-cache
  content-type:text/html
$$HEADERS_END$$:


For request example:
Code:

<item>
    <title>Testing RegEx **lb1.itcons.net.ua**</title>
    <link>$doregex[get-url]|User-Agent=android</link>
    <regex>
        <name>get-url</name>
        <expres>location:(.*)</expres>
        <page>http://lb1.itcons.net.ua:1935/inters/redirect.hls?smil:inter.smil</page>
        <agent>android</agent>
        <cookieJar></cookieJar>
        <noredirect>true</noredirect>
        <includeheaders/>
    </regex>
</item>


Example resolve correct stream url not found by Kodi/ffmpeg:
<item>
    <title>test</title>
    <link>$doregex[geturl]</link>
    <regex>
        <name>geturl</name>
        <expres>location:(.*?)\s</expres>
        <page>http://public.tuiptv.biz/public/PlayList.php?id=2fc613e1-5c2a-4dfa-b942-190cac0aa63c&amp;channel=1</page>
        <noredirect>true</noredirect>
        <includeheaders/>
        <cookieJar></cookieJar>
    </regex>
</item>

Edit - History - Print - Recent Changes - Search
Page last modified on February 26, 2016, at 06:04 AM