播客.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. // 无搜索
  2. var rule = {
  3. title:'播客',
  4. host:'https://getpodcast.xyz',
  5. url: '/fyclass',
  6. searchUrl: '',
  7. searchable:0,
  8. quickSearch:0,
  9. headers:{
  10. 'User-Agent': 'PC_UA'
  11. },
  12. timeout:5000,
  13. class_name:'播客&人文&NEWS热点&影视与读书&教育&历史&音乐&情感&有声书',
  14. class_url:'0&1&2&3&4&5&6&7&8',
  15. cate_exclude:'',
  16. play_parse:true,
  17. lazy:`js:
  18. input = {jx:0, url:input, parse:0}
  19. `,
  20. limit:6,
  21. 推荐: `js:
  22. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  23. var d = [];
  24. var html = request(HOST);
  25. var list = pdfa(html, 'body&&.pic_list:eq(0)&&li');
  26. list.forEach(it => {
  27. d.push({
  28. title: pdfh(it, '.title&&Text'),
  29. pic_url: pdfh(it, 'img&&src'),
  30. url: pd(it, 'a&&href') + '|' + pdfh(it, '.title&&Text') + '|' + pdfh(it, 'img&&src')
  31. });
  32. })
  33. setResult(d);
  34. `,
  35. 一级: `js:
  36. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  37. var d = [];
  38. var html = request(HOST);
  39. var list = pdfa(html, 'body&&.pic_list:eq(list_idx)&&li'.replace("list_idx", MY_CATE));
  40. list.forEach(it => {
  41. d.push({
  42. title: pdfh(it, '.title&&Text'),
  43. pic_url: pdfh(it, 'img&&src'),
  44. url: pd(it, 'a&&href') + '|' + pdfh(it, '.title&&Text') + '|' + pdfh(it, 'img&&src')
  45. });
  46. })
  47. setResult(d);
  48. `,
  49. 二级: `js:
  50. pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
  51. let purl = input.split('|')[0];
  52. let title = input.split('|')[1];
  53. let pic = input.split('|')[2];
  54. var html = request(purl);
  55. let d = [];
  56. VOD = {};
  57. VOD.vod_name = title;
  58. VOD.vod_pic = pic;
  59. if (typeof play_url === 'undefined') {
  60. var play_url = ''
  61. }
  62. let episodes = pdfa(html, 'body&&item');
  63. log('episodes =========>'+episodes);
  64. let vod_play_url = episodes.map(function(it) {
  65. let ititle = it.match(/<title>(.*?)<\\/title>/)[1].replace(/&lt;!\\[CDATA\\[|\\]\\]&gt;||<!\\[CDATA\\[|\\]\\]>/g, '');
  66. let iurl = pdfh(it, 'enclosure&&url');
  67. return ititle + '$' + iurl
  68. }).join('#')
  69. VOD.vod_play_from = '道长在线';
  70. VOD.vod_play_url = vod_play_url
  71. `,
  72. 搜索:'',
  73. }