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

初始化连接问题&其他问题 #4

Open
Goojoe opened this issue Jul 30, 2023 · 33 comments
Open

初始化连接问题&其他问题 #4

Goojoe opened this issue Jul 30, 2023 · 33 comments

Comments

@Goojoe
Copy link

Goojoe commented Jul 30, 2023

yaml:

port: 53436 # 监听端口 docker-compose部署无需更改
path: F:\jellyfin\bgm # 番剧下载路径 docker-compose部署无需更改
drop-dumplicate: on # 若存在相同集数,则删除重复项(建议开启)
qbittorrent:
  url: http://localhost:8080 # qbt-api url,在docker-compose部署时无需更改
  username: admin
  password: adminadmin
  localed: yes # 如果qbt开启了本地登录选项,则可不用填写用户,名和密码,docker-compose部署则可忽视此项
  timeout: 3500 # qbt-api请求的超时时间,有时任务添加到qbt上,调用api后无法立即响应到数据

log:

2023/07/30 11:22:59.270290 AniCat Ver.x.x.x github:https://github.com/NullpointerW/AniCat
2023/07/30 11:22:59.278974 port: 53436
2023/07/30 11:22:59.278974 subject path: F:\jellyfin\bgm
2023/07/30 11:22:59.278974 drop dumplicate: yes
2023/07/30 11:22:59.278974 qbt weburl: http://localhost:8080
2023/07/30 11:22:59.278974 qbt api request timeout(ms): 3500
2023/07/30 11:22:59.290650 qBittorrent connected v4.5.4.10
2023/07/30 11:22:59.291177 api version: 2.8.20
2023/07/30 11:22:59.291177 email push disable
2023/07/30 11:22:59.294379 listen tcp :53436: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.

命令:

PS F:\Portable\Anicat> .\anicat.exe add 孤独摇滚
@NullpointerW
Copy link
Owner

netstat -aon|findstr "53436" 查看端口被占用情况,如果被其他进程占用那就换一个空闲的端口

@Goojoe
Copy link
Author

Goojoe commented Jul 30, 2023

命令没有任何提示
还有cli版有什么区别?
我这个是Windows

@NullpointerW
Copy link
Owner

启动anicat.exe后下载命令行工具https://github.com/NullpointerW/AniCat/releases/download/v0.0.2b/anicat-windows-cli-amd64.exe
然后
.\anicat-windows-cli-amd64.exe -p 53436 输入命令
@Goojoe

@Goojoe
Copy link
Author

Goojoe commented Jul 30, 2023

感谢,可以使用了,Windows的使用说明有所欠缺

@Goojoe
Copy link
Author

Goojoe commented Jul 30, 2023

anicat 需要加入-h帮助说明
anicat-cli -h 帮助缺失了-p的说明
是否应该检测已经有anicat/anicat-cli在运行?

@NullpointerW
Copy link
Owner

输入help 可以获得帮助说明
@Goojoe

@Goojoe
Copy link
Author

Goojoe commented Jul 31, 2023

又遇到个问题,这命令真看不出来有什么错误

>add 孤独摇滚 -g 千夏字幕组 --mc 简体
 status code:409 Conflict: bad response
>add 孤独摇滚

运行正常

log:

 2023/07/31 09:39:02.363015 searching resource from mikan:  https://mikanime.tv/Home/Search?searchstr=%E5%AD%A4%E7%8B%AC%E6%91%87%E6%BB%9A
2023/07/31 09:39:06.409356 mikan: found rss resource, fetching https://mikanime.tv/Home/Bangumi/2833
2023/07/31 09:39:06.808807 searching info from bgmiTV http://bgm.tv/subject/328609
2023/07/31 09:39:08.507728 search/fetch folder info from TMDB https://www.themoviedb.org/search/tv?query=%E5%AD%A4%E7%8B%AC%E6%91%87%E6%BB%9A%EF%BC%81
2023/07/31 09:39:11.256129 cover file downloaded size:761592

@NullpointerW
Copy link
Owner

这个409是qbittorrent返回的错误,可能是因为网络问题导致获取rss资源失败,我这边是可以成功的,你可以开启代理试下
@Goojoe

@Goojoe
Copy link
Author

Goojoe commented Jul 31, 2023

找到原因了,不要使用qbittorrent默认设置 * 8080端口
下面的qbittorrent日志让我认为是Clash的原因,搞了好久 = =

2023/7/31 14:57 - SOCKS5 代理错误。消息: "SOCKS5 error. op: connect ec: �����������У��������ĵ�ַ��Ч�� ep: 127.0.0.1:7890"

@Goojoe
Copy link
Author

Goojoe commented Jul 31, 2023

不,我错了,我又遇到了这个问题,我删除了qbittorrent分类,然后就可以了正常下载了
image
image

@NullpointerW
Copy link
Owner

可能是你之前没有通过rm删除原来的项目,或者是rm没有删掉分类导致的
@Goojoe

@Goojoe
Copy link
Author

Goojoe commented Jul 31, 2023

对,应该是这两个原因吧
我还有问题:
如果字幕组发布的修正版 01v2 这种剧集名字需要怎么处理呢?

@NullpointerW
Copy link
Owner

NullpointerW commented Jul 31, 2023

目前没有判断修正版本的逻辑,所以07和07v2都会识别为S0XE07 如果两个文件同时被下载,就看谁先下载完成,后下载完成的将会被排除,未来会加入这个判断的
@Goojoe

@Goojoe Goojoe changed the title 端口被占用 初始化连接问题&其他问题 Aug 4, 2023
@Goojoe
Copy link
Author

Goojoe commented Aug 4, 2023

我觉得应该把客户端连接服务端的说明放在前面,然后再介绍客户端的命令,第一次看我是懵的
https://github.com/NullpointerW/AniCat#%E5%AE%A2%E6%88%B7%E7%AB%AF

@NullpointerW
Copy link
Owner

我觉得应该把客户端连接服务端的说明放在前面,然后再介绍客户端的命令,第一次看我是懵的 https://github.com/NullpointerW/AniCat#%E5%AE%A2%E6%88%B7%E7%AB%AF

已更改顺序

@Goojoe
Copy link
Author

Goojoe commented Sep 1, 2023

加不了BanG Dream! It’s MyGO
image

@NullpointerW
Copy link
Owner

BanG Dream! It’s MyGO

p2023-09-01 164345
新版本我对tmdb抓取做了点优化,是可以添加成功的,你可以下载最新的源码编译或者等下新版本发布

@Goojoe
Copy link
Author

Goojoe commented Sep 1, 2023

对Go不熟,等你发包吧

@Goojoe
Copy link
Author

Goojoe commented Sep 18, 2023

不会用了,anicat-service-windows-service-amd64.exe和anicat-windows-amd64.zip又是什么关系啊

@NullpointerW
Copy link
Owner

不会用了,anicat-service-windows-service-amd64.exe和anicat-windows-amd64.zip又是什么关系啊

如果想通过注册服务运行,就下载anicat-service-windows-service-amd64.exe到原来的目录下,然后管理员运行终端,通过install安装服务后 再用start启动

@Goojoe
Copy link
Author

Goojoe commented Sep 18, 2023

那么cli呢?还是用之前的吗?

@NullpointerW
Copy link
Owner

那么cli呢?还是用之前的吗?

是的

@Goojoe
Copy link
Author

Goojoe commented Sep 18, 2023

那应该把cli也传上新版里吧,在releases说明一下服务和非服务版本区别

@Goojoe
Copy link
Author

Goojoe commented Sep 18, 2023

反馈bug

time=2023-09-18T20:06:07 level=INFO msg="fetching rssGroups" url=https://mikanime.tv/Home/Bangumi/3115 source=mikan
time=2023-09-18T20:06:09 level=INFO msg="fetching info" url=https://bgm.tv/subject/401301 source=bgmTV
time=2023-09-18T20:06:12 level=INFO msg="fetching folderInfo" url="https://www.themoviedb.org/search/tv?query=%E5%A5%87%E5%BC%82%E8%B4%A4%E4%BC%B4+%E9%BB%91%E8%89%B2%E5%A4%A9%E4%BD%BF" source=TMDB
time=2023-09-18T20:06:27 level=INFO msg="fetching resource" url="https://mikanime.tv/Home/Search?searchstr=%E8%B0%8E%E8%A8%80%E6%B8%B8%E6%88%8F" source=mikan
time=2023-09-18T20:06:29 level=INFO msg="fetching rssResource" url=https://mikanime.tv/Home/Bangumi/3115 source=mikan
time=2023-09-18T20:06:30 level=INFO msg="fetching info" url=https://bgm.tv/subject/333979 source=bgmTV
time=2023-09-18T20:07:02 level=INFO msg="fetching resource" url="https://mikanime.tv/Home/Search?searchstr=%E8%B0%8E%E8%A8%80%E6%B8%B8%E6%88%8F" source=mikan
time=2023-09-18T20:07:04 level=INFO msg="fetching rssResource" url=https://mikanime.tv/Home/Bangumi/3115 source=mikan
time=2023-09-18T20:07:04 level=INFO msg="fetching info" url=https://bgm.tv/subject/333979 source=bgmTV
time=2023-09-18T20:07:14 level=ERROR msg="bgmTV api: search info failed: context deadline exceeded (Client.Timeout or context cancellation while reading body)"
time=2023-09-18T20:07:28 level=INFO msg="fetching resource" url="https://mikanime.tv/Home/Search?searchstr=%E8%B0%8E%E8%A8%80%E6%B8%B8%E6%88%8F" source=mikan
time=2023-09-18T20:07:30 level=INFO msg="fetching rssResource" url=https://mikanime.tv/Home/Bangumi/3115 source=mikan
time=2023-09-18T20:07:30 level=INFO msg="fetching info" url=https://bgm.tv/subject/333979 source=bgmTV
time=2023-09-18T20:07:35 level=INFO msg="fetching resource" url="https://mikanime.tv/Home/Search?searchstr=%E8%B0%8E%E8%A8%80%E6%B8%B8%E6%88%8F" source=mikan
time=2023-09-18T20:07:40 level=INFO msg="fetching rssResource" url=https://mikanime.tv/Home/Bangumi/3115 source=mikan
time=2023-09-18T20:07:41 level=INFO msg="fetching info" url=https://bgm.tv/subject/333979 source=bgmTV
time=2023-09-18T20:09:10 level=INFO msg="fetching info" url=https://bgm.tv/subject/387822 source=bgmTV
time=2023-09-18T20:09:12 level=INFO msg="fetching folderInfo" url="https://www.themoviedb.org/search/tv?query=%E7%99%BD%E5%9C%A3%E5%A5%B3%E4%B8%8E%E9%BB%91%E7%89%A7%E5%B8%88" source=TMDB
>add 谎言游戏 -g LoliHouse
 parsing time "2023\xe5\xb9\xb49\xe6\x9c\x8816\xe6\x97\xa5\xef\xbc\x88Abema\xef\xbc\x892023\xe5\xb9\xb49\xe6\x9c\x8823\xe6\x97\xa5\xef\xbc\x88Tv\xef\xbc\x89": extra text: "\xef\xbc\x88Abema\xef\xbc\x892023\xe5\xb9\xb49\xe6\x9c\x8823\xe6\x97\xa5\xef\xbc\x88Tv\xef\xbc\x89"

>add 谎言游戏 -g LoliHouse 
 bgmTV api: search info failed: context deadline exceeded (Client.Timeout or context cancellation while reading body) 

@NullpointerW
Copy link
Owner

反馈bug

time=2023-09-18T20:06:07 level=INFO msg="fetching rssGroups" url=https://mikanime.tv/Home/Bangumi/3115 source=mikan
time=2023-09-18T20:06:09 level=INFO msg="fetching info" url=https://bgm.tv/subject/401301 source=bgmTV
time=2023-09-18T20:06:12 level=INFO msg="fetching folderInfo" url="https://www.themoviedb.org/search/tv?query=%E5%A5%87%E5%BC%82%E8%B4%A4%E4%BC%B4+%E9%BB%91%E8%89%B2%E5%A4%A9%E4%BD%BF" source=TMDB
time=2023-09-18T20:06:27 level=INFO msg="fetching resource" url="https://mikanime.tv/Home/Search?searchstr=%E8%B0%8E%E8%A8%80%E6%B8%B8%E6%88%8F" source=mikan
time=2023-09-18T20:06:29 level=INFO msg="fetching rssResource" url=https://mikanime.tv/Home/Bangumi/3115 source=mikan
time=2023-09-18T20:06:30 level=INFO msg="fetching info" url=https://bgm.tv/subject/333979 source=bgmTV
time=2023-09-18T20:07:02 level=INFO msg="fetching resource" url="https://mikanime.tv/Home/Search?searchstr=%E8%B0%8E%E8%A8%80%E6%B8%B8%E6%88%8F" source=mikan
time=2023-09-18T20:07:04 level=INFO msg="fetching rssResource" url=https://mikanime.tv/Home/Bangumi/3115 source=mikan
time=2023-09-18T20:07:04 level=INFO msg="fetching info" url=https://bgm.tv/subject/333979 source=bgmTV
time=2023-09-18T20:07:14 level=ERROR msg="bgmTV api: search info failed: context deadline exceeded (Client.Timeout or context cancellation while reading body)"
time=2023-09-18T20:07:28 level=INFO msg="fetching resource" url="https://mikanime.tv/Home/Search?searchstr=%E8%B0%8E%E8%A8%80%E6%B8%B8%E6%88%8F" source=mikan
time=2023-09-18T20:07:30 level=INFO msg="fetching rssResource" url=https://mikanime.tv/Home/Bangumi/3115 source=mikan
time=2023-09-18T20:07:30 level=INFO msg="fetching info" url=https://bgm.tv/subject/333979 source=bgmTV
time=2023-09-18T20:07:35 level=INFO msg="fetching resource" url="https://mikanime.tv/Home/Search?searchstr=%E8%B0%8E%E8%A8%80%E6%B8%B8%E6%88%8F" source=mikan
time=2023-09-18T20:07:40 level=INFO msg="fetching rssResource" url=https://mikanime.tv/Home/Bangumi/3115 source=mikan
time=2023-09-18T20:07:41 level=INFO msg="fetching info" url=https://bgm.tv/subject/333979 source=bgmTV
time=2023-09-18T20:09:10 level=INFO msg="fetching info" url=https://bgm.tv/subject/387822 source=bgmTV
time=2023-09-18T20:09:12 level=INFO msg="fetching folderInfo" url="https://www.themoviedb.org/search/tv?query=%E7%99%BD%E5%9C%A3%E5%A5%B3%E4%B8%8E%E9%BB%91%E7%89%A7%E5%B8%88" source=TMDB
>add 谎言游戏 -g LoliHouse
 parsing time "2023\xe5\xb9\xb49\xe6\x9c\x8816\xe6\x97\xa5\xef\xbc\x88Abema\xef\xbc\x892023\xe5\xb9\xb49\xe6\x9c\x8823\xe6\x97\xa5\xef\xbc\x88Tv\xef\xbc\x89": extra text: "\xef\xbc\x88Abema\xef\xbc\x892023\xe5\xb9\xb49\xe6\x9c\x8823\xe6\x97\xa5\xef\xbc\x88Tv\xef\xbc\x89"

>add 谎言游戏 -g LoliHouse 
 bgmTV api: search info failed: context deadline exceeded (Client.Timeout or context cancellation while reading body) 

因为这个番的播放结束时间是多个,一般很少见

播放结束
2023年9月16日(Abema)2023年9月23日(Tv)

会导致转换时间时字符串格式错误,还是第一次出现这种状况,之后会修复的

@Goojoe
Copy link
Author

Goojoe commented Sep 21, 2023

请求新功能,番剧更新日志:
在根目录创建日志文件,哪部番剧某个时间更新了某一集,日志虽然也有但是看着有些乱

@Goojoe
Copy link
Author

Goojoe commented Nov 10, 2023

add 白圣女与黑牧师 -g 桜都字幕组 --mc 1080 简体内嵌

image
上面命令把合集也加进去了,重命名也会出问题

time=2023-11-10T15:28:48 level=ERROR msg="rename RssTorr with subtitles failed" err="item was already pushed: origin_name=[Sakurato][20230712] Shiro Seijo to Kuro Bokushi [01-12 Fin][TVRip][1080p][CHS],rename=白圣女与黑牧师 S01E09.mp4\n"

所以正则匹配应该怎么写?
示例的正则匹配是无效的
image

@NullpointerW
Copy link
Owner


add 白圣女与黑牧师 -g 桜都字幕组 --mc 1080 简体内嵌

image

上面命令把合集也加进去了,重命名也会出问题


time=2023-11-10T15:28:48 level=ERROR msg="rename RssTorr with subtitles failed" err="item was already pushed: origin_name=[Sakurato][20230712] Shiro Seijo to Kuro Bokushi [01-12 Fin][TVRip][1080p][CHS],rename=白圣女与黑牧师 S01E09.mp4\n"

所以正则匹配应该怎么写?

示例的正则匹配是无效的

image

这是因为之前设计的问题,如果用户在添加时加入了过滤参数,那么程序就不会查找rss里的合集,而是从所有rss订阅项中筛选符合过滤的项目,这个之后的版本会改进

@Goojoe
Copy link
Author

Goojoe commented Nov 10, 2023

[SweetSub][16 位元的辉煌 Another Layer][16bit Sensation: Another Layer][05][WebRip][1080P][AVC 8bit][繁日双语][v2](检索用:16bit的感动)

还有这样的v2修复版

@NullpointerW
Copy link
Owner

[SweetSub][16 位元的辉煌 Another Layer][16bit Sensation: Another Layer][05][WebRip][1080P][AVC 8bit][繁日双语][v2](检索用:16bit的感动)

还有这样的v2修复版

关于字幕修订的问题后续也会处理,但优先级不高,因为修订的字幕大部分意译跟旧版差不多,对于我个人来说,有些存在明显错误的地方也能听出来,至少我不会为了修订的字幕而去再刷一遍;下个版本主要是重写了客户端,之后计划还准备内置Torrent下载器,目前太过于依赖qbt了,anicat本身就想做到轻量化而且qbt本身也挺重的,像是一个自行车拖着轿车在跑

@Goojoe
Copy link
Author

Goojoe commented Nov 10, 2023

哦哦,那么还会支持qbittorrent吗,我还挺喜欢用的,qbittorrent姑且也算成熟的bt软件吧,为什么要自己写一遍,qbittorrent有社区更新。再实现各种功能工作量很大吧??

@NullpointerW
Copy link
Owner

哦哦,那么还会支持qbittorrent吗,我还挺喜欢用的,qbittorrent姑且也算成熟的bt软件吧,为什么要自己写一遍,qbittorrent有社区更新。再实现各种功能工作量很大吧??

qbt的支持会保留,相当于增加了一个内置下载器可供选择,为了单纯追番的懒人来说只要一个exe即可跑起来

@Goojoe
Copy link
Author

Goojoe commented Nov 10, 2023

嗯,你说的对,程序的定位就是方便快捷,所以自己写也是一种好选择。集成后在Linux也能很好用,不用额外折腾qbittorrent

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