|
HeadersHTTP request headers are supported for regex blocks and for the final url inside the link element
<regex> <name>get-page</name> <expres>"m3u8_url":"(.*?)"</expres> <page>http://WebpageAddress.com</page> <x-forward>1.1.1.2</x-forward> <referer>http://myref.com</referer> <agent /> <accept /> </regex>
Following is the sample which returns the fill html, its not playable as it just demostrate that how you can get the header and create cookie. The log file should tell the full html. The format will be like: $$HEADERS_START$$:HEADERNAME:HEADERVALUE HEADERNAME:HEADERVALUE HEADERNAME:HEADERVALUE HEADERNAME:HEADERVALUE $$HEADERS_END$$:
Example 1: <item> <title>testing headers</title> <link>$doregex[getPage]</link> <regex> <name>getPage</name> <expres /> <page>http://torrent-tv.ru/torrent-online.php?translation=11642</page> <setcookie>BHC=$doregex[getCookie]</setcookie> <referer>http://torrent-tv.ru/torrent-online.php?translation=11642</referer> </regex> <regex> <name>getCookie</name> <expres>x-bh-token:(.*?)\s</expres> <page>http://torrent-tv.ru/banhammer/pid</page> <includeheaders></includeheaders> </regex> </item> Example 2: <item> <title>Movistar F1</title> <link>plugin://plugin.video.p2p-streams/?url=$doregex[hash]&mode=1&name=acestream+title</link> <regex> <name>hash</name> <expres>this.loadPlayer."(.*?)"</expres> <page>http://torrent-tv.ru/torrent-online.php?translation=11642</page> <setcookie>BHC=$doregex[getCookie]</setcookie> <referer>http://torrent-tv.ru/torrent-online.php?translation=11642</referer> </regex> <regex> <name>getCookie</name> <expres>x-bh-token:(.*?)\s</expres> <page>http://torrent-tv.ru/banhammer/pid</page> <includeheaders></includeheaders> </regex> <thumbnail></thumbnail> </item> |