qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
27.44k stars 3.9k forks source link

%T on "Run external program" just gives blanks #20415

Open AN1MATEK opened 7 months ago

AN1MATEK commented 7 months ago

qBittorrent & operating system versions

qBittorrent 4.6.3 // Container from from linux.io, updated today OS unRAID 6.12.6

What is the problem?

%T gives blanks when adding or finishing a torrent.

Steps to reproduce

No response

Additional context

I have asked in Discord and confirmed that there's another person with the same issue. We both think it is a bug and hence opening an issue.

Log(s) & preferences file(s)

image


(N) 2024-02-12T13:15:36 - Added new torrent. Torrent: "Planet.Of.The.Apes.2001.720p.BluRay.DTS.x264-CtrlHD"
(N) 2024-02-12T13:15:36 - Running external program. Torrent: "Planet.Of.The.Apes.2001.720p.BluRay.DTS.x264-CtrlHD". Command: `/scripts/torrent_added.sh "Planet.Of.The.Apes.2001.720p.BluRay.DTS.x264-CtrlHD" "" "Movies-Imported" ""`
[...]
(N) 2024-02-12T13:35:52 - Torrent download finished. Torrent: "Planet.Of.The.Apes.2001.720p.BluRay.DTS.x264-CtrlHD.mkv"
(N) 2024-02-12T13:35:52 - Running external program. Torrent: "Planet.Of.The.Apes.2001.720p.BluRay.DTS.x264-CtrlHD.mkv". Command: `/scripts/torrent_finished.sh "Planet.Of.The.Apes.2001.720p.BluRay.DTS.x264-CtrlHD.mkv" "/media/torrents/movies/Planet.Of.The.Apes.2001.720p.BluRay.DTS.x264-CtrlHD.mkv" "586f2026a1530304d1e71e4438a3af5f2a4d6045" "" "Movies-Imported" ""`
stalkerok commented 7 months ago

It might be because the torrent is private, try testing with a public torrent.

thalieht commented 7 months ago

%T is:

// the URL of the last working tracker. If no tracker request has // been successful yet, it's set to an empty string. std::string current_tracker;

AN1MATEK commented 7 months ago

I am using private trackers, yes. But why is this expected behavior? I could get the tracker URL using curl. Why wouldn't qbit just give me URL?

This happens even when finishing a torrent, which means that the torrent tracker is used and working.