影视壳子常用配置

doubebly
2025-05-21 / 1 评论 / 149 阅读 / 正在检测是否收录...

影視

基於 CatVod 項目

https://github.com/CatVodTVOfficial/CatVodTVJarLoader

點播欄位

欄位名稱預設值說明其他
searchable1是否搜索0:關閉;1:啟用
changeable1是否換源0:關閉;1:啟用
quickserch1是否快搜0:關閉;1:啟用
indexs0是否聚搜0:關閉;1:啟用
hide0是否隱藏0:顯示;1:隱藏
timeout15播放超時單位:秒
headernone請求標頭格式:json
clicknone點擊jsjavascript

直播欄位

欄位名稱預設值說明其他
uanone用戶代理
originnone來源
referernone參照地址
epgnone節目地址
logonone台標地址
passfalse是否免密碼
bootfalse是否自啟動
timeout15播放超時單位:秒
headernone請求標頭格式:json
clicknone點擊jsjavascript
catchupnone回看參數
timeZonenone時區

樣式

欄位名稱說明
typerect矩形
oval橢圓
list列表
ratio0.753:4
1.334:3

直式

{
  "style": {
    "type": "rect"
  }
}

橫式

{
  "style": {
    "type": "rect",
    "ratio": 1.33
  }
}

正方

{
  "style": {
    "type": "rect",
    "ratio": 1
  }
}

正圓

{
  "style": {
    "type": "oval"
  }
}

橢圓

{
  "style": {
    "type": "oval",
    "ratio": 1.1
  }
}

API

刷新詳情

http://127.0.0.1:9978/action?do=refresh&type=detail

刷新播放

http://127.0.0.1:9978/action?do=refresh&type=player

刷新直播

http://127.0.0.1:9978/action?do=refresh&type=live

推送字幕

http://127.0.0.1:9978/action?do=refresh&type=subtitle&path=http://xxx

推送彈幕

http://127.0.0.1:9978/action?do=refresh&type=danmaku&path=http://xxx

新增緩存字串

http://127.0.0.1:9978/cache?do=set&key=xxx&value=xxx

取得緩存字串

http://127.0.0.1:9978/cache?do=get&key=xxx

刪除緩存字串

http://127.0.0.1:9978/cache?do=del&key=xxx

Proxy

scheme 支持 http, https, socks4, socks5

scheme://username:password@host:port

配置新增 proxy 判斷域名是否走代理
全局只需要加上一條規則 ".*."

{
  "spider": "",
  "proxy": [
    "raw.githubusercontent.com",
    "googlevideo.com"
  ]
}

Hosts

{
  "spider": "",
  "hosts": [
    "cache.ott.*.itv.cmvideo.cn=base-v4-free-mghy.e.cdn.chinamobile.com"
  ]
}

Headers

{
  "spider": "",
  "headers": [
    {
      "host": "gslbserv.itv.cmvideo.cn",
      "header": {
        "User-Agent": "okhttp/3.12.13",
        "Referer": "test"
      }
    }
  ]
}

爬蟲本地代理

Java

proxy://
Proxy.getUrl(boolean local)

Python

proxy://do=py
getProxyUrl(boolean local)

JS

proxy://do=js
getProxy(boolean local)
0

评论 (1)

取消
  1. 头像
    Typecho
    Linux · Google Chrome
    @

    欢迎加入 Typecho 大家族

    回复