jxxghp / MoviePilot

NAS媒体库自动化管理工具
https://wiki.movie-pilot.org
GNU General Public License v3.0
6.38k stars 768 forks source link

Monika站点刷流,发布时间和促销的识别问题。 #1922

Closed torashen closed 5 months ago

torashen commented 5 months ago

确认

当前程序版本

v1.8.1-1

运行环境

Docker

问题类型

主程序运行问题

问题描述

莫妮卡无法正确识别促销状态以及种子发布时间 1713493043981

发生问题时系统日志和配置文件

No response

whogh commented 5 months ago

image 发布时间这里减反了吧

whogh commented 5 months ago

2 changes: 1 addition & 1 deletion2
app/utils/string.py @@ -743,7 +743,7 @@ def diff_time_str(time_str: str): try: time_obj = datetime.datetime.strptime(time_str, '%Y-%m-%d %H:%M:%S') except ValueError: return '' return time_str now = datetime.datetime.now() diff = time_obj - now diff_seconds = diff.seconds

jxxghp commented 5 months ago

@whogh monika就不是标准的时间,不会走到这里啊,网站显示是啥就是啥,不是吗?

whogh commented 5 months ago

但是其他站也出问题吧, 应该 发布时间间隔=当前时间 - 网站上显示的发布时间 因为之前一直是负数,日志显示 brushflow - 种子没有通过刷流条件校验,原因:发布时间 0 分钟前,不在指定范围内 diff = now - time_obj

jxxghp commented 5 months ago

@whogh 举个例子?其它站抓取的是免费到期时间啊