Make cover art non-fatal and disable critical CSS inlining
This commit is contained in:
@@ -199,12 +199,18 @@ export class TrackService {
|
|||||||
const folderName = this.getFolderName(track, track.playlist);
|
const folderName = this.getFolderName(track, track.playlist);
|
||||||
await this.youtubeService.downloadAndFormat(track, folderName);
|
await this.youtubeService.downloadAndFormat(track, folderName);
|
||||||
if (coverUrl) {
|
if (coverUrl) {
|
||||||
|
try {
|
||||||
await this.youtubeService.addImage(
|
await this.youtubeService.addImage(
|
||||||
folderName,
|
folderName,
|
||||||
coverUrl,
|
coverUrl,
|
||||||
track.name,
|
track.name,
|
||||||
track.artist,
|
track.artist,
|
||||||
);
|
);
|
||||||
|
} catch (imageError) {
|
||||||
|
this.logger.warn(
|
||||||
|
`Cover art embed failed for track ${track.id}: ${toSafeErrorMessage(imageError)}`,
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.logger.error(err);
|
this.logger.error(err);
|
||||||
|
|||||||
@@ -50,7 +50,15 @@
|
|||||||
"maximumError": "4kB"
|
"maximumError": "4kB"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"outputHashing": "all"
|
"outputHashing": "all",
|
||||||
|
"optimization": {
|
||||||
|
"scripts": true,
|
||||||
|
"styles": {
|
||||||
|
"minify": true,
|
||||||
|
"inlineCritical": false
|
||||||
|
},
|
||||||
|
"fonts": true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"development": {
|
"development": {
|
||||||
"optimization": false,
|
"optimization": false,
|
||||||
|
|||||||
Reference in New Issue
Block a user