Skip to content

Commit

Permalink
Fix error with weird apostrophe
Browse files Browse the repository at this point in the history
  • Loading branch information
riley-martine committed May 13, 2023
1 parent d5f42a7 commit a0e240b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/torrent_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,9 @@
print(f"Cannot find file at: {torrent_file}", file=sys.stderr)
sys.exit(1)

print(libtorrent.torrent_info(torrent_file.resolve().as_posix()).name())
# Something qbittorrent does replaces some characters with question marks
# This may be what is happening if `./wait_and_download.sh` is exiting (4)
# Unsure what other chars cause it.
print(
libtorrent.torrent_info(torrent_file.resolve().as_posix()).name().replace("’", "?")
)

0 comments on commit a0e240b

Please sign in to comment.