荐片选集列表.js 506 B

123456789101112131415161718
  1. js:
  2. log(TABS);
  3. LISTS=[];
  4. TABS.forEach(function (tab){
  5. if(/边下边播/.test(tab)){
  6. let ftp = html.data.new_ftp_list;
  7. let d = ftp.map(function (it){
  8. return it.title+'$'+(/m3u8/.test(it.url)?play_url+it.url:'tvbox-xg:'+it.url)
  9. });
  10. LISTS.push(d);
  11. }else if(/在线点播/.test(tab)){
  12. let m3u = html.data.new_m3u8_list;
  13. let d=m3u.map(function (it){
  14. return it.title+'$'+(/m3u8/.test(it.url)?play_url+it.url:'tvbox-xg:'+it.url);
  15. });
  16. LISTS.push(d);
  17. }
  18. });