aboutsummaryrefslogtreecommitdiff
path: root/ui/src
diff options
context:
space:
mode:
authorErazor2 <jeromewhweb@gmail.com>2022-01-04 22:05:33 +0000
committerErazor2 <jeromewhweb@gmail.com>2022-01-04 22:05:33 +0000
commit4eb3916546602d2cb25e06de26ffb8b8683b46d0 (patch)
tree9f941f9eeacbeedea125fc4c7391c05cc5df4780 /ui/src
parentAdded URL-Button (diff)
downloadmetube-4eb3916546602d2cb25e06de26ffb8b8683b46d0.tar.gz
metube-4eb3916546602d2cb25e06de26ffb8b8683b46d0.tar.bz2
metube-4eb3916546602d2cb25e06de26ffb8b8683b46d0.zip
Fixed retry for all Sites
Diffstat (limited to 'ui/src')
-rw-r--r--ui/src/app/app.component.html2
-rw-r--r--ui/src/app/app.component.ts4
2 files changed, 3 insertions, 3 deletions
diff --git a/ui/src/app/app.component.html b/ui/src/app/app.component.html
index 74da172..c0957af 100644
--- a/ui/src/app/app.component.html
+++ b/ui/src/app/app.component.html
@@ -122,7 +122,7 @@
<ng-template #noDownloadLink>{{ download.value.title }}</ng-template>
</td>
<td>
- <button *ngIf="download.value.status == 'error'" type="button" class="btn btn-link" (click)="retryDownload(download.key, download.value.quality)"><fa-icon [icon]="faRedoAlt"></fa-icon></button>
+ <button *ngIf="download.value.status == 'error'" type="button" class="btn btn-link" (click)="retryDownload(download.key, download.value.url, download.value.quality)"><fa-icon [icon]="faRedoAlt"></fa-icon></button>
</td>
<td>
<a href="{{download.value.url}}" target="_blank"><fa-icon [icon]="faExternalLinkAlt"></fa-icon></a>
diff --git a/ui/src/app/app.component.ts b/ui/src/app/app.component.ts
index 2ae880b..a9b46a3 100644
--- a/ui/src/app/app.component.ts
+++ b/ui/src/app/app.component.ts
@@ -130,8 +130,8 @@ export class AppComponent implements AfterViewInit {
});
}
- retryDownload(key: string, quality: string, format: string) {
- this.addDownload(key, quality, format);
+ retryDownload(key: string, url: string, quality: string, format: string) {
+ this.addDownload(url, quality, format);
this.downloads.delById('done', [key]).subscribe();
}
bgstack15