Skip to content
This repository was archived by the owner on Jul 8, 2024. It is now read-only.

Commit cd02ba1

Browse files
committed
增加喵次元
1 parent 239712f commit cd02ba1

File tree

3 files changed

+412
-2
lines changed

3 files changed

+412
-2
lines changed

js/version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.9.49beta27
1+
3.9.49beta28

txt/hipy/base_spider.py

+13-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,8 @@ def playerContent(self, flag, id, vipFlags):
294294
@param vipFlags: vip标识
295295
@return:
296296
"""
297-
url = 'http://bizcommon.alicdn.com/l2nDqpMmn6DGHnWzZQA/Cg9qI5imMInpPvK5Mnm%40%40hd.m3u8'
297+
# url = 'http://bizcommon.alicdn.com/l2nDqpMmn6DGHnWzZQA/Cg9qI5imMInpPvK5Mnm%40%40hd.m3u8'
298+
url = 'https://s1.bfzycdn.com/video/renmindemingyi/%E7%AC%AC07%E9%9B%86/index.m3u8'
298299
parse = 0
299300
headers = {
300301
'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1'
@@ -307,6 +308,10 @@ def playerContent(self, flag, id, vipFlags):
307308
}
308309
return result
309310

311+
@staticmethod
312+
def adRemove():
313+
return 'reg:/video/adjump.*?ts'
314+
310315
config = {
311316
"player": {},
312317
"filter": {}
@@ -411,3 +416,10 @@ def check_unsafe_attributes(string):
411416
a = spider.superStr2dict(code)
412417
print(type(a), a)
413418
# spider.searchContent('斗罗大陆')
419+
print(spider.playerContent(None, 1, None))
420+
with open('ad.m3u8', encoding='utf-8') as f:
421+
adt = f.read()
422+
url = adt.split('\n')[0]
423+
adt = '\n'.join(adt.split('\n')[1:])
424+
ad_remove = 'reg:/video/adjump(.*?)ts'
425+
print(spider.fixAdM3u8(adt, url, ad_remove))

0 commit comments

Comments
 (0)