Browse Source

update cicd

lym 4 months ago
parent
commit
015dddb326
2 changed files with 50 additions and 2 deletions
  1. 48 0
      mockTask/m3u8Task.json
  2. 2 2
      spider.py

+ 48 - 0
mockTask/m3u8Task.json

@@ -0,0 +1,48 @@
+{
+  "context": null,
+  "task": {
+    "@c": "com.example.spider.provider.m3u8.task.M3u8TsTask",
+    "domain": "hnts.ymuuy.com:65",
+    "url": "https://hnts.ymuuy.com:65/hls/28/20221013/103173/plist-00001.ts",
+    "params": null,
+    "requestMethod": "GET",
+    "headers": {
+      "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
+      "Accept-Language": "zh-CN,zh;q=0.9",
+      "Connection": "keep-alive",
+      "Host": "hnts.ymuuy.com:65",
+      "Referer": "https://hnts.ymuuy.com:65",
+      "Sec-Fetch-Dest": "document",
+      "Sec-Fetch-Mode": "navigate",
+      "Sec-Fetch-Site": "none",
+      "Sec-Fetch-User": "?1",
+      "User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; AS; rv:11.0) like Gecko",
+      "origin": "https://hnts.ymuuy.com:65/hls/28/20221013/103173/plist-00001.ts"
+    },
+    "charset": null,
+    "retryNum": 0,
+    "progressId": "xxx",
+    "parent": null,
+    "exceptedProxy": null,
+    "actuallyProxy": null,
+    "resultType": "[B",
+    "requestCost": 0,
+    "idempotentFilePath": null,
+    "idempotentFunction": null,
+    "limitStrategy": {
+      "TYPE": "FIX_WINDOW",
+      "key": null,
+      "limitDuration": "0.100000000",
+      "limitScope": "DOMAIN_WITH_PROXY"
+    },
+    "tsPart": {
+      "urlPrefix" : "https://t21.cdn2020.com/video/m3u8/2023/05/11/bf9c0435/",
+      "urlSuffix" : ".ts",
+      "urlPart": ["0252", "0251"],
+      "keyPart": ["0252", "0251"],
+      "filePath": "./test_target/pyTest.ts"
+    }
+  },
+  "spiderResult": null,
+  "handlerResult": null
+}

+ 2 - 2
spider.py

@@ -6,8 +6,8 @@ import time
 from Crypto.Cipher import AES
 import oss2
 
-support_function_name = 'support'
-default_function_name = 'handle'
+faas_function_name__support = 'support'
+faas_function_name__handle = 'handle'
 
 const_key_function_id = "faas__function-id"
 const_key_request_wrap = "faas__request_wrap"