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

config_migration.py 转换后的文件是GB中文格式,而非UTF-8,导致报错 #484

Open
2 tasks done
pein0saga opened this issue Dec 17, 2024 · 2 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@pein0saga
Copy link

问题详情

config_migration.py 转换后的文件是GB中文格式,而非UTF-8,导致报错

用文本转换工具转了编码才消除了相关问题

运行方式

我运行的是打包后的exe程序

代理

日志

UnicodeDecodeError:
utf-8
b'# vim:foldmethod=marker \r\n################################\r\nscanner:\r\n  # \xcd\xc6\xb2\xe2\xb7\xac\xba\xc5\xc7\xb0\xba\xf6\xc2\xd4\xce\xc4\xbc\xfe\xc3\xfb\xd6\xd0\xb5\xc4\xcc\xd8\xb6\xa8\xd7\xd6\xb7\xfb\xb4\xae\xa3\xa8\xba\xf6\xc2\xd4\xb4\xf3\xd0\xa1\xd0\xb4\xa3\xac\xd2\xd4\xd3\xa2\xce\xc4\xb7\xd6\xba\xc5;\xb7\xd6\xb8\xf4\xa3\xa9\r\n  # \xb4\xf3\xb6\xe0\xca\xfd\xc7\xe9\xbf\xf6\xc8\xed\xbc\xfe\xc4\xdc\xb9\xbb\xd7\xd4\xb6\xaf\xca\xb6\xb1\xf0\xb7\xac\xba\xc5\xa3\xac\xd6\xbb\xd3\xd0\xb5\xb1\xce\xc4\xbc\xfe\xc3\xfb\xd6\xd0\xcc\xd8\xb6\xa8\xb5\xc4\xb2\xbf\xb7\xd6\xb5\xbc\xd6\xc2\xb7\xac\xba\xc5\xca\xb6\xb1\xf0\xb4\xed\xce\xf3\xca\xb1\xb2\xc5\xd0\xe8\xd2\xaa\xb8\xfc\xd0\xc2\xb4\xcb\xc9\xe8\xd6\xc3\r\n  # \xd2\xaa\xba\xf6\xc2\xd4\xb5\xc4\xd5\xfd\xd4\xf2\xb1\xed\xb4\xef\xca\xbd\xa3\xa8\xc8\xe7\xb9\xfb\xc4\xe3\xb2\xbb\xca\xec\xcf\xa4\xd5\xfd\xd4\xf2\xb1\xed\xb4\xef\xca\xbd\xa3\xac\xc7\xeb\xb2\xbb\xd2\xaa\xd0\xde\xb8\xc4\xb4\xcb\xc5\xe4\xd6\xc3\xa3\xac\xb7\xf1\xd4\xf2\xbf\xc9\xc4\xdc\xd1\xcf\xd6\xd8\xd3\xb0\xcf\xec\xb7\xac\xba\xc5\xca\xb6\xb1\xf0\xd0\xa7\xb9\xfb\xa3\xa9\r\n  ignored_id_pattern: #\xc7\xeb\xca\xd6\xb6\xaf\xc7\xe5\xb3\xfd\xd6\xd8\xb8\xb4\xb5\xc4pattern\r\n    - \'\\w+2048\\.com\'\r\n    - \'Carib(beancom)?\'\r\n    - \'[^a-z\\d](f?hd|lt)[^a-z\\d]\'\r\n    - \'\\w+hhd800\\.com\'\r\n    - \'(?i)^\\-c\'\r\n    - \'144P\'\r\n    - \'240P\'\r\n    - \'360P\'\r\n    - \'480P\'\r\n    - \'720P\'\r\n    - \'1080P\'\r\n    - \'2K\'\r\n    - \'4K\'\r\n    - \'MissAV\'\r\n    - \'Watch\'\r\n    - \'uncensored\'\r\n    - \'nyap2p\'\r\n    - \'-c\'\r\n    - \'(144|240|360|480|720|1080)[Pp]\'\r\n    - \'[24][Kk]\'\r\n  # \xd5\xfb\xc0\xed\xc4\xc4\xb8\xf6\xce\xc4\xbc\xfe\xbc\xd0\xcf\xc2\xb5\xc4\xd3\xb0\xc6\xac\xa3\xbf\xa3\xa8\xb4\xcb\xcf\xee\xc1\xf4\xbf\xd5\xca\xb1\xbd\xab\xd4\xda\xd4\xcb\xd0\xd0\xca\xb1\xd1\xaf\xce\xca\xa3\xa9\r\n  input_directory: "D:\\\\Jellyfin\\\\_BT\\\\# Adult Video"\r\n  # \xc4\xc4\xd0\xa9\xba\xf3\xd7\xba\xb5\xc4\xce\xc4\xbc\xfe\xd3\xa6\xb5\xb1\xca\xd3\xce\xaa\xd3\xb0\xc6\xac\xa3\xbf\r\n  filename_extensions: [.3gp, .avi, .f4v, .flv, .iso, .m2ts, .m4v, .mkv, .mov, .mp4, .mpeg, .rm, .rmvb, .ts, .vob, .webm, .wmv, .strm]\r\n  # \xc9\xa8\xc3\xe8\xd3\xb0\xc6\xac\xce\xc4\xbc\xfe\xca\xb1\xba\xf6\xc2\xd4\xd6\xb8\xb6\xa8\xb5\xc4\xce\xc4\xbc\xfe\xbc\xd0\r\n  ignored_folder_name_pattern: [\'^\\.\', \'^#recycle$\', \'^#\xd5\xfb\xc0\xed\xcd\xea\xb3\xc9$\', \'^\xb2\xbb\xd2\xaa\xc9\xa8\xc3\xe8$\']\r\n  # \xc6\xa5\xc5\xe4\xb7\xac\xba\xc5\xca\xb1\xba\xf6\xc2\xd4\xd0\xa1\xd3\xda\xd6\xb8\xb6\xa8\xb4\xf3\xd0\xa1\xb5\xc4\xce\xc4\xbc\xfe\r\n  # \xb8\xf1\xca\xbd\xd2\xaa\xc7\xf3\xa3\xbahttps://docs.pydantic.dev/2.0/usage/types/bytesize/\r\n  minimum_size: 10MiB\r\n  skip_nfo_dir: no\r\n\r\n################################\r\nnetwork:\r\n  # \xc9\xe8\xd6\xc3\xb4\xfa\xc0\xed\xb7\xfe\xce\xf1\xc6\xf7\xb5\xd8\xd6\xb7\xa3\xac\xd6\xa7\xb3\xd6 http, socks5/socks5h \xb4\xfa\xc0\xed\xa3\xac\xb1\xc8\xc8\xe7\'http://127.0.0.1:1080\'\r\n  # null\xb1\xed\xca\xbe\xbd\xfb\xd3\xc3\xb4\xfa\xc0\xed\r\n  proxy_server: null\r\n  # \xb8\xf7\xb8\xf6\xd5\xbe\xb5\xe3\xb5\xc4\xc3\xe2\xb4\xfa\xc0\xed\xb5\xd8\xd6\xb7\xa1\xa3\xb5\xd8\xd6\xb7\xca\xa7\xd0\xa7\xca\xb1\xc8\xed\xbc\xfe\xbb\xe1\xd7\xd4\xb6\xaf\xb3\xa2\xca\xd4\xbb\xf1\xc8\xa1\xd0\xc2\xb5\xd8\xd6\xb7\xa3\xac\xc4\xe3\xd2\xb2\xbf\xc9\xd2\xd4\xca\xd6\xb6\xaf\xc9\xe8\xd6\xc3\r\n  proxy_free:\r\n    avsox: \'https://avsox.click\'\r\n    javdb: \'https://javdb368.com\'\r\n    javbus: \'https://www.busjav.help\'\r\n    javlib: \'https://www.r86m.com\'\r\n  # \xcd\xf8\xc2\xe7\xce\xca\xcc\xe2\xb5\xbc\xd6\xc2\xd7\xa5\xc8\xa1\xca\xfd\xbe\xdd\xca\xa7\xb0\xdc\xca\xb1\xb5\xc4\xd6\xd8\xca\xd4\xb4\xce\xca\xfd\xa3\xac\xcd\xa8\xb3\xa33\xb4\xce\xbe\xcd\xb2\xee\xb2\xbb\xb6\xe0\xc1\xcb\r\n  retry: 2\r\n  # https://en.wikipedia.org/wiki/ISO_8601#Durations\r\n  timeout: PT4S\r\n\r\n################################\r\ncrawler:\r\n  # \xd2\xaa\xca\xb9\xd3\xc3\xb5\xc4\xc5\xc0\xb3\xe6\xc1\xd0\xb1\xed\xa3\xa8\xbb\xe3\xd7\xdc\xca\xfd\xbe\xdd\xca\xb1\xb4\xd3\xc7\xb0\xb5\xbd\xba\xf3\xbd\xf8\xd0\xd0\xa3\xa9\r\n  # airav avsox avwiki fanza fc2 fc2fan javbus javdb javlib javmenu jav321 mgstage prestige arzon arzon_iv\r\n  selection:\r\n    normal: [airav, avsox, javbus, javdb, javlib, jav321, mgstage, prestige]\r\n    fc2: [fc2, avsox, javdb, javmenu, fc2ppvdb]\r\n    cid: [fanza]\r\n    getchu: [dl_getchu]\r\n    gyutto: [gyutto]\r\n  # \xc5\xc0\xb3\xe6\xd6\xc1\xc9\xd9\xd2\xaa\xbb\xf1\xc8\xa1\xb5\xbd\xc4\xc4\xd0\xa9\xd7\xd6\xb6\xce\xb2\xc5\xbf\xc9\xd2\xd4\xca\xd3\xce\xaa\xd7\xa5\xc8\xa1\xb3\xc9\xb9\xa6\xa3\xbf\r\n  required_keys: [cover, title]\r\n  # \xc5\xac\xc1\xa6\xc5\xc0\xc8\xa1\xb8\xfc\xd7\xbc\xc8\xb7\xb8\xfc\xb7\xe1\xb8\xbb\xb5\xc4\xd0\xc5\xcf\xa2\xa3\xa8\xbb\xe1\xc2\xd4\xce\xa2\xd4\xf6\xbc\xd3\xb2\xbf\xb7\xd6\xd5\xbe\xb5\xe3\xb5\xc4\xc5\xc0\xc8\xa1\xba\xc4\xca\xb1\xa3\xa9\r\n  hardworking: true\r\n  # \xca\xb9\xd3\xc3\xcd\xf8\xd2\xb3\xb7\xac\xba\xc5\xd7\xf7\xce\xaa\xd7\xee\xd6\xd5\xb7\xac\xba\xc5\xa3\xa8\xc6\xf4\xd3\xc3\xca\xb1\xbb\xe1\xb6\xd4\xb7\xac\xba\xc5\xb4\xf3\xd0\xa1\xd0\xb4\xb5\xc8\xbd\xf8\xd0\xd0\xb8\xfc\xd5\xfd\xa3\xa9\r\n  respect_site_avid: false\r\n  # fc2fan\xd2\xd1\xb9\xd8\xd5\xbe\xa1\xa3\xc8\xe7\xb9\xfb\xc4\xe3\xd3\xd0\xbe\xb5\xcf\xf1\xa3\xac\xc7\xeb\xc9\xe8\xd6\xc3\xb1\xbe\xb5\xd8\xbe\xb5\xcf\xf1\xce\xc4\xbc\xfe\xbc\xd0\xb5\xc4\xc2\xb7\xbe\xb6\xa3\xac\xb4\xcb\xce\xc4\xbc\xfe\xbc\xd0\xc4\xda\xd2\xaa\xd3\xd0\xc0\xe0\xcb\xc6\'FC2-12345.html\'\xb5\xc4\xcd\xf8\xd2\xb3\xce\xc4\xbc\xfe\r\n  fc2fan_local_path: \'\'\r\n  # \xb9\xce\xcf\xf7\xd2\xbb\xb2\xbf\xb5\xe7\xd3\xb0\xba\xf3\xb5\xc4\xb5\xc8\xb4\xfd\xca\xb1\xbc\xe4\xa3\xa8\xc9\xe8\xd6\xc3\xce\xaa0\xbd\xfb\xd3\xc3\xb4\xcb\xb9\xa6\xc4\xdc\xa3\xa9\r\n  # https://en.wikipedia.org/wiki/ISO_8601#Durations\r\n  sleep_after_scraping: PT1S\r\n  # \xca\xc7\xb7\xf1\xca\xb9\xd3\xc3javdb\xb5\xc4\xb7\xe2\xc3\xe6\xa3\xa8fallback/yes/no, \xc4\xac\xc8\xcffallback: \xc8\xe7\xb9\xfb\xc4\xdc\xb4\xd3\xb1\xf0\xb5\xc4\xd5\xbe\xb5\xe3\xbb\xf1\xb5\xc3\xb7\xe2\xc3\xe6\xd4\xf2\xb2\xbb\xd3\xc3javdb\xb5\xc4\xd2\xd4\xb1\xdc\xc3\xe2\xcb\xae\xd3\xa1\xa3\xa9\r\n  use_javdb_cover: fallback\r\n  # \xca\xc7\xb7\xf1\xcd\xb3\xd2\xbb\xc5\xae\xd3\xc5\xd2\xd5\xc3\xfb\xa1\xa3\xc6\xf4\xd3\xc3\xca\xb1\xbb\xe1\xb3\xa2\xca\xd4\xbd\xab\xc5\xae\xd3\xc5\xb5\xc4\xb6\xe0\xb8\xf6\xd2\xd5\xc3\xfb\xcd\xb3\xd2\xbb\xb3\xc9\xd2\xbb\xb8\xf6\r\n  normalize_actress_name: true\r\n\r\n################################\r\n# \xc5\xe4\xd6\xc3\xd5\xfb\xc0\xed\xca\xb1\xb5\xc4\xc3\xfc\xc3\xfb\xb9\xe6\xd4\xf2\r\n# path_pattern, nfo_title_pattern\xba\xcdname_pattern\xd6\xd0\xbf\xc9\xd2\xd4\xca\xb9\xd3\xc3\xb1\xe4\xc1\xbf\xc0\xb4\xd2\xfd\xd3\xc3\xd3\xb0\xc6\xac\xb5\xc4\xca\xfd\xbe\xdd\xa3\xac\xd6\xa7\xb3\xd6\xb5\xc4\xb1\xe4\xc1\xbf\xc1\xd0\xb1\xed\xbc\xfb\xcf\xc2\xc3\xe6\xb5\xc4\xb5\xd8\xd6\xb7:\r\n# https://github.com/Yuukiy/JavSP/wiki/NamingRule-%7C-%E5%91%BD%E5%90%8D%E8%A7%84%E5%88%99\r\nsummarizer:\r\n  # \xd5\xfb\xc0\xed\xca\xb1\xca\xc7\xb7\xf1\xd2\xc6\xb6\xaf\xce\xc4\xbc\xfe: true-\xd2\xc6\xb6\xaf\xcb\xf9\xd3\xd0\xce\xc4\xbc\xfe\xb5\xbd\xd0\xc2\xce\xc4\xbc\xfe\xbc\xd0; false-\xca\xfd\xbe\xdd\xb1\xa3\xb4\xe6\xb5\xbd\xcd\xac\xbc\xb6\xce\xc4\xbc\xfe\xbc\xd0\xa3\xac\xb2\xbb\xd2\xc6\xb6\xaf\xce\xc4\xbc\xfe\r\n  move_files: true\r\n\r\n  # \xc2\xb7\xbe\xb6\xcf\xe0\xb9\xd8\xb5\xc4\xd1\xa1\xcf\xee\r\n  path: \r\n    # \xb4\xe6\xb7\xc5\xd3\xb0\xc6\xac\xa1\xa2\xb7\xe2\xc3\xe6\xb5\xc8\xce\xc4\xbc\xfe\xb5\xc4\xce\xc4\xbc\xfe\xbc\xd0\xc2\xb7\xbe\xb6\r\n    output_folder_pattern: \'#\xd5\xfb\xc0\xed\xcd\xea\xb3\xc9/{actress}/[{year}] {rawtitle} [{num}]\'\r\n    # \xd3\xb0\xc6\xac\xa1\xa2\xb7\xe2\xc3\xe6\xa1\xa2nfo\xd0\xc5\xcf\xa2\xce\xc4\xbc\xfe\xb5\xc8\xb5\xc4\xce\xc4\xbc\xfe\xc3\xfb\xbd\xab\xbb\xf9\xd3\xda\xcf\xc2\xc3\xe6\xb5\xc4\xb9\xe6\xd4\xf2\xc0\xb4\xb4\xb4\xbd\xa8\r\n    basename_pattern: \'{num}\'\r\n    # \xd4\xca\xd0\xed\xb5\xc4\xd7\xee\xb3\xa4\xce\xc4\xbc\xfe\xc2\xb7\xbe\xb6\xa3\xa8\xc2\xb7\xbe\xb6\xb9\xfd\xb3\xa4\xca\xb1\xbd\xab\xbe\xdd\xb4\xcb\xd7\xd4\xb6\xaf\xbd\xd8\xb6\xcc\xb1\xea\xcc\xe2\xa3\xa9\r\n    length_maximum: 250\r\n    # \xca\xc7\xb7\xf1\xd2\xd4\xd7\xd6\xbd\xda\xca\xfd\xc0\xb4\xbc\xc6\xcb\xe3\xce\xc4\xbc\xfe\xc2\xb7\xbe\xb6\xb3\xa4\xb6\xc8\r\n    length_by_byte: true\r\n    # \xc2\xb7\xbe\xb6\xd6\xd0\xb5\xc4{actress}\xd7\xd6\xb6\xce\xd7\xee\xb6\xe0\xb0\xfc\xba\xac\xb6\xe0\xc9\xd9\xc3\xfb\xc5\xae\xd3\xc5\xa3\xbf\r\n    max_actress_count: 1\r\n    # \xca\xc7\xb7\xf1\xd3\xc3\xd3\xb2\xc1\xb4\xbd\xd3\xb7\xbd\xca\xbd\xd5\xfb\xc0\xed\xce\xc4\xbc\xfe\xa3\xbf\xd3\xb2\xc1\xb4\xbd\xd3\xbf\xc9\xd2\xd4\xbd\xda\xca\xa1\xbf\xd5\xbc\xe4\xa3\xac\xb5\xab\xb2\xbb\xca\xc7\xcb\xf9\xd3\xd0\xce\xc4\xbc\xfe\xcf\xb5\xcd\xb3\xb6\xbc\xd6\xa7\xb3\xd6\r\n    hard_link: false\r\n\r\n  #\xb1\xea\xcc\xe2\xb4\xa6\xc0\xed\r\n  title:\r\n    # \xc9\xbe\xb3\xfd\xce\xb2\xb2\xbf\xbf\xc9\xc4\xdc\xb4\xe6\xd4\xda\xb5\xc4\xc5\xae\xd3\xc5\xc3\xfb\r\n    remove_trailing_actor_name: false\r\n\r\n  # \xcf\xc2\xc3\xe6\xd5\xe2\xd0\xa9\xcf\xee\xd3\xc3\xc0\xb4\xc9\xe8\xd6\xc3\xb6\xd4\xd3\xa6\xb1\xe4\xc1\xbf\xce\xaa\xbf\xd5\xca\xb1\xb5\xc4\xcc\xe6\xb4\xfa\xd0\xc5\xcf\xa2\r\n  default:\r\n    title: \'#\xce\xb4\xd6\xaa\xb1\xea\xcc\xe2\'\r\n    actress: \'#\xce\xb4\xd6\xaa\xc5\xae\xd3\xc5\'\r\n    series: \'#\xce\xb4\xd6\xaa\xcf\xb5\xc1\xd0\'\r\n    director: \'#\xce\xb4\xd6\xaa\xb5\xbc\xd1\xdd\'\r\n    producer: \'#\xce\xb4\xd6\xaa\xd6\xc6\xd7\xf7\xc9\xcc\'\r\n    publisher: \'#\xce\xb4\xd6\xaa\xb7\xa2\xd0\xd0\xc9\xcc\'\r\n\r\n  # NFO\xce\xc4\xbc\xfe\xc9\xfa\xb3\xc9\xcf\xe0\xb9\xd8\xb5\xc4\xd1\xa1\xcf\xee\r\n  nfo:\r\n    # nfo\xce\xc4\xbc\xfe\xb5\xc4\xc3\xfb\xb3\xc6\r\n    basename_pattern: "movie"\r\n    # nfo\xce\xc4\xbc\xfe\xd6\xd0\xb5\xc4\xd3\xb0\xc6\xac\xb1\xea\xcc\xe2\xa3\xa8\xbc\xb4\xc3\xbd\xcc\xe5\xb9\xdc\xc0\xed\xb9\xa4\xbe\xdf\xd6\xd0\xcf\xd4\xca\xbe\xb5\xc4\xb1\xea\xcc\xe2\xa3\xa9\r\n    title_pattern: \'{num} {rawtitle}\'\r\n    # \xd2\xaa\xcc\xed\xbc\xd3\xb5\xbd\xd7\xd4\xb6\xa8\xd2\xe5\xb7\xd6\xc0\xe0\xb5\xc4\xd7\xd6\xb6\xce\xa3\xac\xbf\xd5\xc1\xd0\xb1\xed\xb1\xed\xca\xbe\xb2\xbb\xcc\xed\xbc\xd3\r\n    custom_genres_fields: [\'{genre}\', \'{censor}\']\r\n    # \xd2\xaa\xcc\xed\xbc\xd3\xb5\xbd\xd7\xd4\xb6\xa8\xd2\xe5\xb1\xea\xc7\xa9\xb5\xc4\xd7\xd6\xb6\xce\xa3\xac\xbf\xd5\xc1\xd0\xb1\xed\xb1\xed\xca\xbe\xb2\xbb\xcc\xed\xbc\xd3\r\n    custom_tags_fields: [\'{genre}\', \'{censor}\']\r\n  # \xd2\xc0\xb4\xce\xc9\xe8\xd6\xc3 \xd2\xd1\xd6\xaa\xce\xde\xc2\xeb/\xd2\xd1\xd6\xaa\xd3\xd0\xc2\xeb/\xb2\xbb\xc8\xb7\xb6\xa8 \xd5\xe2\xc8\xfd\xd6\xd6\xc7\xe9\xbf\xf6\xcf\xc2 $censor \xb6\xd4\xd3\xa6\xb5\xc4\xce\xc4\xb1\xbe(\xbf\xc9\xd2\xd4\xc0\xfb\xd3\xc3\xb4\xcb\xb1\xe4\xc1\xbf\xbd\xab\xd3\xd0\xc2\xeb/\xce\xde\xc2\xeb\xd3\xb0\xc6\xac\xd5\xfb\xc0\xed\xb5\xbd\xb2\xbb\xcd\xac\xce\xc4\xbc\xfe\xbc\xd0)\r\n  censor_options_representation: [\'\xce\xde\xc2\xeb\', \'\xd3\xd0\xc2\xeb\', \'\xb4\xf2\xc2\xeb\xc7\xe9\xbf\xf6\xce\xb4\xd6\xaa\']\r\n\r\n  cover:\r\n    # \xb7\xe2\xc3\xe6\xce\xc4\xbc\xfe\xb5\xc4\xc3\xfb\xb3\xc6\xa3\xa8\xb2\xbb\xba\xac\xcd\xd8\xd5\xb9\xc3\xfb\xa3\xa9\xa3\xac\xbf\xc9\xd2\xd4\xca\xb9\xd3\xc3\xc8\xe7`{title}`\xb5\xc8\xd7\xd6\xb6\xce\r\n    basename_pattern: "poster"\r\n    # \xbe\xa1\xbf\xc9\xc4\xdc\xcf\xc2\xd4\xd8\xb8\xdf\xc7\xe5\xb7\xe2\xc3\xe6\xa3\xbf\xa3\xa8\xb8\xdf\xc7\xe5\xb7\xe2\xc3\xe6\xb4\xf3\xd0\xa1\xd4\xbc 8-10 MiB\xa3\xac\xd4\xb6\xb4\xf3\xd3\xda\xc6\xd5\xcd\xa8\xb7\xe2\xc3\xe6\xa3\xac\xc8\xe7\xb9\xfb\xc4\xe3\xb5\xc4\xcd\xf8\xc2\xe7\xcc\xf5\xbc\xfe\xb2\xbb\xbc\xd1\xa3\xac\xbb\xe1\xbd\xb5\xb5\xcd\xd5\xfb\xc0\xed\xcb\xd9\xb6\xc8\xa3\xa9\r\n    highres: true\r\n    # \xd4\xda\xb7\xe2\xc3\xe6\xcd\xbc\xc9\xcf\xcc\xed\xbc\xd3\xcb\xae\xd3\xa1\xa3\xa8\xb1\xea\xc7\xa9\xa3\xa9\xa3\xac\xc0\xfd\xc8\xe7\xa1\xb0\xd7\xd6\xc4\xbb\xa1\xb1\r\n    add_label: false\r\n    crop:\r\n      # \xd2\xaa\xca\xb9\xd3\xc3\xcd\xbc\xcf\xf1\xca\xb6\xb1\xf0\xc0\xb4\xb2\xc3\xbc\xf4\xb5\xc4\xb7\xac\xba\xc5\xcf\xb5\xc1\xd0\xd0\xe8\xd2\xaa\xc6\xa5\xc5\xe4\xb5\xc4\xd5\xfd\xd4\xf2\xb1\xed\xb4\xef\xca\xbd\r\n      on_id_pattern:\r\n        - \'^\\d{6}[-_]\\d{3}$\'\r\n        - \'^ARA\'\r\n        - \'^SIRO\'\r\n        - \'^GANA\'\r\n        - \'^MIUM\'\r\n      # \xd2\xaa\xca\xb9\xd3\xc3\xb5\xc4\xcd\xbc\xcf\xf1\xca\xb6\xb1\xf0\xd2\xfd\xc7\xe6\xa3\xac\xcf\xea\xcf\xb8\xc5\xe4\xd6\xc3\xbc\xfb\xce\xc4\xb5\xb5 https://github.com/Yuukiy/JavSP/wiki/AI-%7C-%E4%BA%BA%E8%84%B8%E8%AF%86%E5%88%AB\r\n      # NOTE: \xb4\xcb\xb4\xa6\xce\xde\xb7\xa8\xd6\xb1\xbd\xd3\xb6\xd4\xd3\xa6\xa3\xac\xc7\xeb\xb2\xce\xd5\xd5\xd7\xa2\xca\xcd\xca\xd6\xb6\xaf\xcc\xee\xc8\xeb\r\n      engine: null #null\xb1\xed\xca\xbe\xbd\xfb\xd3\xc3\xcd\xbc\xcf\xf1\xbc\xf4\xb2\xc3\r\n      ## \xca\xb9\xd3\xc3Slimeface: {{{\r\n      # engine: \r\n      #   name: slimeface\r\n      ## }}}\r\n\r\n  fanart:\r\n    # \xba\xe1\xb0\xe6\xb7\xe2\xc3\xe6\xce\xc4\xbc\xfe\xb5\xc4\xc3\xfb\xb3\xc6\xa3\xa8\xb2\xbb\xba\xac\xcd\xd8\xd5\xb9\xc3\xfb\xa3\xa9\xa3\xac\xbf\xc9\xd2\xd4\xca\xb9\xd3\xc3\xc8\xe7`{title}`\xb5\xc8\xd7\xd6\xb6\xce\r\n    basename_pattern: "fanart"\r\n\r\n  extra_fanarts:\r\n    # \xca\xc7\xb7\xf1\xcf\xc2\xd4\xd8\xbe\xe7\xd5\xd5\xa3\xbf\r\n    enabled: false\r\n    # \xbc\xe4\xb8\xf4\xb5\xc4\xc1\xbd\xb4\xce\xb7\xe2\xc3\xe6\xc5\xc0\xc8\xa1\xc7\xeb\xc7\xf3\xd6\xae\xbc\xe4\xd3\xa6\xb8\xc3\xbc\xe4\xb8\xf4\xb6\xe0\xbe\xc3\r\n    scrap_interval: PTnoS\r\n\r\n################################\r\ntranslator:\r\n  # NOTE: \xb4\xcb\xb4\xa6\xce\xde\xb7\xa8\xd6\xb1\xbd\xd3\xb6\xd4\xd3\xa6\xa3\xac\xc7\xeb\xb2\xce\xd5\xd5\xd7\xa2\xca\xcd\xca\xd6\xb6\xaf\xcc\xee\xc8\xeb\r\n  # \xb7\xad\xd2\xeb\xd2\xfd\xc7\xe6\xa3\xac\xbf\xc9\xd1\xa1: google, bing, baidu, claude(haiku), openai \xa3\xa8Google\xbf\xc9\xd2\xd4\xd6\xb1\xbd\xd3\xc3\xe2\xb7\xd1\xca\xb9\xd3\xc3\xa1\xa3\xc1\xf4\xbf\xd5\xb1\xed\xca\xbe\xbd\xfb\xd3\xc3\xb7\xad\xd2\xeb\xb9\xa6\xc4\xdc\xa3\xa9\r\n  # \xbd\xf8\xbd\xd7\xb9\xa6\xc4\xdc\xb5\xc4\xce\xc4\xb5\xb5 https://github.com/Yuukiy/JavSP/wiki/Translation-%7C-%E7%BF%BB%E8%AF%91\r\n  engine: null\r\n  ## \xca\xb9\xd3\xc3\xb0\xd9\xb6\xc8\xb7\xad\xd2\xeb: {{{\r\n  # engine: \r\n  #   name: baidu\r\n  #   # \xb0\xd9\xb6\xc8\xb7\xad\xd2\xeb\xb5\xc4APP ID\xba\xcd\xc3\xdc\xd4\xbf\r\n  #   app_id: \'\'\r\n  #   api_key: \'\'\r\n  ## }}}\r\n  ## \xca\xb9\xd3\xc3\xb1\xd8\xd3\xa6\xb7\xad\xd2\xeb: {{{\r\n  # engine: \r\n  #   name: bing\r\n  #   # \xce\xa2\xc8\xed\xb1\xd8\xd3\xa6\xb7\xad\xd2\xeb\xa3\xa8Azure \xc8\xcf\xd6\xaa\xb7\xfe\xce\xf1 \xa1\xfa \xb7\xad\xd2\xeb\xa3\xa9\xb5\xc4\xc3\xdc\xd4\xbf\r\n  #   api_key: \'\'\r\n  ## }}}\r\n  ## \xca\xb9\xd3\xc3Claude\xb7\xad\xd2\xeb: {{{\r\n  # engine: \r\n  #   name: claude\r\n  #   # Claude\xb5\xc4\xc3\xdc\xd4\xbf (\xca\xb9\xd3\xc3haiku\xc4\xa3\xd0\xcd)\r\n  #   api_key: \'\'\r\n  ## }}}\r\n  ## \xca\xb9\xd3\xc3OpenAI\xb7\xad\xd2\xeb: {{{\r\n  # engine: \r\n  #   name: openai\r\n  #   # OpenAI API\xa3\xa8\xc4\xac\xc8\xcf\xca\xb9\xd3\xc3 Groq\xa3\xac\xbf\xc9\xcc\xe6\xbb\xbb\xb3\xc9\xc8\xce\xba\xce\xbc\xe6\xc8\xdd OpenAI \xb5\xc4\xb5\xda\xc8\xfd\xb7\xbd API\xa3\xa9\r\n  #   url: \'https://api.groq.com/openai/v1/chat/completions\'\r\n  #   api_key: \'\'\r\n  #   # \xd2\xaa\xca\xb9\xd3\xc3\xb5\xc4\xc4\xa3\xd0\xcd\xa3\xa8\xc4\xac\xc8\xcf\xca\xb9\xd3\xc3 Groq \xb5\xc4 llama-3.1-70b-versatile \xc4\xa3\xd0\xcd\xa3\xac\xc8\xf4\xca\xb9\xd3\xc3 OpenAI \xb9\xd9\xb7\xbd API \xb5\xc4\xbb\xb0\xd2\xbb\xb0\xe3\xc4\xa3\xd0\xcd\xce\xaa gpt-3.5-turbo\xa3\xa9\r\n  #   model: llama-3.1-70b-versatile\r\n  ## }}}\r\n  \r\n  # \xca\xc7\xb7\xf1\xb7\xad\xd2\xeb\xb8\xf7\xb8\xf6\xd7\xd6\xb6\xce\r\n  fields: \r\n    # \xca\xc7\xb7\xf1\xb7\xad\xd2\xeb\xb1\xea\xcc\xe2\r\n    title: false\r\n    # \xca\xc7\xb7\xf1\xb7\xad\xd2\xeb\xbe\xe7\xc7\xe9\xbc\xf2\xbd\xe9\r\n    plot: true\r\n  \r\n################################\r\nother:\r\n  # \xca\xc7\xb7\xf1\xd4\xdastdin/stdout\xbd\xf8\xd0\xd0\xbd\xbb\xbb\xa5\r\n  interactive: true\r\n  # \xca\xc7\xb7\xf1\xd4\xca\xd0\xed\xbc\xec\xb2\xe9\xb8\xfc\xd0\xc2\xa1\xa3\xc8\xe7\xb9\xfb\xd4\xca\xd0\xed\xa3\xac\xd4\xda\xd3\xd0\xd0\xc2\xb0\xe6\xb1\xbe\xca\xb1\xbb\xe1\xcf\xd4\xca\xbe\xcc\xe1\xca\xbe\xd0\xc5\xcf\xa2\xba\xcd\xd0\xc2\xb0\xe6\xb9\xa6\xc4\xdc\r\n  check_update: true\r\n  # \xca\xc7\xb7\xf1\xd4\xca\xd0\xed\xbc\xec\xb2\xe9\xb5\xbd\xd0\xc2\xb0\xe6\xb1\xbe\xca\xb1\xd7\xd4\xb6\xaf\xcf\xc2\xd4\xd8\r\n  auto_update: true'
74
75
invalid continuation byte

运行截图(可选)

No response

提交须知

  • 我确认使用的是最新版本并且阅读过Wiki帮助文档
  • 我确认已经搜索过Issue区,没有与我遇到的情况相同的Issue。
@pein0saga pein0saga added the bug Something isn't working label Dec 17, 2024
@glyh
Copy link
Collaborator

glyh commented Dec 19, 2024

hmm 转换脚本里似乎没有考虑编码问题,请问你的系统编码是不是GB2312等?

@pein0saga
Copy link
Author

系统编码是不是GB2312

Active code page: 936

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants