Hi all. I need anyone write regex to working on livestreams pro for this site:
https://player.mediaklikk.hu/playernew/player.php?video=mtv1live
Please help me and thank.
+ Reply to Thread
Results 1 to 8 of 8
-
-
The livestream on this site isnt protected at all, no regex is needed, just go to network tab and look for the m3u8
I help all that ask. -
Try this:
Code:#EXTM3U #EXT-X-VERSION:5 #EXT-X-MEDIA:TYPE=AUDIO,URI="https://c401-node62-cdn.connectmedia.hu/110301/32f1cd5ab416830945b9f503e5680a6a/67cafacb/301-M1_NOGEO-mp4a_140800_hun=1.m3u8",GROUP-ID="audio-AACL-141",LANGUAGE="hu",NAME="magyar",DEFAULT=YES,AUTOSELECT=YES,CHANNELS="2" #EXT-X-STREAM-INF:BANDWIDTH=4470590,AVERAGE-BANDWIDTH=4064173,CODECS="avc1.640028,mp4a.40.2",RESOLUTION=1920x1080,FRAME-RATE=25.000,AUDIO="audio-AACL-141" https://c401-node62-cdn.connectmedia.hu/110301/32f1cd5ab416830945b9f503e5680a6a/67cafacb/301-M1_NOGEO-avc1_3699968=7.m3u8
Last edited by G.T.X.R; 7th Mar 2025 at 08:02.
-
Here's an alternative solution if by regex you mean this
Code:import re import requests SOURCE_URL = "https://player.mediaklikk.hu/playernew/player.php?video=mtv1live" if __name__ == '__main__': response = requests.get(SOURCE_URL).text response = re.findall( r'"file"[^:]*:[^"]*"([^"]+)"', re.findall( r'"playlist"[^:]*:[^\[\]]*\[([^\[\]]*)]', response, re.MULTILINE )[0], re.MULTILINE ) for playlist in response: playlist = playlist.replace(r"\/", "/") command = f'streamlink "{playlist}" best' print(command)
Code:streamlink "https://c402-node62-cdn.connectmedia.hu/110301/149565f24e7c1ea453de4bc3530ed4e1/67c747a0/index.m3u8?v=5iip:<snipped>" best
--[----->+<]>.++++++++++++.---.--------.
[*drm mass downloader: widefrog*]~~~~~~~~~~~[*how to make your own mass downloader: guide*] -
Thank all for help...But any code not working on livestreams pro on kodi.
this is the regex of the M1 channel but now it doesn't work on kodi anymore. I want to fix it and thanks everyone
<item>
<title>M1</title>
<link>httpdoregex[Url]|User-Agent=iPad</link>
<regex>
<name>m3u8</name>
<expres>file": "(.*?)"</expres>
<page>https://player.mediaklikk.hu/playernew/player.php?video=mtv1live</page>
<referer>https://player.mediaklikk.hu/</referer>
</regex>
<regex>
<name>Url</name>
<expres>$pyFunction:'$doregex[m3u8]'.replace('\/','/')</expres>
<page></page>
</regex>
</item> -
Or without regex (windows) ... "s t r e a m 1080p hungary M 1 TV.cmd " :
Code:@echo off set "audio=https://c201-node62-cdn.connectmedia.hu/110301/cec9cadc015408be5c022a9ee473b1e3/67c72763/301-M1_NOGEO-mp4a_140800_hun=1.m3u8" set "video=https://c201-node62-cdn.connectmedia.hu/110301/cec9cadc015408be5c022a9ee473b1e3/67c72763/301-M1_NOGEO-avc1_3699968=7.m3u8" set "channel=s t r e a m 1080p hungary M 1 TV" set "vlc=%SystemDrive%\\progra~1\\VideoLAN\\VLC\\vlc.exe" for /f %%a in ('powershell -Command "Get-Date -format yyyy.MM.dd#HH.mm.ss"') do set datetime=%%a start "" /SEPARATE ffmpeg -i "%audio%" -i "%video%" -c copy "%channel%_%datetime%.ts"> nul timeout /t 3 /nobreak> nul if exist "%channel%_%datetime%.ts" start "" %vlc% --meta-title=" %channel% %datetime% " --file-caching=200 --fullscreen --directx-volume=1.0 --quiet "%channel%_%datetime%.ts" exit
-
I don't know KODI well. But this is the last attempt for me to get m 1 working on windows 7... Create "_s t r e a m 1080p hungary M 1 TV_.cmd"
Code:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @echo off&& cd /D "%~dp0"&& chcp 1252&& cls title= - r e c o r p l a y m 1 - G.T.X.R. Vers: 0.0.3 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ rem SWITCH: {toggle} start vlc (play) or start ffmpeg (rec) @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ rem set "start=vlc" set "start=ffmpeg" @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION set "url=https://player.mediaklikk.hu/playernew/player.php?video=mtv1live" set "REF=https://player.mediaklikk.hu/" set "channel=s t r e a m 1080p hungary M 1 TV" set "vlc=%SystemDrive%\\progra~1\\VideoLAN\\VLC\\vlc.exe" set "Agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Safari/605.1.15" rem ::HU= 084.000.000.000 084.003.255.255:: rem :: : :::::::r a n d o m i p::::::: : :: set maxval1=84 set minval1=84 set maxval2=3 set minval2=0 set maxval3=255 set minval3=0 set maxval4=255 set minval4=0 SET /A N0=%RANDOM% * 255 / 32768 SET /A N1=%RANDOM% * ^(%maxval1% - %minval1% + 1^) / 32768 + %minval1% SET /A N2=%RANDOM% * ^(%maxval2% - %minval2% + 1^) / 32768 + %minval2% SET /A N3=%RANDOM% * ^(%maxval3% - %minval3% + 1^) / 32768 + %minval3% SET /A N4=%RANDOM% * ^(%maxval4% - %minval4% + 1^) / 32768 + %minval4% SET "IP=%N1%.%N2%.%N3%.%N4%" ECHO.generated ip= %IP% if exist ".\*.log" del /F /Q ".\*.log" if exist ".\%channel%.m3u8" del /F /Q ".\%channel%.m3u8" wget -c --no-check-certificate -U "%Agent%" --referer=%REF% --header="X-Forwarded-For:%IP%" %url% -q -O "a.log" sed "s'\\/'/'gi; s/,/,\n/gi; " "a.log" > "b.log" sed "/\x22file\x22:/^!d; " "b.log" > "c.log" sed "s/.*\(https:\/\/.*\)\x22,.*/\1/gi; " "c.log" > "d.log" for /f "usebackq tokens=* delims=*" %%M in ("d.log") do ( set "M3U8=%%M" ) sed "s/.*\(https:\/\/.*\.connectmedia\.hu\/.*\/.*\/.*\)\/index\.m3u8.*/\1/; " "c.log" > "e.log" for /f "usebackq tokens=* delims=*" %%I in ("e.log") do ( set "init=%%I" ) wget -c --no-check-certificate -U "%Agent%" --referer=%REF% --header="X-Forwarded-For:%IP%" %M3U8% -q -O "f.log" sed " s/\\n/\n/gi; " "f.log" > "g.log" sed "/426x240/d; /640x360/d; /854x480/d; /960x540/d; /1280x720/d; /301-M1_NOGEO-avc1_400000/d; /301-M1_NOGEO-avc1_699968/d; /301-M1_NOGEO-avc1_1099968/d; /301-M1_NOGEO-avc1_1499968/d; /301-M1_NOGEO-avc1_1800000/d; " "g.log" > "h.log" for /f "usebackq tokens=* delims=*" %%G in ("h.log") do ( set "STREAM=%%G" set "STREAM=!STREAM:301-M1_NOGEO-mp4a=%init%/301-M1_NOGEO-mp4a!" set "STREAM=!STREAM:301-M1_NOGEO-avc1=%init%/301-M1_NOGEO-avc1!" echo.!STREAM!>> "i.log" echo.!STREAM!>> "%channel%.m3u8" ) sed "/301-M1_NOGEO-mp4a_140800_hun=/^!d; " "i.log" > "j.log" sed "/301-M1_NOGEO-avc1_3699968=/^!d; " "i.log" > "x-video.log" sed "s/#EXT-X-MEDIA:TYPE=AUDIO,URI=\x22\(https.*\.m3u8\)\x22,GROUP-ID=.*/\1/; " "j.log" > "x-audio.log" for /f "usebackq tokens=* delims=*" %%A in ("x-audio.log") do ( set "audio=%%A" ) for /f "usebackq tokens=* delims=*" %%V in ("x-video.log") do ( set "video=%%V" ) for /f %%a in ('powershell -Command "Get-Date -format yyyy.MM.dd#HH.mm.ss"') do set datetime=%%a if exist ".\*.log" del /F /Q ".\*.log" IF "%start%"=="vlc" ( if exist ".\%channel%.m3u8" start "" %vlc% --file-caching=200 --fullscreen --directx-volume=1.0 --quiet ".\%channel%.m3u8" ) IF "%start%"=="ffmpeg" ( start "" /SEPARATE ffmpeg -i "%audio%" -i "%video%" -c copy "%channel%_%datetime%.ts"> nul timeout /t 3 /nobreak> nul if exist "%channel%_%datetime%.ts" start "" %vlc% --meta-title=" %channel% %datetime% " --file-caching=200 --fullscreen --directx-volume=1.0 --quiet "%channel%_%datetime%.ts" ) exit
Similar Threads
-
Instagram and Tiktok livestreams
By randomuser2023 in forum Newbie / General discussionsReplies: 0Last Post: 17th Aug 2023, 17:20 -
Recording Livestreams encrypted
By VfxCristi4no in forum Video Streaming DownloadingReplies: 2Last Post: 25th Apr 2023, 13:08 -
N_m3u8 won't download livestreams
By VfxCristi4no in forum Video Streaming DownloadingReplies: 7Last Post: 22nd Apr 2023, 10:43 -
m3u8 livestreams do not play on VLC or IINA
By copyist_moth in forum Newbie / General discussionsReplies: 5Last Post: 30th Mar 2023, 00:12 -
How to download livestreams from livejasmin.com as they are happening?
By dontmindme in forum Video Streaming DownloadingReplies: 4Last Post: 24th Feb 2021, 02:47