Comments (7)
I'll work on it.
from pysmartdl.
from pysmartdl.
Also interested whether this is possible.
Can a download continue if the download is abruptly stopped/killed midway?
from pysmartdl.
This library does not support this feature.
from pysmartdl.
Hi @iTaybb , am I correct that this is still not implemented? And am I correct that this feature would/could handle lengthy disconnections? My boss noticed that if he turned off the internet connection and then reconnected it, an active download would start from scratch rather than picking up from where it had left off.
from pysmartdl.
Looks like the issue with the current implementation is related to a race condition in the recursive threading: https://stackoverflow.com/questions/51879070/python-executor-spawn-tasks-from-done-callback-recursively-submit-tasks
test_hash (__main__.TestSmartDL) ... Exception in thread Thread-9:
Traceback (most recent call last):
File "C:\Users\brand\AppData\Local\Programs\Python\Python36\lib\threading.py", line 916, in _bootstrap_inner
self.run()
File "C:\Users\brand\AppData\Local\Programs\Python\Python36\lib\threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "c:\users\brand\source\pysmartdl\pySmartDL\pySmartDL.py", line 645, in post_threadpool_actions
SmartDLObj.try_next_mirror(HashFailedException(os.path.basename(dest_path), hash, SmartDLObj.hash_code))
File "c:\users\brand\source\pysmartdl\pySmartDL\pySmartDL.py", line 339, in try_next_mirror
self.start()
File "c:\users\brand\source\pysmartdl\pySmartDL\pySmartDL.py", line 292, in start
self.logger
File "c:\users\brand\source\pysmartdl\pySmartDL\utils.py", line 284, in submit
future = super().submit(fn, *args, **kwargs)
File "C:\Users\brand\AppData\Local\Programs\Python\Python36\lib\concurrent\futures\thread.py", line 117, in submit
raise RuntimeError('cannot schedule new futures after shutdown')
RuntimeError: cannot schedule new futures after shutdown
from pysmartdl.
will it be possible to add functionality like using a different url only if one fails and continuing downloading from where it left off, this will be usefull for downloading files which have exipre time so even after the link expires we can just use a new link and continue from where we left off. the current mirror function checks before hand if the 2nd url is valid even if the first one is vaild it would be great if it only checked the 2nd url in case the first one fails or returns an error
from pysmartdl.
Related Issues (20)
- New Feature: currently it does not support cookie
- ssl certificate HOT 1
- python 3.7.4 supporting HOT 1
- utils.url_fix breaks url HOT 1
- Downloading error in python 3.8 HOT 2
- Reduce download speed at last HOT 1
- HTTP NTLM Authentication
- Progress?
- How to set retries if initial download fails
- Free Palestine HOT 1
- 1973
- RuntimeError: cannot schedule new futures after shutdown HOT 1
- Question: Will the mirror function pick the fastest one?
- always download with only one thread
- Error while downloading 🤒 HOT 3
- is there any way for it to just return the current progress HOT 1
- functionality to use different url if one fails and continue downloading
- reading the filename with content-disposition header
- Wrong error message, if total file size doesn't match expected file size.
- Add supprt for request.session cookies or passing referer HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pysmartdl.