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

[错误报告]: rclone创建目录失败 #3292

Open
4 tasks done
BnqDzj opened this issue Nov 30, 2024 · 9 comments
Open
4 tasks done

[错误报告]: rclone创建目录失败 #3292

BnqDzj opened this issue Nov 30, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@BnqDzj
Copy link

BnqDzj commented Nov 30, 2024

确认

  • 我的版本是最新版本,我的版本号与 version 相同。
  • 我已经 issue 中搜索过,确认我的问题没有被提出过。
  • 我已经 Telegram频道 中搜索过,确认我的问题没有被提出过。
  • 我已经修改标题,将标题中的 描述 替换为我遇到的问题。

当前程序版本

v2.1.1

运行环境

Docker

问题类型

主程序运行问题

问题描述

使用rclone作为媒体库存储,且整理方式为移动时,无法整理任何媒体,报错均为rclone创建目录 xxx 失败!和目标目录 xxx 获取失败

发生问题时系统日志和配置文件

【WARNING】2024-11-30 22:02:32,788 - transfer.py - 斗破苍穹年番.Fights.Break.Sphere.S05E123.2022.2160p.WEB-DL.H265.AAC-HHWEB.mp4 入库失败:目标目录 /complete/tv/国漫/斗破苍穹 年番 (2022) 获取失败
【ERROR】2024-11-30 22:02:32,786 - filemanager - 目标目录 /complete/tv/国漫/斗破苍穹 年番 (2022) 获取失败
【WARNING】2024-11-30 22:02:32,784 - rclone.py - rclone创建目录 /complete/tv/国漫/斗破苍穹 年番 (2022) 失败!
【INFO】2024-11-30 22:02:12,391 - filemanager - 获取整理目标路径:【rclone】/complete/tv/国漫
【ERROR】2024-11-30 22:02:12,383 - tmdbapi.py - The resource you requested could not be found.
【INFO】2024-11-30 22:02:12,379 - transfer.py - 斗破苍穹年番.Fights.Break.Sphere.S05E123.2022.2160p.WEB-DL.H265.AAC-HHWEB.mp4 识别为:电视剧 斗破苍穹 年番 (2022)
【INFO】2024-11-30 22:02:12,377 - fanart - 斗破苍穹 年番 (2022) 没有tvdbid,无法获取fanart图片
【INFO】2024-11-30 22:02:12,371 - media.py - 斗破苍穹年番.Fights.Break.Sphere.S05E123.2022.2160p.WEB-DL.H265.AAC-HHWEB.mp4 识别到媒体信息:电视剧 斗破苍穹 年番 (2022)
【INFO】2024-11-30 22:02:12,368 - themoviedb - 斗破苍穹年番 TMDB识别结果:电视剧 斗破苍穹 年番 (2022) 259021
【INFO】2024-11-30 22:02:12,364 - themoviedb - 斗破苍穹年番 使用TMDB识别缓存:斗破苍穹 年番
【INFO】2024-11-30 22:02:12,354 - transfer.py - 正在整理 1 个文件...
【INFO】2024-11-30 22:02:12,352 - transfer.py - 手动整理:/media/downloads/tv/斗破苍穹年番.Fights.Break.Sphere.S05.2022.2160p.WEB-DL.H265.AAC-HHWEB/斗破苍穹年番.Fights.Break.Sphere.S05E123.2022.2160p.WEB-DL.H265.AAC-HHWEB.mp4 ...
@BnqDzj BnqDzj added the bug Something isn't working label Nov 30, 2024
@Yuk-0v0
Copy link

Yuk-0v0 commented Dec 7, 2024

INFO:    themoviedb - Sabakan 使用TMDB识别缓存:鲭鱼罐头
INFO:    themoviedb - Sabakan TMDB识别结果:电影 鲭鱼罐头 (2022) 971602
INFO:    media.py - Sabakan.2022.1080p.NF.WEB-DL.DDP5.1.x264-PTerWEB.mkv 识别到媒体信息:电影 鲭鱼罐头 (2022)
WARNING: fanart - 没有获取到 鲭鱼罐头 (2022) 的fanart图片数据
INFO:    transfer.py - Sabakan.2022.1080p.NF.WEB-DL.DDP5.1.x264-PTerWEB.mkv 识别为:电影 鲭鱼罐头 (2022)
INFO:    filemanager - 获取整理目标路径:【rclone】/E5/Emby/外语电影
ERROR:   rclone.py - rclone获取文件失败:list index out of range
WARNING: rclone.py - rclone创建目录 /E5/Emby/外语电影/鲭鱼罐头 (2022) 失败!
ERROR:   filemanager - 目标目录 /E5/Emby/外语电影/鲭鱼罐头 (2022) 获取失败
WARNING: transfer.py - Sabakan.2022.1080p.NF.WEB-DL.DDP5.1.x264-PTerWEB.mkv 入库失败:目标目录 /E5/Emby/外语电影/鲭鱼罐头 (2022) 获取失败
INFO:    chain - 发送消息:channel=None,source=None,title=鲭鱼罐头 (2022)  入库失败!, text=原因:目标目录 /E5/Emby/外语电影/鲭鱼罐头 (2022) 获取失败,userid=None
INFO:    chain - 已设置 NotificationType.Manual 的消息只发送给管理员
INFO:    transfer.py - /qb-download/Sabakan.2022.1080p.NF.WEB-DL.DDP5.1.x264-PTerWEB.mkv 整理完成,共 1 个文件,失败 1 个,跳过 0 个

同样的问题

@vvvneus
Copy link

vvvneus commented Dec 8, 2024

我也是有这个问题,Rclone复制或上传都报警告:WARNING: rclone.py - rclone创建目录 失败
【INFO】2024-12-08 12:11:57,920 - chain - 发送消息:channel=None,source=None,title=堕落东京 (1992) 入库失败!, text=原因:目标目录 /xxx/订阅电影/最新电影/外语电影/堕落东京 (1992) 获取失败,userid=None 【WARNING】2024-12-08 12:11:57,907 - monitor.py - Tokyo.Decadence.1992.BluRay.1080p.x265.10bit.FLAC.MNHD-FRDS.mkv 入库失败:目标目录 /xxx/订阅电影/最新电影/外语电影/堕落东京 (1992) 获取失败 【ERROR】2024-12-08 12:11:57,906 - filemanager - 目标目录 /xxx/订阅电影/最新电影/外语电影/堕落东京 (1992) 获取失败 【WARNING】2024-12-08 12:11:57,905 - rclone.py - rclone创建目录 /xxx/订阅电影/最新电影/外语电影/堕落东京 (1992) 失败!
image
并且我的Rclone存储容量一直获取失败,
MP的版本是:
image

@0honus0
Copy link
Contributor

0honus0 commented Dec 9, 2024

同样的问题

【INFO】2024-12-10 00:28:23,732 - filemanager - 获取整理目标路径:【rclone】/DJJ/Huanhuan/Movie
【ERROR】2024-12-10 00:28:42,152 - rclone.py - rclone获取文件失败:list index out of range
【WARNING】2024-12-10 00:28:42,153 - rclone.py - rclone创建目录 /DJJ/Huanhuan/Movie/现在就出发 (2023) 失败!
【ERROR】2024-12-10 00:28:42,153 - filemanager - 目标目录 /DJJ/Huanhuan/Movie/现在就出发 (2023) 获取失败
【WARNING】2024-12-10 00:28:42,154 - transfer.py - Natural.High.S02E49.1080p.TX.WEB-DL.AAC2.0.H.264-MWeb.mkv 入库失败:目标目录 /DJJ/Huanhuan/Movie/现在就出发 (2023) 获取失败
【INFO】2024-12-10 00:28:43,278 - transfer.py - /downloads/hdd/downloads/Natural.High.S02.1080p.TX.WEB-DL.AAC2.0.H.264-MWeb/Natural.High.S02E49.1080p.TX.WEB-DL.AAC2.0.H.264-MWeb.mkv 整理完成,共 1 个文件,失败 1 个,跳过 0 个

@0honus0
Copy link
Contributor

0honus0 commented Dec 15, 2024

问题原因是因为:

def get_item(self, path: Path) -> Optional[schemas.FileItem]:

测试发现 rclone lsjson 文件名会返回如下所示
rclone lsjson MP:"现在就出发 (2023)/Season 2/season.nfo"

[
{"Path":"season.nfo","Name":"season.nfo","Size":474,"MimeType":"application/octet-stream","ModTime":"2024-12-09T16:59:56Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M7NRZUWUDVKINAJ4QA2HBARU3GE"}
]

但是lsjson目录名会返回如下所示

[
{"Path":"season.nfo","Name":"season.nfo","Size":474,"MimeType":"application/octet-stream","ModTime":"2024-12-09T16:59:56Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M7NRZUWUDVKINAJ4QA2HBARU3GE"},
{"Path":"现在就出发 - S02E49 - 第 49 集-thumb.jpg","Name":"现在就出发 - S02E49 - 第 49 集-thumb.jpg","Size":192129,"MimeType":"image/jpeg","ModTime":"2024-12-09T15:15:00Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M6SQUBCPJRJ2RDJQYNSYWCR2CKI"},
{"Path":"现在就出发 - S02E49 - 第 49 集.mkv","Name":"现在就出发 - S02E49 - 第 49 集.mkv","Size":1329917326,"MimeType":"application/octet-stream","ModTime":"2024-12-09T14:46:58Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5MZW46NFEDYSNNDYDK66RNC2SP57"},
{"Path":"现在就出发 - S02E49 - 第 49 集.nfo","Name":"现在就出发 - S02E49 - 第 49 集.nfo","Size":1253,"MimeType":"application/octet-stream","ModTime":"2024-12-09T16:59:57Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M4BBAWEBYBOPFBIWAHC5ZBQWM6D"},
{"Path":"现在就出发 - S02E50 - 第 50 集-thumb.jpg","Name":"现在就出发 - S02E50 - 第 50 集-thumb.jpg","Size":332900,"MimeType":"image/jpeg","ModTime":"2024-12-09T15:15:14Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M6YYRUC4PT3BBE3XDK7YBWTGKHD"},
{"Path":"现在就出发 - S02E50 - 第 50 集.mkv","Name":"现在就出发 - S02E50 - 第 50 集.mkv","Size":1066278599,"MimeType":"application/octet-stream","ModTime":"2024-12-09T14:47:47Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5MY6J7HKJERYINH265ACLQEIVGQC"},
{"Path":"现在就出发 - S02E50 - 第 50 集.nfo","Name":"现在就出发 - S02E50 - 第 50 集.nfo","Size":1253,"MimeType":"application/octet-stream","ModTime":"2024-12-09T17:00:20Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M256STPXMADCRC2HMXCEHIQ4K4N"}
]

所以在path是目录时不能直接将结果传入__get_rcloneitem

@asd2003asd
Copy link

同样的问题, rclone创建目录失败,无法上传网盘。

@vvvneus
Copy link

vvvneus commented Dec 21, 2024

问题原因是因为:

def get_item(self, path: Path) -> Optional[schemas.FileItem]:

测试发现 rclone lsjson 文件名会返回如下所示 rclone lsjson MP:"现在就出发 (2023)/Season 2/season.nfo"

[
{"Path":"season.nfo","Name":"season.nfo","Size":474,"MimeType":"application/octet-stream","ModTime":"2024-12-09T16:59:56Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M7NRZUWUDVKINAJ4QA2HBARU3GE"}
]

但是lsjson目录名会返回如下所示

[
{"Path":"season.nfo","Name":"season.nfo","Size":474,"MimeType":"application/octet-stream","ModTime":"2024-12-09T16:59:56Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M7NRZUWUDVKINAJ4QA2HBARU3GE"},
{"Path":"现在就出发 - S02E49 - 第 49 集-thumb.jpg","Name":"现在就出发 - S02E49 - 第 49 集-thumb.jpg","Size":192129,"MimeType":"image/jpeg","ModTime":"2024-12-09T15:15:00Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M6SQUBCPJRJ2RDJQYNSYWCR2CKI"},
{"Path":"现在就出发 - S02E49 - 第 49 集.mkv","Name":"现在就出发 - S02E49 - 第 49 集.mkv","Size":1329917326,"MimeType":"application/octet-stream","ModTime":"2024-12-09T14:46:58Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5MZW46NFEDYSNNDYDK66RNC2SP57"},
{"Path":"现在就出发 - S02E49 - 第 49 集.nfo","Name":"现在就出发 - S02E49 - 第 49 集.nfo","Size":1253,"MimeType":"application/octet-stream","ModTime":"2024-12-09T16:59:57Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M4BBAWEBYBOPFBIWAHC5ZBQWM6D"},
{"Path":"现在就出发 - S02E50 - 第 50 集-thumb.jpg","Name":"现在就出发 - S02E50 - 第 50 集-thumb.jpg","Size":332900,"MimeType":"image/jpeg","ModTime":"2024-12-09T15:15:14Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M6YYRUC4PT3BBE3XDK7YBWTGKHD"},
{"Path":"现在就出发 - S02E50 - 第 50 集.mkv","Name":"现在就出发 - S02E50 - 第 50 集.mkv","Size":1066278599,"MimeType":"application/octet-stream","ModTime":"2024-12-09T14:47:47Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5MY6J7HKJERYINH265ACLQEIVGQC"},
{"Path":"现在就出发 - S02E50 - 第 50 集.nfo","Name":"现在就出发 - S02E50 - 第 50 集.nfo","Size":1253,"MimeType":"application/octet-stream","ModTime":"2024-12-09T17:00:20Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M256STPXMADCRC2HMXCEHIQ4K4N"}
]

所以在path是目录时不能直接将结果传入__get_rcloneitem

新版还是存在这个问题,版本号是:v2.1.5
发现是在创建目录失败了,导致rclone后续移动或复制失败

【ERROR】2024-12-21 14:44:12,163 - filemanager - 目标目录 /Cc/热播番剧/国漫/全球高武 (2024) 获取失败
【WARNING】2024-12-21 14:44:12,162 - rclone.py - rclone创建目录 /Cc 失败!
【INFO】2024-12-21 14:44:11,852 - filemanager - 获取整理目标路径:【rclone】/Cc/热播番剧/国漫
【INFO】2024-12-21 14:44:11,832 - transfer.py - 全球高武.Worlds.Best.Martial.Artist.S01E01.2024.1080p.WEB-DL.H265.DDP2.0-ADWeb.mkv 识别为:电视剧 全球高武 (2024)

我rclone的文件层级为:

MP:
  Cc
    热播番剧
        国漫

@0honus0
Copy link
Contributor

0honus0 commented Dec 21, 2024

问题原因是因为:

def get_item(self, path: Path) -> Optional[schemas.FileItem]:

测试发现 rclone lsjson 文件名会返回如下所示 rclone lsjson MP:"现在就出发 (2023)/Season 2/season.nfo"

[
{"Path":"season.nfo","Name":"season.nfo","Size":474,"MimeType":"application/octet-stream","ModTime":"2024-12-09T16:59:56Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M7NRZUWUDVKINAJ4QA2HBARU3GE"}
]

但是lsjson目录名会返回如下所示

[
{"Path":"season.nfo","Name":"season.nfo","Size":474,"MimeType":"application/octet-stream","ModTime":"2024-12-09T16:59:56Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M7NRZUWUDVKINAJ4QA2HBARU3GE"},
{"Path":"现在就出发 - S02E49 - 第 49 集-thumb.jpg","Name":"现在就出发 - S02E49 - 第 49 集-thumb.jpg","Size":192129,"MimeType":"image/jpeg","ModTime":"2024-12-09T15:15:00Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M6SQUBCPJRJ2RDJQYNSYWCR2CKI"},
{"Path":"现在就出发 - S02E49 - 第 49 集.mkv","Name":"现在就出发 - S02E49 - 第 49 集.mkv","Size":1329917326,"MimeType":"application/octet-stream","ModTime":"2024-12-09T14:46:58Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5MZW46NFEDYSNNDYDK66RNC2SP57"},
{"Path":"现在就出发 - S02E49 - 第 49 集.nfo","Name":"现在就出发 - S02E49 - 第 49 集.nfo","Size":1253,"MimeType":"application/octet-stream","ModTime":"2024-12-09T16:59:57Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M4BBAWEBYBOPFBIWAHC5ZBQWM6D"},
{"Path":"现在就出发 - S02E50 - 第 50 集-thumb.jpg","Name":"现在就出发 - S02E50 - 第 50 集-thumb.jpg","Size":332900,"MimeType":"image/jpeg","ModTime":"2024-12-09T15:15:14Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M6YYRUC4PT3BBE3XDK7YBWTGKHD"},
{"Path":"现在就出发 - S02E50 - 第 50 集.mkv","Name":"现在就出发 - S02E50 - 第 50 集.mkv","Size":1066278599,"MimeType":"application/octet-stream","ModTime":"2024-12-09T14:47:47Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5MY6J7HKJERYINH265ACLQEIVGQC"},
{"Path":"现在就出发 - S02E50 - 第 50 集.nfo","Name":"现在就出发 - S02E50 - 第 50 集.nfo","Size":1253,"MimeType":"application/octet-stream","ModTime":"2024-12-09T17:00:20Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M256STPXMADCRC2HMXCEHIQ4K4N"}
]

所以在path是目录时不能直接将结果传入__get_rcloneitem

新版还是存在这个问题,版本号是:v2.1.5 发现是在创建目录失败了,导致rclone后续移动或复制失败

【ERROR】2024-12-21 14:44:12,163 - filemanager - 目标目录 /Cc/热播番剧/国漫/全球高武 (2024) 获取失败
【WARNING】2024-12-21 14:44:12,162 - rclone.py - rclone创建目录 /Cc 失败!
【INFO】2024-12-21 14:44:11,852 - filemanager - 获取整理目标路径:【rclone】/Cc/热播番剧/国漫
【INFO】2024-12-21 14:44:11,832 - transfer.py - 全球高武.Worlds.Best.Martial.Artist.S01E01.2024.1080p.WEB-DL.H265.DDP2.0-ADWeb.mkv 识别为:电视剧 全球高武 (2024)

我rclone的文件层级为:

MP:
  Cc
    热播番剧
        国漫

用的docker版本吗?

@vvvneus
Copy link

vvvneus commented Dec 21, 2024

问题原因是因为:

def get_item(self, path: Path) -> Optional[schemas.FileItem]:

测试发现 rclone lsjson 文件名会返回如下所示 rclone lsjson MP:"现在就出发 (2023)/Season 2/season.nfo"

[
{"Path":"season.nfo","Name":"season.nfo","Size":474,"MimeType":"application/octet-stream","ModTime":"2024-12-09T16:59:56Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M7NRZUWUDVKINAJ4QA2HBARU3GE"}
]

但是lsjson目录名会返回如下所示

[
{"Path":"season.nfo","Name":"season.nfo","Size":474,"MimeType":"application/octet-stream","ModTime":"2024-12-09T16:59:56Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M7NRZUWUDVKINAJ4QA2HBARU3GE"},
{"Path":"现在就出发 - S02E49 - 第 49 集-thumb.jpg","Name":"现在就出发 - S02E49 - 第 49 集-thumb.jpg","Size":192129,"MimeType":"image/jpeg","ModTime":"2024-12-09T15:15:00Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M6SQUBCPJRJ2RDJQYNSYWCR2CKI"},
{"Path":"现在就出发 - S02E49 - 第 49 集.mkv","Name":"现在就出发 - S02E49 - 第 49 集.mkv","Size":1329917326,"MimeType":"application/octet-stream","ModTime":"2024-12-09T14:46:58Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5MZW46NFEDYSNNDYDK66RNC2SP57"},
{"Path":"现在就出发 - S02E49 - 第 49 集.nfo","Name":"现在就出发 - S02E49 - 第 49 集.nfo","Size":1253,"MimeType":"application/octet-stream","ModTime":"2024-12-09T16:59:57Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M4BBAWEBYBOPFBIWAHC5ZBQWM6D"},
{"Path":"现在就出发 - S02E50 - 第 50 集-thumb.jpg","Name":"现在就出发 - S02E50 - 第 50 集-thumb.jpg","Size":332900,"MimeType":"image/jpeg","ModTime":"2024-12-09T15:15:14Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M6YYRUC4PT3BBE3XDK7YBWTGKHD"},
{"Path":"现在就出发 - S02E50 - 第 50 集.mkv","Name":"现在就出发 - S02E50 - 第 50 集.mkv","Size":1066278599,"MimeType":"application/octet-stream","ModTime":"2024-12-09T14:47:47Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5MY6J7HKJERYINH265ACLQEIVGQC"},
{"Path":"现在就出发 - S02E50 - 第 50 集.nfo","Name":"现在就出发 - S02E50 - 第 50 集.nfo","Size":1253,"MimeType":"application/octet-stream","ModTime":"2024-12-09T17:00:20Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M256STPXMADCRC2HMXCEHIQ4K4N"}
]

所以在path是目录时不能直接将结果传入__get_rcloneitem

新版还是存在这个问题,版本号是:v2.1.5 发现是在创建目录失败了,导致rclone后续移动或复制失败

【ERROR】2024-12-21 14:44:12,163 - filemanager - 目标目录 /Cc/热播番剧/国漫/全球高武 (2024) 获取失败
【WARNING】2024-12-21 14:44:12,162 - rclone.py - rclone创建目录 /Cc 失败!
【INFO】2024-12-21 14:44:11,852 - filemanager - 获取整理目标路径:【rclone】/Cc/热播番剧/国漫
【INFO】2024-12-21 14:44:11,832 - transfer.py - 全球高武.Worlds.Best.Martial.Artist.S01E01.2024.1080p.WEB-DL.H265.DDP2.0-ADWeb.mkv 识别为:电视剧 全球高武 (2024)

我rclone的文件层级为:

MP:
  Cc
    热播番剧
        国漫

用的docker版本吗?

是docker版本

@0honus0
Copy link
Contributor

0honus0 commented Dec 21, 2024

问题原因是因为:

def get_item(self, path: Path) -> Optional[schemas.FileItem]:

测试发现 rclone lsjson 文件名会返回如下所示 rclone lsjson MP:"现在就出发 (2023)/Season 2/season.nfo"

[
{"Path":"season.nfo","Name":"season.nfo","Size":474,"MimeType":"application/octet-stream","ModTime":"2024-12-09T16:59:56Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M7NRZUWUDVKINAJ4QA2HBARU3GE"}
]

但是lsjson目录名会返回如下所示

[
{"Path":"season.nfo","Name":"season.nfo","Size":474,"MimeType":"application/octet-stream","ModTime":"2024-12-09T16:59:56Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M7NRZUWUDVKINAJ4QA2HBARU3GE"},
{"Path":"现在就出发 - S02E49 - 第 49 集-thumb.jpg","Name":"现在就出发 - S02E49 - 第 49 集-thumb.jpg","Size":192129,"MimeType":"image/jpeg","ModTime":"2024-12-09T15:15:00Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M6SQUBCPJRJ2RDJQYNSYWCR2CKI"},
{"Path":"现在就出发 - S02E49 - 第 49 集.mkv","Name":"现在就出发 - S02E49 - 第 49 集.mkv","Size":1329917326,"MimeType":"application/octet-stream","ModTime":"2024-12-09T14:46:58Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5MZW46NFEDYSNNDYDK66RNC2SP57"},
{"Path":"现在就出发 - S02E49 - 第 49 集.nfo","Name":"现在就出发 - S02E49 - 第 49 集.nfo","Size":1253,"MimeType":"application/octet-stream","ModTime":"2024-12-09T16:59:57Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M4BBAWEBYBOPFBIWAHC5ZBQWM6D"},
{"Path":"现在就出发 - S02E50 - 第 50 集-thumb.jpg","Name":"现在就出发 - S02E50 - 第 50 集-thumb.jpg","Size":332900,"MimeType":"image/jpeg","ModTime":"2024-12-09T15:15:14Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M6YYRUC4PT3BBE3XDK7YBWTGKHD"},
{"Path":"现在就出发 - S02E50 - 第 50 集.mkv","Name":"现在就出发 - S02E50 - 第 50 集.mkv","Size":1066278599,"MimeType":"application/octet-stream","ModTime":"2024-12-09T14:47:47Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5MY6J7HKJERYINH265ACLQEIVGQC"},
{"Path":"现在就出发 - S02E50 - 第 50 集.nfo","Name":"现在就出发 - S02E50 - 第 50 集.nfo","Size":1253,"MimeType":"application/octet-stream","ModTime":"2024-12-09T17:00:20Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M256STPXMADCRC2HMXCEHIQ4K4N"}
]

所以在path是目录时不能直接将结果传入__get_rcloneitem

新版还是存在这个问题,版本号是:v2.1.5 发现是在创建目录失败了,导致rclone后续移动或复制失败

【ERROR】2024-12-21 14:44:12,163 - filemanager - 目标目录 /Cc/热播番剧/国漫/全球高武 (2024) 获取失败
【WARNING】2024-12-21 14:44:12,162 - rclone.py - rclone创建目录 /Cc 失败!
【INFO】2024-12-21 14:44:11,852 - filemanager - 获取整理目标路径:【rclone】/Cc/热播番剧/国漫
【INFO】2024-12-21 14:44:11,832 - transfer.py - 全球高武.Worlds.Best.Martial.Artist.S01E01.2024.1080p.WEB-DL.H265.DDP2.0-ADWeb.mkv 识别为:电视剧 全球高武 (2024)

我rclone的文件层级为:

MP:
  Cc
    热播番剧
        国漫

用的docker版本吗?

是docker版本

版本

问题原因是因为:

def get_item(self, path: Path) -> Optional[schemas.FileItem]:

测试发现 rclone lsjson 文件名会返回如下所示 rclone lsjson MP:"现在就出发 (2023)/Season 2/season.nfo"

[
{"Path":"season.nfo","Name":"season.nfo","Size":474,"MimeType":"application/octet-stream","ModTime":"2024-12-09T16:59:56Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M7NRZUWUDVKINAJ4QA2HBARU3GE"}
]

但是lsjson目录名会返回如下所示

[
{"Path":"season.nfo","Name":"season.nfo","Size":474,"MimeType":"application/octet-stream","ModTime":"2024-12-09T16:59:56Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M7NRZUWUDVKINAJ4QA2HBARU3GE"},
{"Path":"现在就出发 - S02E49 - 第 49 集-thumb.jpg","Name":"现在就出发 - S02E49 - 第 49 集-thumb.jpg","Size":192129,"MimeType":"image/jpeg","ModTime":"2024-12-09T15:15:00Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M6SQUBCPJRJ2RDJQYNSYWCR2CKI"},
{"Path":"现在就出发 - S02E49 - 第 49 集.mkv","Name":"现在就出发 - S02E49 - 第 49 集.mkv","Size":1329917326,"MimeType":"application/octet-stream","ModTime":"2024-12-09T14:46:58Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5MZW46NFEDYSNNDYDK66RNC2SP57"},
{"Path":"现在就出发 - S02E49 - 第 49 集.nfo","Name":"现在就出发 - S02E49 - 第 49 集.nfo","Size":1253,"MimeType":"application/octet-stream","ModTime":"2024-12-09T16:59:57Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M4BBAWEBYBOPFBIWAHC5ZBQWM6D"},
{"Path":"现在就出发 - S02E50 - 第 50 集-thumb.jpg","Name":"现在就出发 - S02E50 - 第 50 集-thumb.jpg","Size":332900,"MimeType":"image/jpeg","ModTime":"2024-12-09T15:15:14Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M6YYRUC4PT3BBE3XDK7YBWTGKHD"},
{"Path":"现在就出发 - S02E50 - 第 50 集.mkv","Name":"现在就出发 - S02E50 - 第 50 集.mkv","Size":1066278599,"MimeType":"application/octet-stream","ModTime":"2024-12-09T14:47:47Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5MY6J7HKJERYINH265ACLQEIVGQC"},
{"Path":"现在就出发 - S02E50 - 第 50 集.nfo","Name":"现在就出发 - S02E50 - 第 50 集.nfo","Size":1253,"MimeType":"application/octet-stream","ModTime":"2024-12-09T17:00:20Z","IsDir":false,"ID":"b!fIAcT9WoJku6W-1zrkJLuJoOgXM7MBhGnVckCVQmPF-G58AesetIQ7bqD8xa65wS#016CWI5M256STPXMADCRC2HMXCEHIQ4K4N"}
]

所以在path是目录时不能直接将结果传入__get_rcloneitem

新版还是存在这个问题,版本号是:v2.1.5 发现是在创建目录失败了,导致rclone后续移动或复制失败

【ERROR】2024-12-21 14:44:12,163 - filemanager - 目标目录 /Cc/热播番剧/国漫/全球高武 (2024) 获取失败
【WARNING】2024-12-21 14:44:12,162 - rclone.py - rclone创建目录 /Cc 失败!
【INFO】2024-12-21 14:44:11,852 - filemanager - 获取整理目标路径:【rclone】/Cc/热播番剧/国漫
【INFO】2024-12-21 14:44:11,832 - transfer.py - 全球高武.Worlds.Best.Martial.Artist.S01E01.2024.1080p.WEB-DL.H265.DDP2.0-ADWeb.mkv 识别为:电视剧 全球高武 (2024)

我rclone的文件层级为:

MP:
  Cc
    热播番剧
        国漫

用的docker版本吗?

是docker版本

#3549

参考此问题尝试手动在网页保存一下配置

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

5 participants