555dy.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. const DY5 = {
  2. name: '555电影',
  3. empty: 'hiker://empty',
  4. baseUrl: 'https://www.555dy.fun',
  5. dom: [],
  6. category: [
  7. {
  8. type: 'vodtype',
  9. name: '电影',
  10. url: '/vodshow/1-----------.html',
  11. },
  12. {
  13. type: 'vodtype',
  14. name: '连续剧',
  15. url: '/vodshow/2-----------.html',
  16. },
  17. {
  18. type: 'vodtype',
  19. name: '综艺纪录',
  20. url: '/vodshow/3-----------.html',
  21. },
  22. {
  23. type: 'vodtype',
  24. name: '动漫',
  25. url: '/vodshow/4-----------.html',
  26. },
  27. {
  28. type: 'label',
  29. subType: 'week',
  30. name: '追剧周表',
  31. url: '/label/week.html',
  32. },
  33. {
  34. type: 'label',
  35. subType: 'new',
  36. name: '今日更新',
  37. url: '/label/new.html',
  38. },
  39. {
  40. type: 'label',
  41. subType: 'topic',
  42. name: '专题列表',
  43. url: '/label/topic.html',
  44. },
  45. ],
  46. categorySelect: getItem('categorySelect', '0'),
  47. baseParse: () => {
  48. const page = parseInt(MY_URL.split('##')[1])
  49. const currentCategoryItem = DY5.category[parseInt(DY5.categorySelect)]
  50. if (page === 1) {
  51. DY5.categoryParse()
  52. if (currentCategoryItem.type === 'vodtype') {
  53. DY5.vodTypeCateParse(currentCategoryItem)
  54. }
  55. }
  56. setResult(DY5.dom)
  57. },
  58. categoryParse: () => {
  59. DY5.category.forEach((item, index) => {
  60. DY5.dom.push({
  61. title: parseInt(DY5.categorySelect) === index ? '‘‘’’<strong><font color="red">'+item.name+'</font></strong>' : item.name,
  62. url: $(DY5.empty).lazyRule((index) => {
  63. setItem('categorySelect', index)
  64. refreshPage(false)
  65. return 'hiker://empty'
  66. }, index.toString()),
  67. col_type: 'scroll_button',
  68. })
  69. })
  70. },
  71. vodTypeCateParse: (currentCategoryItem) => {
  72. },
  73. }
  74. $.exports = DY5