To maximize experience for remote sessions, we would need to stop torrent client during ongoing remote sessions.
Downloads are initiated via indexer managers. One way we can control that is to have our program act as a proxy for qbit client.
Prior to proxying normal requests, we can consult plex to understand whether there is a remote session ongoing. If there is, we cache the response (maybe in a persistent layer like a db?), and only proxy the request to qbit when said remote sessions had ended.
To maximize experience for remote sessions, we would need to stop torrent client during ongoing remote sessions. Downloads are initiated via indexer managers. One way we can control that is to have our program act as a proxy for qbit client. Prior to proxying normal requests, we can consult plex to understand whether there is a remote session ongoing. If there is, we cache the response (maybe in a persistent layer like a db?), and only proxy the request to qbit when said remote sessions had ended.