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);
|
||||
await this.youtubeService.downloadAndFormat(track, folderName);
|
||||
if (coverUrl) {
|
||||
await this.youtubeService.addImage(
|
||||
folderName,
|
||||
coverUrl,
|
||||
track.name,
|
||||
track.artist,
|
||||
);
|
||||
try {
|
||||
await this.youtubeService.addImage(
|
||||
folderName,
|
||||
coverUrl,
|
||||
track.name,
|
||||
track.artist,
|
||||
);
|
||||
} catch (imageError) {
|
||||
this.logger.warn(
|
||||
`Cover art embed failed for track ${track.id}: ${toSafeErrorMessage(imageError)}`,
|
||||
);
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
this.logger.error(err);
|
||||
|
||||
@@ -50,7 +50,15 @@
|
||||
"maximumError": "4kB"
|
||||
}
|
||||
],
|
||||
"outputHashing": "all"
|
||||
"outputHashing": "all",
|
||||
"optimization": {
|
||||
"scripts": true,
|
||||
"styles": {
|
||||
"minify": true,
|
||||
"inlineCritical": false
|
||||
},
|
||||
"fonts": true
|
||||
}
|
||||
},
|
||||
"development": {
|
||||
"optimization": false,
|
||||
|
||||
Reference in New Issue
Block a user