diff --git a/src/Api.ts b/src/Api.ts
index fc5ef22..cb837a9 100644
--- a/src/Api.ts
+++ b/src/Api.ts
@@ -136,6 +136,18 @@ class Api {
params,
}).then(Api.handleResponse);
}
+
+ public editTracker(hash: string, origUrl: string, newUrl: string) {
+ const params = {
+ hash,
+ origUrl,
+ newUrl,
+ };
+
+ return this.axios.get('/torrents/editTracker', {
+ params,
+ }).then(Api.handleResponse);
+ }
private actionTorrents(action: string, hashes: string[], extra?: any) {
const params: any = {
diff --git a/src/components/Torrents.vue b/src/components/Torrents.vue
index 6c9299a..51484da 100644
--- a/src/components/Torrents.vue
+++ b/src/components/Torrents.vue
@@ -20,7 +20,7 @@
mdi-pause
-
+
mdi-alert-circle
@@ -61,9 +61,12 @@
-
+
mdi-bullhorn
+
+ mdi-server
+
mdi-backup-restore
@@ -135,6 +138,7 @@
+
+
+
+
+ mdi-server
+ Edit tracker
+
+
+
+
+ Search
+
+ Preview
+
+ Result
+
+
+
+
+
+
+
+
+
+ {{ toEdit.length }} torrent(s) to update.
+
+ -
+ {{ row.name }}
+
+ {{ row.origUrl }}
+
+ {{ row.newUrl }}
+
+
+
+
+
+
+ {{ currentIndex }} torrent(s) updated.
+
+
+
+
+
+
+
+ Back
+
+
+
+
+
+
+
+
+