upd: use builtin thumbnail generator if no thumbnail generator is set
This commit is contained in:
parent
1cd59c1ee3
commit
bc24e6a294
|
@ -50,7 +50,14 @@ export class VideoProcessingService {
|
|||
|
||||
@bindThis
|
||||
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(
|
||||
`${this.config.videoThumbnailGenerator}/thumbnail.webp`,
|
||||
|
|
Loading…
Reference in New Issue