diff options
author | James Woglom <j@wogloms.net> | 2022-08-30 01:22:24 -0400 |
---|---|---|
committer | James Woglom <j@wogloms.net> | 2022-08-30 01:22:24 -0400 |
commit | 63baa1fc25a7ee02832b043bb38470fe611cfb01 (patch) | |
tree | 1ce8e1bc8449bd1c0a3a41bc768299d212f77884 /ui/src/app/app.component.html | |
parent | switch between audio and default custom directories on change (diff) | |
download | metube-63baa1fc25a7ee02832b043bb38470fe611cfb01.tar.gz metube-63baa1fc25a7ee02832b043bb38470fe611cfb01.tar.bz2 metube-63baa1fc25a7ee02832b043bb38470fe611cfb01.zip |
Link to audio files and those with custom folders properly
Diffstat (limited to 'ui/src/app/app.component.html')
-rw-r--r-- | ui/src/app/app.component.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/src/app/app.component.html b/ui/src/app/app.component.html index 23dccce..4ca9a07 100644 --- a/ui/src/app/app.component.html +++ b/ui/src/app/app.component.html @@ -129,11 +129,11 @@ <fa-icon *ngIf="download.value.status == 'finished'" [icon]="faCheckCircle" style="color: green;"></fa-icon> <fa-icon *ngIf="download.value.status == 'error'" [icon]="faTimesCircle" style="color: red;"></fa-icon> </div> - <span ngbTooltip="{{download.value.msg}}"><a *ngIf="!!download.value.filename; else noDownloadLink" href="download/{{download.value.filename | encodeURIComponent}}" target="_blank">{{ download.value.title }}</a></span> + <span ngbTooltip="{{download.value.msg}}"><a *ngIf="!!download.value.filename; else noDownloadLink" href="{{buildDownloadLink(download.value)}}" target="_blank">{{ download.value.title }}</a></span> <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.url, 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, download.value.folder)"><fa-icon [icon]="faRedoAlt"></fa-icon></button> </td> <td> <a href="{{download.value.url}}" target="_blank"><fa-icon [icon]="faExternalLinkAlt"></fa-icon></a> |