Closed NSFWOrangeCat closed 2 years ago
Thanks for reporting this!
The error was caused by an incorrect parsing of the submission file URL to get the file extension. The program uses it for some filetypes which cannot be recognised easily because their MIME type is non-specific. In your case the .doc file resulted in an application/zip
MIME, so the program tried to use the file url, but it parsed the value formatted for the database instead of the original one, so it resulted in an extension with a | in it.
I am using Linux for development and its filesystem its much more lax in regards to filenames, but Windows is quite stricter and won't allow | in a filename, hence the error.
I've fixed the bug in the database library and pushed a patch v5.3.1. It's already online so you can just update it via pip, you can use the falocalrepo updates --shell
command to do it :)
Version
4.3.0
What happened?
Crash while downloading submission https://www.furaffinity.net/view/12415691/.
OS used is Win10 21H2. Python version is 3.10.4.
How to reproduce the bug?
falocalrepo download submissions 12415691
Relevant log output