{"id":15034745,"url":"https://github.com/fongmi/tv","last_synced_at":"2025-05-14T08:06:50.946Z","repository":{"id":37743965,"uuid":"506175118","full_name":"FongMi/TV","owner":"FongMi","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-13T12:05:11.000Z","size":345446,"stargazers_count":5972,"open_issues_count":1,"forks_count":1925,"subscribers_count":80,"default_branch":"release","last_synced_at":"2025-05-13T13:26:01.122Z","etag":null,"topics":["catvod","danmaku","leanback","media3","p2p","thunder","tvbus"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FongMi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"ko_fi":"fongmi","custom":["https://paypal.me/fongmitw"]}},"created_at":"2022-06-22T09:10:23.000Z","updated_at":"2025-05-13T12:18:47.000Z","dependencies_parsed_at":"2025-04-17T04:38:55.724Z","dependency_job_id":"0d3475a0-7e22-4272-b1c4-09af770efe2a","html_url":"https://github.com/FongMi/TV","commit_stats":{"total_commits":4503,"total_committers":12,"mean_commits":375.25,"dds":"0.13857428381079284","last_synced_commit":"2362d6845f4b91b7846b5cd77f947cd5884e0894"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FongMi%2FTV","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FongMi%2FTV/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FongMi%2FTV/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FongMi%2FTV/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FongMi","download_url":"https://codeload.github.com/FongMi/TV/tar.gz/refs/heads/release","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254101618,"owners_count":22014909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["catvod","danmaku","leanback","media3","p2p","thunder","tvbus"],"created_at":"2024-09-24T20:26:12.544Z","updated_at":"2025-05-14T08:06:45.926Z","avatar_url":"https://github.com/FongMi.png","language":"Java","readme":"# 影視\n\n### 基於 CatVod 項目\n\nhttps://github.com/CatVodTVOfficial/CatVodTVJarLoader\n\n### 點播欄位\n\n| 欄位名稱       | 預設值  | 說明   | 其他         |\n|------------|------|------|------------|\n| searchable | 1    | 是否搜索 | 0：關閉；1：啟用  |\n| changeable | 1    | 是否換源 | 0：關閉；1：啟用  |\n| quickserch | 1    | 是否快搜 | 0：關閉；1：啟用  |\n| indexs     | 0    | 是否聚搜 | 0：關閉；1：啟用  |\n| hide       | 0    | 是否隱藏 | 0：顯示；1：隱藏  |\n| timeout    | 15   | 播放超時 | 單位：秒       |\n| header     | none | 請求標頭 | 格式：json    |\n| click      | none | 點擊js | javascript |\n\n### 直播欄位\n\n| 欄位名稱     | 預設值   | 說明    | 其他         |\n|----------|-------|-------|------------|\n| ua       | none  | 用戶代理  |            |\n| origin   | none  | 來源    |            |\n| referer  | none  | 參照地址  |            |\n| epg      | none  | 節目地址  |            |\n| logo     | none  | 台標地址  |            |\n| pass     | false | 是否免密碼 |            |\n| boot     | false | 是否自啟動 |            |\n| timeout  | 15    | 播放超時  | 單位：秒       |\n| header   | none  | 請求標頭  | 格式：json    |\n| click    | none  | 點擊js  | javascript |\n| catchup  | none  | 回看參數  |            |\n| timeZone | none  | 時區    |            |\n\n### 樣式\n\n| 欄位名稱  | 值    | 說明  |\n|-------|------|-----|\n| type  | rect | 矩形  |\n|       | oval | 橢圓  |\n|       | list | 列表  |\n| ratio | 0.75 | 3：4 |\n|       | 1.33 | 4：3 |\n\n直式\n\n```json\n{\n  \"style\": {\n    \"type\": \"rect\"\n  }\n}\n```\n\n橫式\n\n```json\n{\n  \"style\": {\n    \"type\": \"rect\",\n    \"ratio\": 1.33\n  }\n}\n```\n\n正方\n\n```json\n{\n  \"style\": {\n    \"type\": \"rect\",\n    \"ratio\": 1\n  }\n}\n```\n\n正圓\n\n```json\n{\n  \"style\": {\n    \"type\": \"oval\"\n  }\n}\n```\n\n橢圓\n\n```json\n{\n  \"style\": {\n    \"type\": \"oval\",\n    \"ratio\": 1.1\n  }\n}\n```\n\n### API\n\n刷新詳情\n\n```\nhttp://127.0.0.1:9978/action?do=refresh\u0026type=detail\n```\n\n刷新播放\n\n```\nhttp://127.0.0.1:9978/action?do=refresh\u0026type=player\n```\n\n刷新直播\n\n```\nhttp://127.0.0.1:9978/action?do=refresh\u0026type=live\n```\n\n推送字幕\n\n```\nhttp://127.0.0.1:9978/action?do=refresh\u0026type=subtitle\u0026path=http://xxx\n```\n\n推送彈幕\n\n```\nhttp://127.0.0.1:9978/action?do=refresh\u0026type=danmaku\u0026path=http://xxx\n```\n\n新增緩存字串\n\n```\nhttp://127.0.0.1:9978/cache?do=set\u0026key=xxx\u0026value=xxx\n```\n\n取得緩存字串\n\n```\nhttp://127.0.0.1:9978/cache?do=get\u0026key=xxx\n```\n\n刪除緩存字串\n\n```\nhttp://127.0.0.1:9978/cache?do=del\u0026key=xxx\n```\n\n### Proxy\n\nscheme 支持 http, https, socks4, socks5\n\n```\nscheme://username:password@host:port\n```\n\n配置新增 proxy 判斷域名是否走代理  \n全局只需要加上一條規則 \".*.\"\n\n```json\n{\n  \"spider\": \"\",\n  \"proxy\": [\n    \"raw.githubusercontent.com\",\n    \"googlevideo.com\"\n  ]\n}\n```\n\n### Hosts\n\n```json\n{\n  \"spider\": \"\",\n  \"hosts\": [\n    \"cache.ott.*.itv.cmvideo.cn=base-v4-free-mghy.e.cdn.chinamobile.com\"\n  ]\n}\n```\n\n### Headers\n\n```json\n{\n  \"spider\": \"\",\n  \"headers\": [\n    {\n      \"host\": \"gslbserv.itv.cmvideo.cn\",\n      \"header\": {\n        \"User-Agent\": \"okhttp/3.12.13\",\n        \"Referer\": \"test\"\n      }\n    }\n  ]\n}\n```\n\n### 配置範例\n\n[點播-線上](other/sample/vod/online.json)  \n[點播-本地](other/sample/vod/offline.json)  \n[直播-線上](other/sample/live/online.json)  \n[直播-本地](other/sample/live/offline.json)\n\n### 飛機群\n\n[討論群組](https://t.me/fongmi_offical)  \n[發布頻道](https://t.me/fongmi_release)\n\n### 贊助\n\n![photo_2024-01-10_11-39-12](https://github.com/FongMi/TV/assets/3471963/fdc12771-386c-4d5d-9a4d-d0bec0276fa7)\n","funding_links":["https://ko-fi.com/fongmi","https://paypal.me/fongmitw"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffongmi%2Ftv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffongmi%2Ftv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffongmi%2Ftv/lists"}