From bb8ce148bb8e0b07d1ef09148d276f0fb2de8c3e Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 8 Apr 2023 21:56:19 +0800 Subject: [PATCH] fix tags bug --- app/plugins/modules/iyuuautoseed.py | 3 ++- app/plugins/modules/torrenttransfer.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/plugins/modules/iyuuautoseed.py b/app/plugins/modules/iyuuautoseed.py index 2f970ede71..3cf8699789 100644 --- a/app/plugins/modules/iyuuautoseed.py +++ b/app/plugins/modules/iyuuautoseed.py @@ -1,4 +1,5 @@ import re +from copy import deepcopy from datetime import datetime from threading import Event @@ -482,7 +483,7 @@ def __download_torrent(self, seed, downloader, save_path): _, download_id, retmsg = self.downloader.download( media_info=meta_info, is_paused=True, - tag=self._torrent_tags, + tag=deepcopy(self._torrent_tags), downloader_id=downloader, download_dir=save_path, download_setting="-2", diff --git a/app/plugins/modules/torrenttransfer.py b/app/plugins/modules/torrenttransfer.py index e2b7271440..f71efff0eb 100644 --- a/app/plugins/modules/torrenttransfer.py +++ b/app/plugins/modules/torrenttransfer.py @@ -1,4 +1,5 @@ import os.path +from copy import deepcopy from datetime import datetime from threading import Event @@ -392,7 +393,7 @@ def transfer(self): media_info=MetaInfo("自动转移做种"), torrent_file=torrent_file, is_paused=True, - tag=self._torrent_tags, + tag=deepcopy(self._torrent_tags), downloader_id=todownloader, download_dir=download_dir, download_setting="-2",