feifan.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /*
  2. * @File : feifan.js
  3. * @Author : jade
  4. * @Date : 2024/02/06 14:58
  5. * @Email : jadehh@1ive.com
  6. * @Software : Samples
  7. * @Desc : 非凡资源 (已失效)
  8. */
  9. import {VodSpider} from "./vodSpider.js";
  10. class FeiFanSpider extends VodSpider {
  11. constructor() {
  12. super();
  13. this.siteUrl = "http://cj.ffzyapi.com"
  14. this.remove18 = true
  15. this.type_id_18 = 34
  16. }
  17. getAppName() {
  18. return "非凡资源"
  19. }
  20. getName() {
  21. return `🥗┃非凡资源┃🥗`
  22. }
  23. getJSName() {
  24. return "feifan"
  25. }
  26. getType() {
  27. return 3
  28. }
  29. async spiderInit(inReq) {
  30. await super.spiderInit(inReq);
  31. }
  32. async init(cfg) {
  33. await super.init(cfg);
  34. await this.spiderInit(null)
  35. }
  36. }
  37. let spider = new FeiFanSpider()
  38. async function init(cfg) {
  39. await spider.init(cfg)
  40. }
  41. async function home(filter) {
  42. return await spider.home(filter)
  43. }
  44. async function homeVod() {
  45. return await spider.homeVod()
  46. }
  47. async function category(tid, pg, filter, extend) {
  48. return await spider.category(tid, pg, filter, extend)
  49. }
  50. async function detail(id) {
  51. return await spider.detail(id)
  52. }
  53. async function play(flag, id, flags) {
  54. return await spider.play(flag, id, flags)
  55. }
  56. async function search(wd, quick) {
  57. return await spider.search(wd, quick)
  58. }
  59. async function proxy(segments, headers) {
  60. return await spider.proxy(segments, headers)
  61. }
  62. export function __jsEvalReturn() {
  63. return {
  64. init: init,
  65. home: home,
  66. homeVod: homeVod,
  67. category: category,
  68. detail: detail,
  69. play: play,
  70. search: search,
  71. proxy: proxy
  72. };
  73. }
  74. export {spider}