mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-22 23:33:09 +02:00
upd: use builtin thumbnail generator if no thumbnail generator is set
This commit is contained in:
parent
1cd59c1ee3
commit
bc24e6a294
1 changed files with 8 additions and 1 deletions
|
@ -50,7 +50,14 @@ export class VideoProcessingService {
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public getExternalVideoThumbnailUrl(url: string): string | null {
|
public getExternalVideoThumbnailUrl(url: string): string | null {
|
||||||
if (this.config.videoThumbnailGenerator == null) return null;
|
if (this.config.videoThumbnailGenerator == null) {
|
||||||
|
return appendQuery(
|
||||||
|
`${this.config.url}/proxy/thumbnail.webp`,
|
||||||
|
query({
|
||||||
|
url,
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return appendQuery(
|
return appendQuery(
|
||||||
`${this.config.videoThumbnailGenerator}/thumbnail.webp`,
|
`${this.config.videoThumbnailGenerator}/thumbnail.webp`,
|
||||||
|
|
Loading…
Reference in a new issue