mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-07-19 21:21:03 +08:00
When AB runs in a Linux container and qBittorrent runs on a Windows host, qB returns save_path strings with backslash separators. PurePosixPath treats those as a single unsplittable segment, so _path_to_bangumi never matched "Season N" and every non-S1 bangumi collapsed to Season 1. PureWindowsPath accepts both "\\" and "/" as separators, so using it for the parsing side handles both layouts. Path generation (_gen_save_path / _join_path) still uses the platform-conditional Path alias, so AB keeps emitting native paths for the host it runs on. Diagnosis and fix credited to the reporter in #1016. Closes #1016