From a47a4319c61bb6645e9fe35c91309038080f4921 Mon Sep 17 00:00:00 2001 From: kannibalox Date: Mon, 7 Oct 2024 18:54:16 -0400 Subject: [PATCH] Add hack to fix path matching when done directly via --url This is far from satisfactory, but the match code probably needs a bit of a overhaul in general. --- src/ptpapi/scripts/ptp_reseed.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ptpapi/scripts/ptp_reseed.py b/src/ptpapi/scripts/ptp_reseed.py index 26ba0e0..3db119c 100755 --- a/src/ptpapi/scripts/ptp_reseed.py +++ b/src/ptpapi/scripts/ptp_reseed.py @@ -511,6 +511,8 @@ def process(cli_args): match = match_by_torrent( ptpapi.Torrent(ID=parsed_url["torrentid"][0]), filename.encode() ) + if match: + match.path = filename elif "id" in parsed_url: match = match_by_movie( ptpapi.Movie(ID=parsed_url["id"][0]), filename.encode()