feature request: Pass original filename to media player when streaming torrent #99
Closed
2 of 3 tasks
Labels
Milestone
Checklist
Problem Description / Use Case
With the current torrentstream implementation, the player uses "stream" as a the default filename. Having the actual filename available to the player (mostly mpv) would allow the use of custom mpv scripts that rely on it as well as some basic mpv features such as naming screenshots based on filename.
Proposed Solution
Not sure how correct this is (it's my first time using go) but it seems to work with mpv, not sure about the other players.
Registering "/stream/" instead of "/stream" in newServerManager
http.HandleFunc("/stream", ret.serve)
tohttp.HandleFunc("/stream/", ret.serve)
and then inserting the current torrent filename in GetStreamingUrl
to
The text was updated successfully, but these errors were encountered: