-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.php
112 lines (76 loc) · 2.77 KB
/
config.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?php
/*
Playlist Rss 0.3 / 2012-2019
https://github.com/fluaten
Made with Simplepie for converting RSS feed.
http://simplepie.org/
*/
$urldomain = "http://radio.domain.com";
// Url of the website and playlist (ex: http://radio.domain.com or http://www.domain.com/radio)
// Simplepie (podcast) won't work on restricted hosting.
// Show the list of each podcast and radio in html (mobile reader)
$display = TRUE;
// Change here the frontend text of index.php in folder /playlist
define("LANG", "EN"); // English language
//define("LANG", "FR"); // Langue française
if (LANG == "EN") {
$titledomainname = "Radio and podcast playlist for VLC"; // Set a title
$description = "Playlist description"; // Set a description
$downloadtext = "Download the playlist";
$copyinvlc = "Copy in VLC (Ctrl + N / Command + N)";
// XSPF Text
$xspfloading = "Loading..";
} else if (LANG == "FR") {
$titledomainname = "Playlist de radio et podcast pour VLC"; // Définir un titre
$description = "Description de la playlist"; // Définir une description
$downloadtext = "Téléchargez la playlist";
$copyinvlc = "Copier dans VLC (Ctrl + N / Command + N)";
// XSPF Text
$xspfloading = "Chargement..";
}
//Video settings
define("HD","TRUE"); // Set youtube video to HD format (best setting)
/*
Modify playlist.php to add radio or podcast.
Set folder simplepie/cache permission to 705 if Simplepie doesn't create cache files.
Be sure to have a file named .htaccess with :
##---------.htaccess-------------
SetEnv SESSION_USE_TRANS_SID 0
SetEnv PHP_VER 5
AddType application/octet-stream .m3u
AddType application/octet-stream .xspf
<Files *.m3u>
ForceType application/octet-stream
Header set Content-Disposition attachment
</Files>
<Files *.xspf>
ForceType application/octet-stream
Header set Content-Disposition attachment
</Files>
RewriteEngine On
## If website url is root or subdomain, else comment with ## in front
RewriteBase /
RewriteRule ^vlc\.m3u$ /playlist.php [L]
RewriteRule ^Playlist_([^/]*)\.xspf$ /vlc_xspf.php [L]
RewriteRule ^m$ /playlist.php?type=m [L]
## If website url is in a folder change to your name/path of folder, here /radio) and uncomment the ##
##RewriteBase /radio/
##RewriteRule ^vlc\.m3u$ /radio/playlist.php [L]
##RewriteRule ^Playlist_([^/]*)\.xspf$ /radio/vlc_xspf.php [L]
##RewriteRule ^m$ /radio/playlist.php?type=m [L]
##-----------------------------
*/
// Footer
$footer =
'
Source : <a href="https://github.com/fluaten/PlaylistRSS">
https://github.com/fluaten/PlaylistRSS</a>
';
$vlclink = '<a href="http://www.videolan.org">VLC</a>';
// Frontend config
if (LANG == "EN") {
$urlchange = "Modify config.php to set the url of the playlist.";
} else if (LANG == "FR") {
$urlchange = "Modifiez config.php pour définir l'url de la playlist.";
}
?>