Skip to content

Commit fe7a94b

Browse files
joneechuajoneezhu
and
joneezhu
authored
fix(brushtask): 修复刷流任务bug (#584)
* fix(brushtask): 修复刷流任务bug * del log --------- Co-authored-by: joneezhu <[email protected]>
1 parent eb10a4b commit fe7a94b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/brushtask.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,7 @@ def check_task_rss(self, taskid):
235235
# 发布时间
236236
pubdate = res.get('pubdate')
237237

238-
if enclosure not in self._torrents_cache:
239-
self._torrents_cache.append(enclosure)
240-
else:
238+
if enclosure in self._torrents_cache:
241239
log.debug("【Brush】%s 已处理过" % torrent_name)
242240
continue
243241

@@ -279,6 +277,7 @@ def check_task_rss(self, taskid):
279277
if not self.__is_allow_new_torrent(taskinfo=taskinfo,
280278
dlcount=max_dlcount):
281279
break
280+
self._torrents_cache.append(enclosure)
282281
except Exception as err:
283282
ExceptionUtils.exception_traceback(err)
284283
continue

0 commit comments

Comments
 (0)