File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -11,5 +11,7 @@ COOKIE_AUTH_CODE = drpys
1111API_AUTH_NAME = admin
1212API_AUTH_CODE = drpys
1313API_PWD = dzyyds
14+ EPG_URL = https://epg.mxdyeah.top/api/diyp/?ch={name}&date={date}
15+ LOGO_URL = https://live.mxdyeah.top/logo/{name}.png
1416LIVE_URL = ' https://livetv.wqwqwq.sbs/tv.m3u'
1517# LIVE_URL = './lives/tv.m3u'
Original file line number Diff line number Diff line change @@ -125,6 +125,8 @@ function generateParseJSON(jxDir, requestHost) {
125125function generateLivesJSON(requestHost) {
126126 let lives = [];
127127 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文件读取
128130 if (live_url && !live_url.startsWith('http')) {
129131 let public_url = urljoin(requestHost, 'public/');
130132 live_url = urljoin(public_url, live_url);
@@ -138,8 +140,8 @@ function generateLivesJSON(requestHost) {
138140 "url": live_url,
139141 "playerType": 1,
140142 "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
143145 }
144146 )
145147 }
You can’t perform that action at this time.
0 commit comments