Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用批量上传字幕的时候只能完成第一条(开启了时间轴校验) #733

Open
PQ0000 opened this issue Dec 23, 2023 · 2 comments

Comments

@PQ0000
Copy link

PQ0000 commented Dec 23, 2023

你使用的 chinesesubfinder 是什么版本,什么环境?

chinesesubfinder 版本: v0.55.3 Lite

环境: docker

在程序运行日志头部或者 Web UI 可以看到

你遇到什么问题了?

无法批量上传字幕并开启了时间轴同步

你的问题弄重现嘛?

能够重现

你期望的结果

希望可以能够批量上传

给出当前程序的配置文件

/volume1/docker/chinesesubfinder/config:/config 下,ChineseSubFinderSettings.json,记得把你的用户名、密码、Emby API 敏感信息删除

可以复制上面的配置,使用类似在线 json 格式化的工具进行一次处理,方便阅读,JSON 在线解析及格式化验证 - JSON.cn

{
"SpeedDevMode":false,
"user_info":{
"username":",
"password":""
},
"common_settings":{
"interval_or_assign_or_custom":1,
"scan_interval":"0 2,13 * * *",
"threads":6,
"run_scan_at_start_up":false,
"movie_paths":[
"/media/movie"
],
"series_paths":[
"/media/tv"
],
"local_static_file_port":"19037"
},
"subtitle_sources":{
"assrt_settings":{
"enabled":true,
"token":"MVC
},
"subtitle_best_settings":{
"enabled":true,
"api_key":"loIZZHHG
}
},
"advanced_settings":{
"proxy_settings":{
"use_proxy":true,
"use_which_proxy_protocol":"http",
"local_http_proxy_server_port":"19036",
"input_proxy_address":"192.1604",
"input_proxy_port":"78",
"need_pwd":false,
"input_proxy_username":"",
"input_proxy_password":""
},
"tmdb_api_settings":{
"enable":true,
"api_key":"87b895dc62",
"use_alternate_base_url":false
},
"debug_mode":false,
"save_full_season_tmp_subtitles":true,
"sub_type_priority":1,
"sub_name_formatter":0,
"save_multi_sub":true,
"custom_video_exts":[

    ],
    "fix_time_line":true,
    "topic":1,
    "suppliers_settings":{
        "xunlei":{
            "name":"xunlei",
            "root_url":"http://sub.xmp.sandai.net:8000/subxl/%s.json",
            "search_url":"",
            "daily_download_limit":-1
        },
        "shooter":{
            "name":"shooter",
            "root_url":"https://www.shooter.cn/api/subapi.php",
            "search_url":"",
            "daily_download_limit":-1
        },
        "assrt":{
            "name":"assrt",
            "root_url":"https://api.assrt.net/v1",
            "search_url":"",
            "daily_download_limit":-1
        },
        "a4k":{
            "name":"a4k",
            "root_url":"https://www.a4k.net/",
            "search_url":"/search?keyword=",
            "daily_download_limit":-1
        },
        "subhd":{
            "name":"subhd",
            "root_url":"https://subhd.tv/",
            "search_url":"/search/%s",
            "daily_download_limit":20
        },
        "zimuku":{
            "name":"zimuku",
            "root_url":"https://zimuku.org/",
            "search_url":"/search?q=%s",
            "daily_download_limit":20
        },
        "subtitle_best":{
            "name":"subtitle_best",
            "root_url":"https://api.subtitle.best/share-sub/v1",
            "search_url":"/search-movie",
            "daily_download_limit":-1
        }
    },
    "scan_logic":{
        "skip_chinese_movie":true,
        "skip_chinese_series":true
    },
    "task_queue":{
        "max_retry_times":3,
        "one_job_time_out":300,
        "interval":10,
        "expiration_time":90,
        "download_sub_during_x_days":7,
        "one_sub_download_interval":12,
        "check_pulic_ip_target_site":""
    },
    "download_file_cache":{
        "ttl":4320,
        "unit":"hour"
    }
},
"emby_settings":{
    "enable":false,
    "address_url":"",
    "api_key":"",
    "max_request_video_number":500,
    "skip_watched":false,
    "movie_paths_mapping":{
        "/media/movie":""
    },
    "series_paths_mapping":{
        "/media/tv":""
    },
    "auto_or_manual":true,
    "threads":6
},
"developer_settings":{
    "enable":false,
    "bark_server_address":""
},
"timeline_fixer_settings":{
    "max_offset_time":700,
    "min_offset":0.2,
    "thread_count":5
},
"experimental_function":{
    "auto_change_sub_encode":{
        "enable":true,
        "des_encode_type":0
    },
    "chs_cht_changer":{
        "enable":true,
        "des_chinese_language_type":0
    },
    "remote_chrome_settings":{
        "enable":false,
        "remote_docker_url":"",
        "remote_adblock_path":"",
        "remote_user_data_dir":""
    },
    "api_key_settings":{
        "enabled":false,
        "key":""
    },
    "local_chrome_settings":{
        "enabled":false,
        "local_chrome_exe_f_path":""
    },
    "share_sub_settings":{
        "share_sub_enabled":false
    },
    "extend_log":{
        "SysLog":{
            "enable":false,
            "network":"",
            "address":"",
            "priority":0,
            "tag":""
        }
    }
}

}

如果是使用 Docker,请给出对应的配置信息

比如 Docker-Compose 信息,如果是其他方式使用忽略
version: "3"
services:
chinesesubfinder:
image: allanpk716/chinesesubfinder:latest
container_name: chinesesubfinder
hostname: chinesesubfinder
volumes:
- /srv/dev-disk-by-uuid-6286723d-3c08-482c-8537-55b0d8a1fa30/chinesesubfinder/config:/config # 冒号左边请修改为你想在主机上保存配置、日志等文件的路径
- /srv/dev-disk-by-uuid-6286723d-3c08-482c-8537-55b0d8a1fa30/chinesesubfinder/browser:/root/.cache/rod/browser # 容器重启后无需再次下载 chrome,除非 go-rod 更新
- /srv/dev-disk-by-uuid-6286723d-3c08-482c-8537-55b0d8a1fa30/jellyfin:/media # 请修改为你的媒体目录,冒号右边可以改成你方便记忆的目录,多个媒体目录需要分别映射进来
environment:
- PUID=1000 # uid
- PGID=100 # gid
- PERMS=true # 是否重设/media权限
- TZ=Asia/Shanghai # 时区
- UMASK=022 # 权限掩码
restart: always
network_mode: "bridge"
ports:
- 19035:19035 # 从0.20.0版本开始,通过webui来设置
logging:
driver: "json-file"
options:
max-size: "10m" # 限制日志大小,可自行调整

给出媒体文件夹的目录结构

首先你需要去看主页的部署教程,确认你目录结构是规范的,如果你觉得没问题,那么请除非目录结构截图

是否看过对应的目录结构要求文档?

请给出当次问题的完整日志

日志在程序的 Logs 目录下,如果你用的是 docker ,那么需要你映射出来。

/volume1/docker/chinesesubfinder/config:/config 下,Logs 中
已设置 PERMS=true,重设 '/media' 目录权限为 1000:100 所有(媒体文件多,花的时间也多,耐心等)...
[INFO]: 2023-12-23 19:39:19 - LiteMode is true
[INFO]: 2023-12-23 19:39:19 - ChineseSubFinder Version: v0.55.3 Lite
[INFO]: 2023-12-23 19:39:19 - Reload Log Settings, level = Info
[INFO]: 2023-12-23 19:39:19 - Speed Dev Mode is Off
[INFO]: 2023-12-23 19:39:19 - ffmpeg version 6.0.1 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12.2.1 (Alpine 12.2.1_git20220924-r10) 20220924
configuration: --prefix=/usr --disable-librtmp --disable-lzma --disable-static --disable-stripping --enable-avfilter --enable-gnutls --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopenmpt --enable-libopus --enable-libplacebo --enable-libpulse --enable-librist --enable-libsoxr --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-lto --enable-pic --enable-postproc --enable-pthreads --enable-shared --enable-vaapi --enable-vdpau --enable-vulkan --optflags=-O3 --enable-libjxl --enable-libsvtav1 --enable-libvpl
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 5. 0.100 / 5. 0.100
libpostproc 57. 1.100 / 57. 1.100

ffprobe version 6.0.1 Copyright (c) 2007-2023 the FFmpeg developers
built with gcc 12.2.1 (Alpine 12.2.1_git20220924-r10) 20220924
configuration: --prefix=/usr --disable-librtmp --disable-lzma --disable-static --disable-stripping --enable-avfilter --enable-gnutls --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopenmpt --enable-libopus --enable-libplacebo --enable-libpulse --enable-librist --enable-libsoxr --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-lto --enable-pic --enable-postproc --enable-pthreads --enable-shared --enable-vaapi --enable-vdpau --enable-vulkan --optflags=-O3 --enable-libjxl --enable-libsvtav1 --enable-libvpl
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 5. 0.100 / 5. 0.100
libpostproc 57. 1.100 / 57. 1.100

[INFO]: 2023-12-23 19:39:19 - Download.SupplierCheck() Start ...
[INFO]: 2023-12-23 19:39:19 - PreDownloadProcess.Init().Check().Wait()...
[INFO]: 2023-12-23 19:39:19 - PreDownloadProcess.Init() Start...
[INFO]: 2023-12-23 19:39:19 - ClearRodTmpRootFolder Done
[INFO]: 2023-12-23 19:39:19 - PreDownloadProcess.Init() End
[INFO]: 2023-12-23 19:39:19 - PreDownloadProcess.Check() Start...
[INFO]: 2023-12-23 19:39:19 - UseHttpProxy By: http
[ERROR]: 2023-12-23 19:39:19 - UrlConnectednessTest Target Site https://google.com, Get "https://google.com": read tcp 172.17.0.4:43404->46.82.174.69:443: read: connection reset by peer
[INFO]: 2023-12-23 19:39:19 - Check Sub Supplier Start...
2023/12/23 19:39:19.636739 WARN RESTY Get "https://www.a4k.net": dial tcp: lookup www.a4k.net on 8.8.8.8:53: no such host, Attempt 1
[INFO]: 2023-12-23 19:39:19 - xunlei Check Alive = true, Speed = 200 ms
2023/12/23 19:39:19.906213 WARN RESTY Get "https://www.a4k.net": dial tcp: lookup www.a4k.net on 8.8.8.8:53: no such host, Attempt 2
2023/12/23 19:39:19.906223 ERROR RESTY Get "https://www.a4k.net": dial tcp: lookup www.a4k.net on 8.8.8.8:53: no such host
[ERROR]: 2023-12-23 19:39:19 - a4k CheckAlive.Get Get "https://www.a4k.net": dial tcp: lookup www.a4k.net on 8.8.8.8:53: no such host
[WARNING]: 2023-12-23 19:39:19 - a4k Check Alive = false
[INFO]: 2023-12-23 19:39:20 - assrt CheckAlive UserInfo.Status: 0 UserInfo.Quota: 5
[INFO]: 2023-12-23 19:39:20 - assrt Check Alive = true, Speed = 667 ms
[INFO]: 2023-12-23 19:39:20 - subtitle_best Check Alive = true, Speed = 913 ms
[INFO]: 2023-12-23 19:39:20 - shooter Check Alive = true, Speed = 947 ms
[INFO]: 2023-12-23 19:39:20 - Alive Supplier: xunlei
[INFO]: 2023-12-23 19:39:20 - Alive Supplier: shooter
[INFO]: 2023-12-23 19:39:20 - Alive Supplier: assrt
[INFO]: 2023-12-23 19:39:20 - Alive Supplier: subtitle_best
[INFO]: 2023-12-23 19:39:20 - Check Sub Supplier End
[INFO]: 2023-12-23 19:39:20 - MovieFolder Index 0 -- /media/movie
[INFO]: 2023-12-23 19:39:20 - SeriesPaths Index 0 -- /media/tv
[INFO]: 2023-12-23 19:39:20 - PreDownloadProcess.Check() End
[INFO]: 2023-12-23 19:39:20 - PreDownloadProcess.Wait() Done.
[INFO]: 2023-12-23 19:39:20 - Download.SupplierCheck() End
Try Start Local Proxy Server at : 19036
[INFO]: 2023-12-23 19:39:24 - Tmdb Api is Alive 288
[INFO]: 2023-12-23 19:39:24 - Try Start Http Server At Port 19035
[INFO]: 2023-12-23 19:39:24 - Setup is Done
[INFO]: 2023-12-23 19:39:24 - PreJob Will Start...
[INFO]: 2023-12-23 19:39:24 - PreJob.HotFix() Start...
[INFO]: 2023-12-23 19:39:24 - If you have a lot of videos, it may take a lot of time, just wait...
[INFO]: 2023-12-23 19:39:24 - PreJob.HotFix() End
[INFO]: 2023-12-23 19:39:24 - PreJob.ChangeSubNameFormat() Start...
[INFO]: 2023-12-23 19:39:24 - If you have a lot of videos, it may take a lot of time, just wait...
[INFO]: 2023-12-23 19:39:24 - DesSubFormatter == LateTimeSubFormatter then skip process
[INFO]: 2023-12-23 19:39:24 - PreJob.ChangeSubNameFormat() End
[INFO]: 2023-12-23 19:39:24 - PreJob.Wait() Done.
[INFO]: 2023-12-23 19:39:24 - Setup is Done
[INFO]: 2023-12-23 19:39:24 - RunAtStartup: false, so will not Run At Startup
[INFO]: 2023-12-23 19:39:24 - CronHelper Start...
[INFO]: 2023-12-23 19:39:24 - Next Sub Scan Will Process At: 2023-12-24 02:00:00
[INFO]: 2023-12-23 19:40:43 - ----------------------------------
[INFO]: 2023-12-23 19:40:43 - OrgSubName: Yuyu.Hakusho.2023.EP02.1080p.NF.WEB-DL.DDP5.1.Atmos.H.264-MagicStar.Chs.srt
[INFO]: 2023-12-23 19:40:43 - SubDownAt: /media/tv/Yu Yu Hakusho (2023)/Season 1/Yu Yu Hakusho (2023) - S01E02 - Episode 2 WEBDL-1080p.chinese(简,manual).default.srt
index 0, score 120036 (offset -2284) for ratio 1.000 skipPer 0.190
index 1, score 123417 (offset -2163) for ratio 1.000 skipPer 0.180
index 2, score 126392 (offset -2042) for ratio 1.000 skipPer 0.170
index 3, score 129435 (offset -1922) for ratio 1.000 skipPer 0.160
index 4, score 132909 (offset -1802) for ratio 1.000 skipPer 0.150
index 5, score 134116 (offset -1681) for ratio 1.000 skipPer 0.140
index 6, score 135467 (offset -1561) for ratio 1.000 skipPer 0.130
index 7, score 136161 (offset -1441) for ratio 1.000 skipPer 0.120
index 8, score 137254 (offset -1321) for ratio 1.000 skipPer 0.110
index 9, score 139280 (offset -1201) for ratio 1.000 skipPer 0.100
index 10, score 140393 (offset -1081) for ratio 1.000 skipPer 0.090
index 11, score 141946 (offset -961) for ratio 1.000 skipPer 0.080
index 12, score 145360 (offset -842) for ratio 1.000 skipPer 0.070
index 13, score 147664 (offset -721) for ratio 1.000 skipPer 0.060
index 14, score 149979 (offset -601) for ratio 1.000 skipPer 0.050
index 15, score 152452 (offset -481) for ratio 1.000 skipPer 0.040
index 16, score 154075 (offset -362) for ratio 1.000 skipPer 0.030
index 17, score 156143 (offset -241) for ratio 1.000 skipPer 0.020
index 18, score 157560 (offset -121) for ratio 1.000 skipPer 0.010
index 19, score 158191 (offset 0) for ratio 1.000 skipPer 0.000
[INFO]: 2023-12-23 19:41:17 - Skip TimeLine Fix, MinOffset: 0.2 -- NowOffsetTime: 0 /media/tv/Yu Yu Hakusho (2023)/Season 1/Yu Yu Hakusho (2023) - S01E02 - Episode 2 WEBDL-1080p.chinese(简,manual).default.srt
[INFO]: 2023-12-23 19:41:17 - ----------------------------------
[INFO]: 2023-12-23 19:41:17 - change_file_encode to UTF-8
[INFO]: 2023-12-23 19:41:17 - ----------------------------------
[INFO]: 2023-12-23 19:41:17 - chs_cht_changer to 简
[INFO]: 2023-12-23 19:41:17 - ----------------------------------

@PQ0000
Copy link
Author

PQ0000 commented Dec 23, 2023

我刚刚使用了windows环境下,设置了ffmpeg的环境变量,确定可以正常使用后,有进行了批量上传,还是有相同的问题。nas是英特的处理器,台式机是amd的处理器。都遇到了相同问题
屏幕截图 2023-12-23 210343
貌似gpu的占用还是没有解除,但是日志也没有显示出在处理下一条任务。

@jaspercgz
Copy link

我也有这个问题,关闭自动校正字幕时间轴的功能,就可以批量上传了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants