fix downloading
This commit is contained in:
parent
19217de7d8
commit
517f83ae61
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@
|
|||||||
build/
|
build/
|
||||||
test.py
|
test.py
|
||||||
app/helper/sites.py
|
app/helper/sites.py
|
||||||
|
config/user.db
|
@ -102,7 +102,7 @@ class DownloadChain(ChainBase):
|
|||||||
if _hash:
|
if _hash:
|
||||||
# 登记下载记录
|
# 登记下载记录
|
||||||
self.downloadhis.add(
|
self.downloadhis.add(
|
||||||
path=_folder_name,
|
path=_folder_name or _torrent.title,
|
||||||
type=_media.type.value,
|
type=_media.type.value,
|
||||||
title=_media.title,
|
title=_media.title,
|
||||||
year=_media.year,
|
year=_media.year,
|
||||||
|
@ -95,7 +95,7 @@ class Qbittorrent(metaclass=Singleton):
|
|||||||
if not self.qbc:
|
if not self.qbc:
|
||||||
return None
|
return None
|
||||||
torrents, error = self.get_torrents(ids=ids,
|
torrents, error = self.get_torrents(ids=ids,
|
||||||
status=["downloading", 'paused'],
|
status=["downloading", 'paused', 'stalled_downloading'],
|
||||||
tags=tags)
|
tags=tags)
|
||||||
return None if error else torrents or []
|
return None if error else torrents or []
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user