Giter VIP home page Giter VIP logo

misakaf_emby's Issues

优化扫库的小想法(我很菜)

就是我们既然做了json的数据库的的话,是不是可以把数据库下发到用户手里面(不知道json数据库能不能给到用户),让用户在本地搭建响应扫库请求的服务(然后我们扫库的时候,用代理代理到本地的服务上),站内定时更新json数据库,需要扫库的时候我们通过下载的数据库,自己离线扫库。这种方法可行么(这只是我的想法,俺没有实践经验,抱歉

老哥 执行的时候出现了一些错误

No error handlers are registered, logging exception.
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/telegram/ext/dispatcher.py", line 555, in process_update
handler.handle_update(update, self, check, context)
File "/usr/local/lib/python3.6/site-packages/telegram/ext/handler.py", line 198, in handle_update
return self.callback(update, context)
File "bot.py", line 73, in create
check_groups = check_user_in_the_group(update,context)
File "bot.py", line 242, in check_user_in_the_group
check = context.bot.getChatMember(group_chat_id,user_id)
File "/usr/local/lib/python3.6/site-packages/telegram/bot.py", line 130, in decorator
result = func(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/telegram/bot.py", line 3379, in get_chat_member
result = self._post('getChatMember', data, timeout=timeout, api_kwargs=api_kwargs)
File "/usr/local/lib/python3.6/site-packages/telegram/bot.py", line 296, in _post
f'{self.base_url}/{endpoint}', data=data, timeout=effective_timeout
File "/usr/local/lib/python3.6/site-packages/telegram/utils/request.py", line 366, in post
**urlopen_kwargs,
File "/usr/local/lib/python3.6/site-packages/telegram/utils/request.py", line 279, in _request_wrapper
raise BadRequest(message)
telegram.error.BadRequest: Chat not found
但是排查不出来是那个地方触发的这个报错
C7然后EMBY4.7.11

扫库的一个思路

捕获/Users/(.*)/Items请求,然后使用请求的链接的参数作为缓存的key,觉得这个方式咋样,打算用varnish做缓存,缺点是varnish重启后得重新缓存

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.