Closed de-odex closed 7 years ago
This error means that the beatmap was downloaded correctly; however, we failed to save it to disk. Does this work if you pass save=False
?
What I think is happening is that ntfs (the windows filesystem) is much more restrictive in the acceptable names for files. This path has *~!()[]
, I bet one of those is the problem.
What we need to do is detect what system you are on and encode the name in a safe way for the given system. We already have some stuff that strips out /
from the path, but on windows that needs to be \\
.
Why not use os.name
to check what system i'm in?
in windows it's nt
, in linux or macos its posix
no error in save=False
In another project, the devs sanitized *~!()[]
to *~!()[]
, you can do either that or
Do what osu! does - flat out cut them out from the file name
In fact, ~!
are okay with ntfs
yeah, switching to unicode alternative glyphs will just confuse people, I will strip them.
merged, thanks for the quick fix!
l is
l = slider.library.Library(config.librarydir + "/osulib")
It says in the docs that lookup_by_id downloads the map if it doesn't exist, though it still gives me aKeyError
. Am I doing something wrong?