diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2018-09-24 15:49:33 +0100 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2018-09-26 14:18:52 +0100 |
commit | 759a618f7434379c817f8f42b9a97d7e443587da (patch) | |
tree | dac4d1339a3ae9be414d76e10d77b93bad76a23e /deluge/core/core.py | |
parent | 23f1cfc92692fbad81dc4a202f01f17cb5ab1513 (diff) | |
download | deluge-759a618f7434379c817f8f42b9a97d7e443587da.tar.gz deluge-759a618f7434379c817f8f42b9a97d7e443587da.tar.bz2 deluge-759a618f7434379c817f8f42b9a97d7e443587da.zip |
[Core] Tweaks to prefetch metadata method
- Disable the magnet from being auto_managed so it starts immediately.
- Reduce the default timeout to 30secs.
- Use the generic tempfile dir.
- Move callback method to be class method
Diffstat (limited to 'deluge/core/core.py')
-rw-r--r-- | deluge/core/core.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/core/core.py b/deluge/core/core.py index 7125a8093..15024258e 100644 --- a/deluge/core/core.py +++ b/deluge/core/core.py @@ -406,7 +406,7 @@ class Core(component.Component): return d @export - def prefetch_magnet_metadata(self, magnet, timeout=60): + def prefetch_magnet_metadata(self, magnet, timeout=30): """Download the metadata for the magnet uri without adding torrent to deluge session. Args: |