Skip to content

Commit

Permalink
增加bd影视
Browse files Browse the repository at this point in the history
  • Loading branch information
hjdhnx committed Jan 10, 2024
1 parent d4ba50e commit e87c4d4
Show file tree
Hide file tree
Showing 3 changed files with 462 additions and 0 deletions.
20 changes: 20 additions & 0 deletions base/custom.conf
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,26 @@
"filterable": 1,
"ext": "https://jihulab.com/qiaoji/open/-/raw/main/yinghua"
},
{
"key":"hipy_t4_哔滴影视",
"name":"哔滴影视(hipy_t4)",
"type":4,
"api":"http://192.168.31.49:5707/api/v1/vod/哔滴影视",
"searchable":1,
"quickSearch":0,
"filterable":1,
"ext":""
},
{
"key": "hipy_t3_哔滴影视",
"name": "哔滴影视(hipy_t3)",
"type": 3,
"api": "{{host}}/txt/hipy/哔滴影视.py",
"searchable": 1,
"quickSearch": 0,
"filterable": 1,
"ext": ""
},
{"key":"Test_jsapi","name":"Test_jsapi(drpy)","type":3,"api":"{{host}}/libs/drpy2.min.js","searchable":2,"quickSearch":0,"filterable":0,"ext":"{{host}}/js/jsapi.js","jar":"{{host}}/libs/jar/custom_jsapi.jar"},

# 缓存js
Expand Down
68 changes: 68 additions & 0 deletions txt/hipy/base_java_loader.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# File : base_java_loader.py
# Author: DaShenHan&道长-----先苦后甜,任凭晚风拂柳颜------
# Author's Blog: https://blog.csdn.net/qq_32394351
# Date : 2024/1/11

import os
import jpype
from jpype.types import *

import sys

sys.path.append('..')
try:
# from base.spider import Spider as BaseSpider
from base.spider import BaseSpider
except ImportError:
from t4.base.spider import BaseSpider


class Spider(BaseSpider): # 元类 默认的元类 type
def _prepare_env(self):
try:
jpype.startJVM(classpath=[self.jar_path], convertStrings=False)
except:
pass

def init_jar(self, jar_path="./bdys.jar"):
self.log(f'base_java_loader 初始化jar文件:{jar_path}')
if not os.path.exists(jar_path):
raise FileNotFoundError
self.jar_path = jar_path
self._prepare_env()
self.jClass = jpype.JClass

def init(self, extend=""):
pass

def homeContent(self, filter):
pass

def homeVideoContent(self):
pass

def categoryContent(self, tid, pg, filter, extend):
pass

def detailContent(self, ids):
pass

def searchContent(self, key, quick, pg=1):
pass

def playerContent(self, flag, id, vipFlags):
pass

def localProxy(self, param):
pass

def isVideoFormat(self, url):
pass

def manualVideoCheck(self):
pass

def getName(self):
pass
Loading

0 comments on commit e87c4d4

Please sign in to comment.