Skip to content

Commit

Permalink
Add hack to fix path matching when done directly via --url
Browse files Browse the repository at this point in the history
This is far from satisfactory, but the match code probably needs a bit
of a overhaul in general.
kannibalox committed Oct 7, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 7027336 commit a47a431
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ptpapi/scripts/ptp_reseed.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit a47a431

Please sign in to comment.