File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,8 @@ function generateParseJSON(jxDir, requestHost) {
125
125
function generateLivesJSON ( requestHost ) {
126
126
let lives = [ ] ;
127
127
let live_url = process . env . LIVE_URL || '' ;
128
+ let epg_url = process . env . EPG_URL || '' ; // 从.env文件读取
129
+ let logo_url = process . env . LOGO_URL || '' ; // 从.env文件读取
128
130
if ( live_url && ! live_url . startsWith ( 'http' ) ) {
129
131
let public_url = urljoin ( requestHost , 'public/' ) ;
130
132
live_url = urljoin ( public_url , live_url ) ;
@@ -138,8 +140,8 @@ function generateLivesJSON(requestHost) {
138
140
"url" : live_url ,
139
141
"playerType" : 1 ,
140
142
"ua" : "okhttp/3.12.13" ,
141
- "epg" : "https://epg.mxdyeah.top/api/diyp/?ch={name}&date={date}" ,
142
- "logo" : "https://live.mxdyeah.top/logo/{name}.png"
143
+ "epg" : epg_url ,
144
+ "logo" : logo_url
143
145
}
144
146
)
145
147
}
You can’t perform that action at this time.
0 commit comments