mirror of
https://github.com/anthonyaxenov/iptv.git
synced 2024-11-25 06:44:25 +00:00
Download script + fixed radio ch count
This commit is contained in:
parent
c171e63a9e
commit
9f538f2665
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1,3 @@
|
|||||||
/.idea
|
/.idea
|
||||||
|
/files
|
||||||
|
a.m3u8
|
||||||
|
4
download-all.sh
Executable file
4
download-all.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
mkdir files
|
||||||
|
cd files
|
||||||
|
grep -P "pls='(.*)'" ../playlists.ini | sed "s/^pls=//g" | sed "s/'//g" | tr -d '\r' | xargs wget
|
@ -24,8 +24,7 @@ if (!empty($_GET['getinfo'])) {
|
|||||||
curl_close($ch);
|
curl_close($ch);
|
||||||
unset($ch);
|
unset($ch);
|
||||||
$matches = [];
|
$matches = [];
|
||||||
preg_match_all("/^#EXTINF:-?[\d](?:(\s?url-tvg=\".*\")?(\stvg-logo=\".*\")?(\stvg-name=\".*\")?(\sgroup-title=\".*\")?)\s?,\s?(.*)/m",
|
preg_match_all("/^#EXTINF:-?[\d](?:(\s?url-tvg=\".*\")?(\stvg-logo=\".*\")?(\stvg-name=\".*\")?(\stvg-id=\".*\")?(\sgroup-title=\".*\")?)\s?,\s?(.*)/m", $content, $matches);
|
||||||
$content, $matches);
|
|
||||||
unset($content);
|
unset($content);
|
||||||
$channels = $matches[5];
|
$channels = $matches[5];
|
||||||
unset($matches);
|
unset($matches);
|
||||||
|
Loading…
Reference in New Issue
Block a user