mirror of
https://github.com/KRTirtho/spotube.git
synced 2026-03-22 00:24:16 +00:00
Compare commits
2 Commits
8b7d28254f
...
ffb1988d5c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ffb1988d5c | ||
|
|
07031cb564 |
@ -239,7 +239,11 @@ class DownloadManagerNotifier extends Notifier<List<DownloadTask>> {
|
||||
return;
|
||||
}
|
||||
|
||||
if (container.getFileExtension() == "weba") return;
|
||||
// Skip metadata writing for weba and flac to prevent file corruption
|
||||
// FLAC files have strict header requirements and writing metadata after
|
||||
// download can corrupt the sync code and make files unplayable
|
||||
final extension = container.getFileExtension();
|
||||
if (extension == "weba" || extension == "flac") return;
|
||||
|
||||
final imageBytes = await ServiceUtils.downloadImage(
|
||||
(task.track.album.images).asUrlString(
|
||||
|
||||
@ -247,7 +247,11 @@ class ServerPlaybackRoutes {
|
||||
|
||||
await trackPartialCacheFile.rename(trackCacheFile.path);
|
||||
|
||||
if (track.qualityPreset!.getFileExtension() == "weba") return;
|
||||
// Skip metadata writing for weba and flac to prevent file corruption
|
||||
// FLAC files have strict header requirements and writing metadata after
|
||||
// download can corrupt the sync code and make files unplayable
|
||||
final extension = track.qualityPreset!.getFileExtension();
|
||||
if (extension == "weba" || extension == "flac") return;
|
||||
|
||||
final imageBytes = await ServiceUtils.downloadImage(
|
||||
track.query.album.images.asUrlString(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user