DeviantArt - media download helper

DeviantArt - Download multi-media deviations. Download largest resampled media file, avoiding rate-limited download of original file. Fix timeout of original image download. Download filenames are prefixed with artist's name.

< Feedback on DeviantArt - media download helper

Review: Good - script works

Great script. Thank you very much for your work!
Please help me edit it a little for myself.
I don't want the file to be saved with the "author's name" prefix at the beginning of the name.
That is, I would like to replace the name (for example, chrisryder123_del_nadre_shando_by_chrisryder123_dlhq1vy.png) with (del_nadre_shando_by_chrisryder123_dlhq1vy.png), and so on with all files in the future.
I'm sure this can be done with a few tweaks in the code. Unfortunately, I haven't been able to figure out how to do this myself.
Can you help me?

marpAuthor
§
Posted: 2026-04-17

Look at the function called "initializeDeviation".
It's got a statement setting "myPrettyName".
Currently (version 3.1), this is line 901.
For example, you can change it
from
const myPrettyName = authorName.toLowerCase() + ((isAiGenerated) ? "_AI_" : "_") + mediaPrettyName;
to just
const myPrettyName = mediaPrettyName;

Please note that editing the script locally will either stop the automatic updating of the script, or the local changes will be overwritten upon update.
I.e.: you'll have to make this edit after each update of the script.

It works!
Well, I have everything organized in folders, so adding a prefix to each file (the same as the folder name)... Required a mass renaming.
And now it doesn't.
Thank you very much!!
The script was always useful on its own. But in the current disastrous circumstances - even more so...

I'd like to ask another question. Are there any specific features, nuances, or, maybe, problems with file sizes?
For example, https://www.deviantart.com/endoflineart/art/Tifa-Lockhart-90-1296781779
Image size 4608x6144px 49.71 MB
The script just doesn't want to download it.
Sometimes (sometimes) I was able to download files that were around 20 MB. Not always, but still...
But I've never been able to download files that were 50 MB, no matter what I tried.

marpAuthor
§
Posted: 2026-04-19

Not really.
I can only imagine that if you are using a mobile device with strictly limited RAM.
Or if you internet connection is slow.

From the description:

Download delay
There will be a delay between clicking a download button, and the download executing.
This will occur especially with videos - the larger the file, the longer the delay.

Did you wait long enough?
I've downloaded files up to 200MB - it simply takes time for the save dialog to appear.

The only way to set the correct filename is via a "blob:" download.
That means the script must first download the entire file, to then be able to trigger the browser download dialog with a filename different from what the original/DA website provided.
Otherwise, the filename would be a long hexadecimal thingy.

Understood.
Yes, then, more likely it is because of my old OS or (and) vpn.
Not a problem at all.

Thank you again for the script!

marpAuthor
§
Posted: 2026-04-21

Please let me know if you find any kind of pattern in the download failures.
I don't believe it can be download size, alone.
Maybe something else...

Sure.

For now -- no patterns. Just no download.
50 Mb and upper. But lower too -- about 37-40 Mb.
Opening picture in a new tab, you know, to get dlg2j83-806ee657-ee31-4a70-a8c9-ceeff7b1efbb.png (not tifa_lockhart_90_by_endoflineart_dlg2j83-414w-2x.jpg) works fine if slow.
I do believe it's "troubles on the line". After all, DeviantArt is being blocked in my bestest country...

Post reply

Sign in to post a reply.