MCPcopy
hub / github.com/ChineseSubFinder/ChineseSubFinder

github.com/ChineseSubFinder/ChineseSubFinder @v0.55.3 sqlite

repository ↗ · DeepWiki ↗ · release v0.55.3 ↗
1,600 symbols 5,693 edges 421 files 507 documented · 32%
README

ChineseSubFinder

本项目的初衷仅仅是想自动化搞定限定条件中文 字幕,在第三方的网站或者接口的下载。

CSF 使用交流目前只有一个 telegram 小组,https://t.me/chinesesubfinder 。

个人建议是以使用和讨论为主,bug 的反馈最好去 issue 按模板反馈和提出问题,也好有一个地方追溯。

前言

移除全功能版本,以后都是轻量级(Lite),tag 继续保留,实则都有是一个。不再直接支持某些字幕网站的下载(人多了,对方服务器扛不住),请使用第三方的字幕下载服务,subtitle best,具体请进入程序后去设置界面,会有引导。

最新的版本可以查看 Docker Hub ,如果不在 telegram 群内,没有特殊的需求请不要选择 Beta 版本使用。

前置要求

如果想顺利的用起来,还是对电影、连续剧的目录有一定的要求的。见文档:

How to use

如何部署

如何使用

API 文档文档

高阶设置

建议了解的文档:

如果文档没有及时更新,或者描述含糊、歧义的,欢迎提 ISSUES

问题列表

如果遇到问题了,可以先看看这里总结的问题,如果未能解决,依然可以继续提问。问题列表

其他文档

如何编译此项目

  • 首选需要编译 Web 部分,见 frontend/README.md

  • 然后才能编译可执行程序部分

如果是 Windows,那么可以从这里下载 MinGW-w64 - for 32 and 64 bit Windows - Browse /Toolchains targetting Win64 at SourceForge.net

后面的 CGO 编译需要:

1、新建变量: PATH,变量值为:xx\mingw64\bin

2、新建变量:LIB,变量值为:xx\mingw64\lib

3、新建变量:INCLUDE,变量值为:xx\mingw64\include

使用 gcc -v 验证是否生效

go mod tidy ,然后需要设置 CGO=1 ,找到 cmd\chinesesubfinder\main.go 这个入口文件就好了。 :joy:

编译代码如下:

cd ./cmd/chinesesubfinder \ && go build -ldflags="-s -w" -o /app/chinesesubfinder

跨平台是没有问题的,作者现在就是 Windows 开发的。因为手头没得 Mac OS ,也懒得整虚拟机去试,应该也是可以直接玩起来的。

版本

请务必使用最新版本,这里忘记(懒得)写更新记录的话,可以去 Releases 查看最新到什么版本了。

因为业余时间不多,都是断断续续做的,基本我只能记得最近两个版本的功能···

  • v0.42.x 新增,支持手动上传字幕,以及在 Web 界面即可预览字幕效果,重写“库”的刷新逻辑。 -- 2022年10月31日
  • ···
  • 完成初版,仅仅支持电影的字幕下载 -- 2021 年 6 月 13 日

感谢

感谢下面项目的帮助

Extension points exported contracts — how you extend this code

IHotFix (Interface)
(no doc) [7 implementers]
pkg/ifaces/iHotFix.go
Cache (Interface)
(no doc) [2 implementers]
pkg/hls_center/cache/cache.go
QuasarFeatureFlags (Interface)
(no doc)
frontend/src-ssr/ssr-flag.d.ts
QuasarFeatureFlags (Interface)
(no doc)
frontend/src-pwa/pwa-flag.d.ts
QuasarFeatureFlags (Interface)
(no doc)
frontend/src/store/store-flag.d.ts
ISupplier (Interface)
(no doc) [5 implementers]
pkg/ifaces/iSupplier.go
WorkHandler (Interface)
(no doc) [1 implementers]
pkg/hls_center/worker/worker.go
ISubFormatter (Interface)
ISubFormatter 如果新增了更多的字幕命名格式化的实现,需要找所有以下 to do 去增加实现 TODO 如果字幕格式新增了实现,这里也需要添加对应的实例 [3 implementers]
pkg/ifaces/iSubFormatter.go

Core symbols most depended-on inside this repo

Get
called by 233
pkg/settings/settings.go
Unlock
called by 126
pkg/lock/lock.go
Lock
called by 114
pkg/lock/lock.go
String
called by 77
pkg/types/emby/type.go
IsFile
called by 73
pkg/util.go
GetDb
called by 63
internal/dao/init.go
GetLogger4Tester
called by 61
pkg/log_helper/loghelper.go
Get
called by 61
pkg/hls_center/cache/cache.go

Shape

Function 651
Method 601
Struct 295
Class 22
TypeAlias 21
Interface 10

Languages

Go94%
TypeScript6%

Modules by API surface

pkg/util.go47 symbols
pkg/types/subparser/fileinfo.go29 symbols
pkg/video_scan_and_refresh_helper/video_scan_and_refresh_helper.go28 symbols
pkg/folder.go26 symbols
pkg/ffmpeg_helper/ffmpeg_helper.go25 symbols
pkg/sub_helper/sub_unit.go23 symbols
pkg/global_value.go21 symbols
pkg/task_queue/task_queue.go20 symbols
pkg/logic/sub_supplier/assrt/assrt.go20 symbols
pkg/logic/emby_helper/embyhelper.go18 symbols
pkg/logic/sub_supplier/xunlei/xunlei.go16 symbols
pkg/logic/sub_supplier/shooter/shooter.go16 symbols

Dependencies from manifests, versioned

github.com/EDDYCJY/fake-useragentv0.2.0 · 1×
github.com/Microsoft/go-winiov0.4.16 · 1×
github.com/ProtonMail/go-cryptov0.0.0-2021042814132 · 1×
github.com/Tnze/go.num/v2v2.0.0-2019100617082 · 1×
github.com/WQGroup/loggerv0.0.6 · 1×
github.com/abadojack/whatlanggov1.0.1 · 1×
github.com/acomagu/bufpipev1.0.3 · 1×
github.com/allanpk716/fake-useragentv0.2.1 · 1×
github.com/allanpk716/is_running_in_dockerv0.0.1 · 1×
github.com/allanpk716/rod_helperv0.0.78 · 1×
github.com/andybalholm/brotliv1.0.5 · 1×

For agents

$ claude mcp add ChineseSubFinder \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact