Giter Club home page Giter Club logo

bangumitelegrambot's Issues

[疑问]

image
image

bangumi.online订阅与追番有何区别;我能不能用BangumiBot直接控制 订阅/退订

【通知】示例Bot出现异常

由于我新买的电脑还在路上,暂时无法修复问题。

出错Log:


2022-05-18 10:33:32,883 - bot.py & consumption_request[line:225] - ERROR: 发生异常 session:41d521f347dc4b86824b6e5c0e778720
Traceback (most recent call last):
  File "/root/BangumiTelegramBot/bot.py", line 215, in consumption_request
    callback_text = request_handler(session)
  File "/root/BangumiTelegramBot/bot.py", line 290, in request_handler
    collection_list_page.generate_page(top)
  File "/root/BangumiTelegramBot/plugins/callback/collection_list_page.py", line 71, in generate_page
    epssssss = info["subject_info"]["eps"]
KeyError: 'subject_info'

Bot无响应

今天bangumi.online貌似宕机了一段时间,恢复后发现Bot已经无响应了...

rating_data 数值冲突

https://github.com/Ukenn2112/BangumiTelegramBot/blob/master/bot.py#L789

        if rating_data == 3:
            rating = '3'
            collection_post(test_id, subject_id, status, rating)
            rating_text()

https://github.com/Ukenn2112/BangumiTelegramBot/blob/master/bot.py#L817

        if rating_data == 3:
            rating = '10'
            collection_post(test_id, subject_id, status, rating) 
            rating_text()          

另外这里可以使用 str(),不需要多个 if

  collection_post(test_id, subject_id, status, str(rating_data) ) 
  rating_text()          

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.