Closed craigvc closed 14 hours ago
Hey there, thanks for your PR! If resuming works as expected, then that's great.
This is a pretty comprehensive modification of this script though, so I have a few questions:
session.post
handle resuming without the Quixel server handling a Range
header? This is something I tested myself with requests.post
, and it did not work. Also, does {'Accept-Encoding': 'gzip, deflate'}
work to download smaller zips?if (asset_path / f"{asset}.zip").stat().st_size != asset_length:
print(f"\nDownload for asset {asset} was incomplete!")
print("Waiting 5 seconds and retrying.")
time.sleep(5)
data = {"asset": asset,
"config": {"highpoly": True,
"lowerlod_meshes": True,
"lowerlod_normals": True,
"ztool": True,
"brushes": True,
"meshMimeType": "application/x-fbx",
"albedo_lods": True},
"components": asset_components}
Also, I notice that you've limited retries now, but I would prefer that retries be unlimited. (again, for archival reasons)
One other thing I'd like to note is that a "mega PR" like this that comprehensively modifies the most important file in this repository is more difficult to work with than a few smaller PRs that target different areas of improvement. For example, having threading split out into its own PR would make it so that I could review and test solely that functionality without worrying about all the other changes you made.
hey sorry that was most definetely not ready to go as a pr!
i was still doing many things and had a brain fart, in terms of multithreading yes it works
the rest i am still addressing!
Awesome!
let me give this more of a sanity check for you - it may not sit exactly as a PR but you can take what you need
I will send the file outside the pr for you
Added Threading for concurrent downloads creation of subfolders for categories and category selection and download resumption