Nriver / Episode-ReName

电视剧/番剧自动化重命名工具, 一键批量改名. 可配合QBittorrent下载后自动重命名, 方便Emby自动刮削. 支持Windows, Linux, MacOS, Docker 和 群晖套件环境运行
GNU Affero General Public License v3.0
1.1k stars 73 forks source link

[BUG反馈]右键菜单添加--name_format后无法添加series #47

Closed y9918995 closed 6 months ago

y9918995 commented 6 months ago

问题描述 右键菜单添加--name_format后无法添加series

复现步骤

  1. 在什么环境运行了什么命令 Windows 10 以前下载的懒人包,但是rename是更新到最新的
  2. 报错信息 右键菜单运行时的截图如附件所示
  3. 修改后的reg文件
    
    Windows Registry Editor Version 5.00
    [HKEY_CLASSES_ROOT\*\shell\EpisodeReName]
    @="自动剧集命名"
    "Icon"="D:\\0-Archive\\Program\\Qbittorrent-RssManager\\EpisodeReName.exe,0"

[HKEY_CLASSES_ROOT*\shell\EpisodeReName\command] @="D:\0-Archive\Program\Qbittorrent-RssManager\EpisodeReName.exe --path \"%1\" --name_format "{series} - S{season}E{ep}""

[HKEY_CLASSES_ROOT\Directory\shell\EpisodeReName] @="自动剧集命名" "Icon"="D:\0-Archive\Program\Qbittorrent-RssManager\EpisodeReName.exe,0"

[HKEY_CLASSES_ROOT\Directory\shell\EpisodeReName\command] @="D:\0-Archive\Program\Qbittorrent-RssManager\EpisodeReName.exe --path \"%1\" --name_format "{series} - S{season}E{ep}""

4. 正常CMD运行时是正常的

D:\1-Anime\01-NewAnime-Baha\GIRLS BAND CRY(2024)\S1>D:\0-Archive\Program\Qbittorrent-RssManager\EpisodeReName.exe --path "D:\1-Anime\01-NewAnime-Baha\GIRLS BAND CRY(2024)\S1\02.mp4" --name_format "{series} - S{season}E{ep}" 2024-04-13 21:42:45.945 | INFO | main::733 - 单文件处理 2024-04-13 21:42:45.945 | INFO | main::734 - D:/1-Anime/01-NewAnime-Baha/GIRLS BAND CRY(2024)/S1/02.mp4 2024-04-13 21:42:45.946 | INFO | main:get_season_and_ep:266 - ('解析文件', 'D:\1-Anime\01-NewAnime-Baha\GIRLS BAND CRY(2024)\S1\02.mp4') 2024-04-13 21:42:45.949 | INFO | main:get_season_and_ep:386 - 括号内未识别, 开始寻找括号外内容 2024-04-13 21:42:45.949 | INFO | main:get_season_andep:394 - pat [.?]|(.?)|【.?】|「.?」|-|\ 2024-04-13 21:42:45.950 | INFO | main:extract_ending_ep:459 - 找末尾是数字的子字符串 2024-04-13 21:42:45.951 | INFO | main:extract_ending_ep:473 - <re.Match object; span=(0, 2), match='02'> 2024-04-13 21:42:45.952 | INFO | main:ep_offset_patch:590 - 检测到 qb-rss-manager 的 v1 格式数据 2024-04-13 21:42:45.953 | INFO | main::763 - GIRLS BAND CRY - S01E02.mp4 2024-04-13 21:42:45.953 | INFO | main::785 - ('file_lists', [['D:\1-Anime\01-NewAnime-Baha\GIRLS BAND CRY(2024)\S1\02.mp4', 'D:\1-Anime\01-NewAnime-Baha\GIRLS BAND CRY(2024)\S1\GIRLS BAND CRY - S01E02.mp4']]) 2024-04-13 21:42:45.975 | INFO | main::834 - 运行完毕



**截图**
如果有截图,请附上
右键菜单,未能添加series的运行截图
![image](https://github.com/Nriver/Episode-ReName/assets/57078593/dc07d34e-2e56-47b5-800f-9aaa972774ad)
y9918995 commented 6 months ago

GPT了之后知道了引号要用\",是我的reg编辑有问题555