Giter Site home page Giter Site logo

kngetpyx's Introduction

Hi there 👋

Hello, my name is urain39!

I am a developer who like to writing programs in Python, JavaScript, and C-Like Languages :)

kngetpyx's People

Contributors

imgbotapp avatar urain39 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

kngetpyx's Issues

新特性:本地索引数据库

将所有的meta_info.json整合成本地索引数据库(并不再保存在下载目录下),方便下次本地查找。

配置文件中提供global_database键值对开启与关闭,缺省值:开启。

Bug of setprop

setprop custom.page_limit 20
run '<tags>'  1 5

It will only process 1 page, seems that an error occurred in line #324, #356.

TypeError: string indices must be integers

return super(KngetXShell, self).session(message=message)
  File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/knget/base.py", line 730, in session
    self.execute(lineno, cmd_name=line[0], args=line[1:])
  File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/knget/base.py", line 691, in execute
    callback(self, *args)
  File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/knget/base.py", line 525, in wrapped_method
    return method(*argv, **kwargs)
  File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/knget/base.py", line 565, in run
    super(KngetShell, self).run(tags, begin, int(end))
  File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/knget/base.py", line 453, in run
    self.work()
  File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/knget/base.py", line 376, in work
    self._filter()
  File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/kngetx/base.py", line 150, in _filter
    task for task in self._task_pool
  File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/kngetx/base.py", line 152, in <listcomp>
    for tag in task['tags'])
  File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/kngetx/base.py", line 152, in <genexpr>
    for tag in task['tags'])
TypeError: string indices must be integers

setprop类型错误

setprop因为实现比较简单,缺少了类型转换在设置参数时容易造成类型错误。

解决方法:修改knget.cmd_register方法实现,通过fmt参数转换类型。

iis表示3个参数,类型分别转换为int, int, str

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.