-
-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mega plugin ignores download path, saves files to root of C: drive #159
Comments
Ok, I think something is eating the download parameter that's getting passed to the plugin, and everything else is a result of that issue. I'd guess it's something handling different drives being cranky. Skimming the code, I don't see how, though. Strangely enough, normal content (e.g. non-plugin downloads) get saved to the correct location (in my case, the |
While I appreciate all bug reports, I ask everyone to refrain from trying to teach me how things are supposed to be done without completely understanding how the application is designed and supposed to work. Thank you. In this case it's clearly not supposed to download into the root of C: drive. Make sure you are running latest version, I cannot replicate this on release 23. The suggestion for 509 code handling has been logged as AlexCSDev/UniversalDownloaderPlatform#14 |
Ok, since it's pretty late in the night I have actually missed the fact that you already running latest version, let me test a few things and I'll get back to you. |
Sorry, I get snarky when I'm irritated. I wrote a bunch of that, and then dug about a bunch and realized there wasn't anything that would try to create a temp directory, and it was probably a path truncation/drive weirdness issue. I should have removed a bunch of comments at that point. Anyways, I have VS on the system in question (it's why the disk space is so low!) so I can probably do better diagnostics once the batch download I'm running right now is complete (it might be a few days).
Sounds good. |
Unfortunately I can't replicate it on my side no matter what I do. Unless other people report this issue or you'll be able to debug it yourself all I can guess is that you either have leftover files from older builds or some application files have managed to cache somehow. SHA-256 hash for |
I'm not actually running my own build currently, just a folder where I unzipped the latest release. I'll stick print statements about and poke it when I can. |
Sounds good. This code is being used across 3 different applications and I don't see any issues with it on my side in any of those applications, so this is a really strange situation. |
I'm having the same/similar issue. Mega and Google Drive Plugins are downloading to the Root of the drive the application is running from (I have tested that by moving the application folder to different drives and it always downloads in root of the drive the application is running from, even if the download folder is in another drive) All other files download to correct location (post, media, attachments, description, json, embed.txt, cover, avatar, etc.) Its only the plugin files and folders that are somehow losing the download directory. I am also running the version 23. This issue does not occur in version 22 (but version 22 has the attachment naming issue bug that's more annoying in my opinion). In the log the download path just starts with a "\"
Instead of like in version 22 where it has the download directory
Edit: Edit2: I was debugging the Mega plugin and found that Similarly inside Plugin.js line 77 for google plugin there is Starting with "\" indicates an absolute path, thus any preceding parts are dropped by the In Patreon URL processor we are setting the crawledUrl.Downloadpath in Line 181 in PatreonCrawledUrlProcessor.cs Plugin URLs will always use So either we should pass the full path for plugin case so that when Path.Combine drops the first parameter it will still have full path. Or we shouldn't be combining Edit3: Maybe something like: Pass the full path if |
@emerladCoder Thank you for your detailed look into the problem. This is actually an issue which slipped through while I was doing refactoring. Since |
… the drive when --use-sub-directories is not enabled (#159)
Released new version addressing this issue: https://github.com/AlexCSDev/PatreonDownloader/releases/tag/release_24 |
Effectively the title.
Host is W10 22H2.
I'm running this in a VM where I have very little free space in the root drive (<5 GB):
The Mega downloader seems to be using a creating/using cache directory named
C:\V1hgz_<Mega Folder Name>
where it's either saving content, or saving cache things, and it pretty quickly runs the host out of disk space and starts failing in interesting ways.Off topic: When mega issues a
509 Bandwidth exceeded
error, the downloader just winds up doing 10 retries for every mega item, which is kind of annoying. It'd be neat if it were smart enough to give up on mega files for a while when it hits a 509, but it should at least stop doing pointless retries.The text was updated successfully, but these errors were encountered: