Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[错误报告] 似乎是 TMDB 解析器的错误 #354

Closed
5 tasks done
mikusaa opened this issue Jun 23, 2023 · 0 comments
Closed
5 tasks done

[错误报告] 似乎是 TMDB 解析器的错误 #354

mikusaa opened this issue Jun 23, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@mikusaa
Copy link

mikusaa commented Jun 23, 2023

确认

  • 我的版本是最新版本,我的版本号与 version 相同。
  • 我已经查阅了排错流程,确保提出的问题不在其中。
  • 我已经查阅了已知问题,并确认我的问题不在其中。
  • 我已经 issue 中搜索过,确认我的问题没有被提出过。
  • 我已经修改标题,将标题中的 描述 替换为我遇到的问题。

当前程序版本

3.0.8

问题类型

程序运行问题

问题描述

日志如下,使用 tmdb 时无法创建下载规则,切换其他解析器即可恢复正常
不知道是哪部番剧的原因,mikan token:Lc%2bEDmr%2btn%2bM5MycNvC8aw%2bn0zgooZdXq%2bJ2AkZcBmc%3d

[喵萌奶茶屋&LoliHouse] 在无神世界进行信仰传播活动
[LoliHouse] 亡骸游戏 / 尸体如山的死亡游戏
[Lilith-Raws] 【我推的孩子】
[豌豆字幕组&风之圣殿字幕组&LoliHouse] 鬼灭之刃 刀匠村篇
[DAY字幕组][女神的露天咖啡厅/Megami no Café Terrace]

发生问题时系统日志

[2023-06-23 20:31:34] INFO:                     _        ____                                    _
[2023-06-23 20:31:34] INFO:          /\        | |      |  _ \                                  (_)
[2023-06-23 20:31:34] INFO:         /  \  _   _| |_ ___ | |_) | __ _ _ __   __ _ _   _ _ __ ___  _
[2023-06-23 20:31:34] INFO:        / /\ \| | | | __/ _ \|  _ < / _` | '_ \ / _` | | | | '_ ` _ \| |
[2023-06-23 20:31:34] INFO:       / ____ \ |_| | || (_) | |_) | (_| | | | | (_| | |_| | | | | | | |
[2023-06-23 20:31:34] INFO:      /_/    \_\__,_|\__\___/|____/ \__,_|_| |_|\__, |\__,_|_| |_| |_|_|
[2023-06-23 20:31:34] INFO:                                                 __/ |
[2023-06-23 20:31:34] INFO:                                                |___/
[2023-06-23 20:31:34] INFO:     Version 3.0.8  Author: EstrellaXD Twitter: https://twitter.com/Estrella_Pan
[2023-06-23 20:31:34] INFO:     GitHub: https://github.com/EstrellaXD/Auto_Bangumi/
[2023-06-23 20:31:34] INFO:     Starting AutoBangumi...
[2023-06-23 20:31:34] INFO:     Config loaded
[2023-06-23 20:31:36] INFO:     Program running.
[2023-06-23 20:31:36] INFO:     Application startup complete.
[2023-06-23 20:31:36] INFO:     Uvicorn running on http://0.0.0.0:7892 (Press CTRL+C to quit)
Exception in thread Thread-4 (rss_loop):
Traceback (most recent call last):
  File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.11/threading.py", line 975, in run
    self._target(*self._args, **self._kwargs)
  File "/app/module/core/sub_thread.py", line 27, in rss_loop
    new_data = analyser.rss_to_data(rss_link=settings.rss_link, database=db)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/module/rss/analyser.py", line 85, in rss_to_data
    new_data = self.torrents_to_data(torrents_to_add, rss_link, full_parse)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/module/rss/analyser.py", line 57, in torrents_to_data
    self.official_title_parser(data, mikan_title)
  File "/app/module/rss/analyser.py", line 23, in official_title_parser
    tmdb_title, season, year = self._title_analyser.tmdb_parser(
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/module/parser/title_parser.py", line 30, in tmdb_parser
    tmdb_info = tmdb_parser(title, language)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/module/parser/analyser/tmdb_parser.py", line 68, in tmdb_parser
    last_season = get_season(season)
                  ^^^^^^^^^^^^^^^^^^
  File "/app/module/parser/analyser/tmdb_parser.py", line 42, in get_season
    ss = sorted(seasons, key=lambda e: e.get("air_date"), reverse=True)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '<' not supported between instances of 'str' and 'NoneType'
@mikusaa mikusaa added the bug Something isn't working label Jun 23, 2023
@EstrellaXD EstrellaXD mentioned this issue Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant