Help for Regex

Status
Not open for further replies.

kayrak

New member
Dec 30, 2015
7
0
0
Hi
I have tried this witp php script watching, but don,t working.
Do you have a idea, where i make wrong?
this is my php script:
<?php

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://bg-gledai.org/geto2.php?my=btv");
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36");
curl_setopt($ch, CURLOPT_REFERER, "http://www.bg-gledai.tv/");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$site1 = curl_exec($ch);
curl_close ($ch);

preg_match("/else.*\s.*hash.+3D(.*?).27/", $site1, $icerik1);

$site2 ="http://bg-gledai.org/eplaylist.php?my=btv&hash=$icerik1[1]";

$headers = [
'Accept: */*',
'Connection: keep-alive',
'Referer: http://bg-gledai.org/geto2.php?my=btv',
'User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36',
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "$site2");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$site3 = curl_exec($ch);
curl_close ($ch);

preg_match("/>(h.*?[^<]+)/", $site3, $icerik2);
$m3u8 = str_replace('amp;','',$icerik2[1]);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $m3u8);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36");
curl_setopt($ch, CURLOPT_REFERER, "http://bg-gledai.org/geto2.php?my=http://bg-gledai.org/eplaylist.php?my=btv");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$site4 = curl_exec($ch);
curl_close ($ch);

header("Content-type: application/x-mpegURL");
header ("Location: $site4");
?>
 

udomrat

New member
Nov 10, 2016
14
4
3
not play on kodi 17.5

not play on kodi 17.5
Code:
<item> 
<title>thor-ragnarok-2017</title> 
<link>$doregex[makelist]</link> 
<thumbnail></thumbnail> 
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
	<title>[makelist.param1]</title>
    <link>[makelist.param2]</link>
    <thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA["label":"(.*?)".*?"file":"(https[^"']+)"]]></expres>
<page>https://www.leoplayer3.com/movie3?v=907548</page>
<referer>https://www.leoplayer3.com/</referer>
<agent>Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0</agent>
</regex>
</item>

Where i can find read old forum LSP?

thank.
 
Last edited:

afzal

New member
Jul 19, 2014
24
1
3
Hello Members,

Can't we will have a thread with XML request or shall we just request here ?
 

vbprofi

Member
Feb 9, 2016
72
3
8
Hi,
I hope, I get a work solution here.

have someone an idea, how I can sort list for watched streams?
I try sort a big list from a-z and Need the watched streams on top of the list.

With this Code I have sort by Alphabetical.
Code:
 from operator import itemgetter
 ck = sorted(ck, key=itemgetter(1)) #1 = title
So I Need an solution for both (sort by Alphabetical and sort by watched (likes button in Kodi).)

Or an other ask:
How I can mark Items in Array and bring that to top?

Example:
corrent List
channel 1
channel 2
channel 3 watched
channel 5
channel 6 watched
channel 7

I Need that list:
channel 3 watched
channel 6 watched
channel 1
channel 2
channel 5
channel 7

best regards
 

kavan

Member
Aug 14, 2016
62
5
8
Hello everyone,

I need help getting the regex
for this page
Code:
telewebion.com/live/tv3
I had one
Code:
pastebin.com/raw/CuCdKT1W
But it is no longer working at all


Thanks and advance
 

streamwatcher2013

Well-known member
Oct 24, 2013
786
318
63
USA
Hi,
I hope, I get a work solution here.

have someone an idea, how I can sort list for watched streams?
I try sort a big list from a-z and Need the watched streams on top of the list.

With this Code I have sort by Alphabetical.
Code:
 from operator import itemgetter
 ck = sorted(ck, key=itemgetter(1)) #1 = title
So I Need an solution for both (sort by Alphabetical and sort by watched (likes button in Kodi).)

Or an other ask:
How I can mark Items in Array and bring that to top?

Example:
corrent List
channel 1
channel 2
channel 3 watched
channel 5
channel 6 watched
channel 7

I Need that list:
channel 3 watched
channel 6 watched
channel 1
channel 2
channel 5
channel 7

best regards
Post the url and I may look into it.
 

egymummy

New member
May 5, 2017
1
0
0
This Code Has been Corrected By You Couple of days Ago for someone Else
and You sent Him The new Code Via PM
Can U share The New Code With Me Please

Web Page
hxxp.telewebion.com/live/tv3

Thanks
 
Last edited by a moderator:

hugoladeira

New member
Jan 9, 2014
6
0
0
Hi

Thank you streamwatcher for putting the page up again

Can you guys help me with this one

Code:
hxxp://sportsonline.pw/channels/pt/sporttv1.html
Thank you in advance
 
Status
Not open for further replies.