-
Notifications
You must be signed in to change notification settings - Fork 0
/
JSON_DUMP.php
77 lines (66 loc) · 3.3 KB
/
JSON_DUMP.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
/*
┌─────────────────────────────────────────────────────────────┐
| For More Modules Or Updates Stay Connected to Kodi dot AL |
└─────────────────────────────────────────────────────────────┘
┌───────────┬─────────────────────────────────────────────────┐
│ Product │ PHP Source Code Regex Generator │
│ Version │ v1.0 BETA │
│ Provider │ https://paidcodes.albdroid.al │
│ Support │ PHP 5/7 │
│ Sources │ Multiple Regex Data │
│ Licence │ Personal │
│ Author │ Olsion Bakiaj │
│ Email │ TRC4@USA.COM │
│ Author │ Endrit Pano │
│ Email │ INFO@ALBDROID.AL │
│ Website │ https://kodi.al │
│ Facebook │ /albdroid.official/ │
│ Github │ github.com/SxtBox/ │
│ Created │ 29 August 2020 │
│ Modified │ 00:00:0000 │
└─────────────────────────────────────────────────────────────┘
*/
/*
PHP Code Generated Date: Monday, 09 November 2020 - 14:06:51
PHP Code Generated From Host: demo.kodi.al
*/
/*
Error Output
E_ALL or E_NOTICE or 0 For Disable
https://www.php.net/manual/en/function.error-reporting.php
*/
ob_start();
error_reporting(0); // C'AKTIVOZO ERRORS ON PHP
set_time_limit(0); // SET UNLIMITET TIME LIMIT
@ini_set("default_socket_timeout", 10);
ini_set("user_agent", "Albdroid PHP Codes");
date_default_timezone_set("Europe/Tirane");
$API_HOST = "https://podcasts.apple.com/us/podcast/trap-nation-radio/id1328005034"; // SEE COPY_LINK.png AND PASTE HERE
$source = file_get_contents(trim($API_HOST));
$Titles = "";
$Regex_1 = 'explicit\",\"artistName\":\"(.*?)\",\"assetUrl\":\"(http.*?)\",';
if(preg_match_all('/' . $Regex_1 . '/', $source, $matches)) {
$Titles = $matches[1]; // ARRAY TITLES
// NON ARRAY TITLES
//foreach($matches[1] as $items) {
//$Titles .= $items;
//}
// NON ARRAY TITLES
}
$Titles = str_replace(
array(" \u0026"),
array(""),
$Titles
);
$Streams = "";
$Regex_2 = 'explicit\",\"artistName\":\"(.*?)\",\"assetUrl\":\"(http.*?)\",';
if(preg_match_all('/' . $Regex_2 . '/', $source, $matches)) {
$Streams = $matches[2];
}
$data_array = array();
$data_array["Titles"] = $Titles;
$data_array["Streams"] = $Streams;
echo str_replace('\/', '/', json_encode($data_array));
ob_end_flush();
?>