-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move torrent client to the separate service
- Loading branch information
galushko
committed
Oct 18, 2023
1 parent
e71c4ce
commit 4291872
Showing
15 changed files
with
101 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 7 additions & 2 deletions
9
torrent/src/main/java/com/halushko/kinocat/torrent/externalCalls/VoidTorrentOperator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
package com.halushko.kinocat.torrent.externalCalls; | ||
|
||
import com.halushko.kinocat.core.cli.Constants; | ||
import com.halushko.kinocat.core.handlers.input.ExternalCliCommandExecutor; | ||
import com.halushko.kinocat.core.rabbit.SmartJson; | ||
|
||
public class VoidTorrentOperator extends ExternalCliCommandExecutor { | ||
public class VoidTorrentOperator extends TransmissionWebApiExecutor { | ||
@Override | ||
protected String getQueue() { | ||
return Constants.Queues.Torrent.EXECUTE_VOID_TORRENT_COMMAND; | ||
} | ||
|
||
@Override | ||
protected String executeRequest(SmartJson message) { | ||
return "Команда виконана без помилок"; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
torrent/src/main/resources/transmission_requests/pause_torrent.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"arguments": { | ||
"ids": [ | ||
%s | ||
] | ||
}, | ||
"method": "torrent-stop" | ||
} |
9 changes: 9 additions & 0 deletions
9
torrent/src/main/resources/transmission_requests/remove_only_torrent.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"arguments": { | ||
"delete-local-data": false, | ||
"ids": [ | ||
%s | ||
] | ||
}, | ||
"method": "torrent-remove" | ||
} |
9 changes: 9 additions & 0 deletions
9
torrent/src/main/resources/transmission_requests/remove_with_files.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"arguments": { | ||
"delete-local-data": true, | ||
"ids": [ | ||
%s | ||
] | ||
}, | ||
"method": "torrent-remove" | ||
} |
8 changes: 8 additions & 0 deletions
8
torrent/src/main/resources/transmission_requests/resume_torrent.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"arguments": { | ||
"ids": [ | ||
%s | ||
] | ||
}, | ||
"method": "torrent-start" | ||
} |