Closed Zingabopp closed 2 years ago
Following of https://github.com/Kylemc1413/SongCore/issues/79
It is the same for BeatSaverDownloader too, apparently it was done to protect from zip bombs Do you know how to do about this without zip bombs?
i did this for mine:
foreach (ZipArchiveEntry? entry in zipArchive.Entries.OrderByDescending(e => e.Length))
{
if (!entry.FullName.Equals(entry.Name)) // If false, the entry is a directory or file nested in one
continue;```
Ah, simple fix! Thank you, I will fix this
When unzipping, PlaylistManager goes through all entries and unzips the files to the song's base directory. If a song has an
autosaves
folder it will overwrite the good files with files fromautosaves
.Example: https://na.cdn.beatsaver.com/b7da8742e3ef95126dc53a9209d2d15403ab0563.zip
Info.dat
gets overwritten with an old version that lists the audio file asthereal.ogg