Hello, my name is urain39!
I am a developer who like to writing programs in Python, JavaScript, and C-Like Languages :)
Extended KngetPy for SankakuComplex.
License: MIT License
按照order:xxx标签顺序重新排序,以确保某一时间内质量与图片id关联。
因为self.__class__
的结果是固定的,也就是指向self
的原类型,所以在其他子类调用时需要注意。(习惯坑人啊
tag[tag_type] The tag type. General: 0, artist: 1, copyright: 3, character: 4.
Most of the bugs are occured on the Knget, if you want to open a new issue please checking the existed Knget's issues before.
hope you can read some chinese or just translate it via google translate :)
As the title says.
将所有的meta_info.json整合成本地索引数据库(并不再保存在下载目录下),方便下次本地查找。
配置文件中提供global_database键值对开启与关闭,缺省值:开启。
setprop custom.page_limit 20
run '<tags>' 1 5
It will only process 1 page, seems that an error occurred in line #324, #356.
We shoud't store the history on each line!
因为inifile处理类型已经混乱,所以决定不再使用inifile作为配置文件格式。#4
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
因为实现比较简单,缺少了类型转换在设置参数时容易造成类型错误。
解决方法:修改knget.cmd_register
方法实现,通过fmt
参数转换类型。
如iis
表示3个参数,类型分别转换为int, int, str
。
Rewrite with KngetPy2.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.