diff --git a/app.py b/app.py index 37236a0..5808a69 100644 --- a/app.py +++ b/app.py @@ -7,6 +7,7 @@ import time +from gevent import pywsgi from flask import Flask from flask import request from flask import Response @@ -14,11 +15,46 @@ from flask import make_response from flask import send_from_directory from bin.core.render_ import render_temp_ from bin.core.b64img import re_sort_number_image -from db.db import (fetch_data, update_data) +from db.db import (fetch_data, + update_data, + fetch_table) app = Flask(__name__) +def get_theme_list() -> Response: + """ + 直接获取可选主题 + :return: + """ + table_list = fetch_table() + response = make_response({'code': 200, + 'msg': '可用主题如下', + 'themes': table_list}) + response.status_code = 200 + response.headers['Content-Type'] = 'application/json: charset=utf-8' + response.headers['cache-control'] = 'max-age=0, no-cache, no-store, must-revalidate' + response.headers['date'] = time.ctime() + return response + + +def error_theme(theme: str) -> Response: + """ + 错误的主题 + :param theme: + :return: + """ + table_list = fetch_table() + response = make_response({'code': -2, + 'msg': f'数据库内没有选择的主题: {theme}. 可用主题如下', + 'themes': table_list}) + response.status_code = 200 + response.headers['Content-Type'] = 'application/json; charset=utf-8' + response.headers['cache-control'] = 'max-age=0, no-cache, no-store, must-revalidate' + response.headers['date'] = time.ctime() + return response + + def error_length(length: int) -> Response: """ 数值太长显示此页面 @@ -26,7 +62,7 @@ def error_length(length: int) -> Response: :return: """ response = make_response({'code': -2, - 'message': f'错误的长度: {length}'}) + 'msg': f'错误的长度: {length}'}) response.status_code = 200 response.headers['Content-Type'] = 'application/json; charset=utf-8' response.headers['cache-control'] = 'max-age=0, no-cache, no-store, must-revalidate' @@ -42,7 +78,7 @@ def too_lang_to_count(name: str) -> Response: """ update_data(name, 0) response = make_response({'code': -2, - 'message': f'当前长度超过了最大可计数长度:10. 已将重置该名称的计数器'}) + 'msg': '当前长度超过了最大可计数长度:10. 已将重置该名称的计数器'}) response.headers['Content-Type'] = 'application/json; charset=utf-8' response.headers['cache-control'] = 'max-age=0, no-cache, no-store, must-revalidate' response.headers['date'] = time.ctime() @@ -55,7 +91,7 @@ def arg_not_be_full() -> Response: :return: """ response = make_response({'code': -2, - 'message': '参数填写不完整或填写错误'}) + 'msg': '参数填写不完整或填写错误'}) response.status_code = 200 response.headers['Content-Type'] = 'application/json; charset=utf-8' response.headers['cache-control'] = 'max-age=0, no-cache, no-store, must-revalidate' @@ -63,7 +99,7 @@ def arg_not_be_full() -> Response: return response -def build_page(name: str, length: int, theme: str) -> list[Response] | list[bool | str] | list[bool]: +def build_page(name: str, length: int, theme: str) -> list[bool | Response] | list[bool | str] | bool: """ 渲染最终的页面 :param theme: @@ -76,8 +112,11 @@ def build_page(name: str, length: int, theme: str) -> list[Response] | list[bool return [False, too_lang_to_count(name)] if 7 <= length <= 10: zero_count = '0' * (length - len(str(count))) + str(count) - sorted_image, width, height = re_sort_number_image(zero_count, theme) - return [True, render_temp_(length, name, sorted_image, width, height)] + status, sorted_image, width, height = re_sort_number_image(zero_count, theme) + if status: + return [True, render_temp_(length, name, sorted_image, width, height)] + else: + return [False, 'BadTheme'] else: return [False, 'BadLength'] @@ -92,6 +131,8 @@ def api_page() -> Response | str: name = str(args.get('name')).replace('None', 'null') length = args.get('length') theme = args.get('theme') + if theme == 'ls': + return get_theme_list() if name and name != 'null': if not length: length = 7 @@ -108,6 +149,8 @@ def api_page() -> Response | str: return response elif build_page_result[1] == 'BadLength': return error_length(length) + elif build_page_result[1] == 'BadTheme': + return error_theme(theme) else: return build_page_result[1] else: diff --git a/bin/assets/theme.db b/bin/assets/theme.db index eedd1f5..741b824 100644 Binary files a/bin/assets/theme.db and b/bin/assets/theme.db differ diff --git a/bin/assets/themes/.gitkeep b/bin/assets/themes/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/bin/assets/themes/5naf/0.gif b/bin/assets/themes/5naf/0.gif deleted file mode 100644 index 7fadaa1..0000000 Binary files a/bin/assets/themes/5naf/0.gif and /dev/null differ diff --git a/bin/assets/themes/5naf/1.gif b/bin/assets/themes/5naf/1.gif deleted file mode 100644 index 28f4948..0000000 Binary files a/bin/assets/themes/5naf/1.gif and /dev/null differ diff --git a/bin/assets/themes/5naf/2.gif b/bin/assets/themes/5naf/2.gif deleted file mode 100644 index 3328967..0000000 Binary files a/bin/assets/themes/5naf/2.gif and /dev/null differ diff --git a/bin/assets/themes/5naf/3.gif b/bin/assets/themes/5naf/3.gif deleted file mode 100644 index cadbb81..0000000 Binary files a/bin/assets/themes/5naf/3.gif and /dev/null differ diff --git a/bin/assets/themes/5naf/4.gif b/bin/assets/themes/5naf/4.gif deleted file mode 100644 index f5294ab..0000000 Binary files a/bin/assets/themes/5naf/4.gif and /dev/null differ diff --git a/bin/assets/themes/5naf/5.gif b/bin/assets/themes/5naf/5.gif deleted file mode 100644 index 975007e..0000000 Binary files a/bin/assets/themes/5naf/5.gif and /dev/null differ diff --git a/bin/assets/themes/5naf/6.gif b/bin/assets/themes/5naf/6.gif deleted file mode 100644 index 08e6ed0..0000000 Binary files a/bin/assets/themes/5naf/6.gif and /dev/null differ diff --git a/bin/assets/themes/5naf/7.gif b/bin/assets/themes/5naf/7.gif deleted file mode 100644 index c4a8f47..0000000 Binary files a/bin/assets/themes/5naf/7.gif and /dev/null differ diff --git a/bin/assets/themes/5naf/8.gif b/bin/assets/themes/5naf/8.gif deleted file mode 100644 index 2037808..0000000 Binary files a/bin/assets/themes/5naf/8.gif and /dev/null differ diff --git a/bin/assets/themes/5naf/9.gif b/bin/assets/themes/5naf/9.gif deleted file mode 100644 index 3363b32..0000000 Binary files a/bin/assets/themes/5naf/9.gif and /dev/null differ diff --git a/bin/assets/themes/README.md b/bin/assets/themes/README.md new file mode 100644 index 0000000..36899b7 --- /dev/null +++ b/bin/assets/themes/README.md @@ -0,0 +1,8 @@ + 由于图片过多暂且不放置原图 + 所有图片均在theme.db中 以base64编码保存 + theme.db 使用的是Sqlite 数据库 + - 数据类型: + - k text -> 索引 + - v text -> base64编码 + - w integer -> 图片宽 + - h integer -> 图片高 \ No newline at end of file diff --git a/bin/assets/themes/allgirl/0.gif b/bin/assets/themes/allgirl/0.gif deleted file mode 100644 index 83f6dc2..0000000 Binary files a/bin/assets/themes/allgirl/0.gif and /dev/null differ diff --git a/bin/assets/themes/allgirl/1.gif b/bin/assets/themes/allgirl/1.gif deleted file mode 100644 index fccdde2..0000000 Binary files a/bin/assets/themes/allgirl/1.gif and /dev/null differ diff --git a/bin/assets/themes/allgirl/2.gif b/bin/assets/themes/allgirl/2.gif deleted file mode 100644 index 6d92298..0000000 Binary files a/bin/assets/themes/allgirl/2.gif and /dev/null differ diff --git a/bin/assets/themes/allgirl/3.gif b/bin/assets/themes/allgirl/3.gif deleted file mode 100644 index 1dfaa11..0000000 Binary files a/bin/assets/themes/allgirl/3.gif and /dev/null differ diff --git a/bin/assets/themes/allgirl/4.gif b/bin/assets/themes/allgirl/4.gif deleted file mode 100644 index af98b23..0000000 Binary files a/bin/assets/themes/allgirl/4.gif and /dev/null differ diff --git a/bin/assets/themes/allgirl/5.gif b/bin/assets/themes/allgirl/5.gif deleted file mode 100644 index 34b6f5b..0000000 Binary files a/bin/assets/themes/allgirl/5.gif and /dev/null differ diff --git a/bin/assets/themes/allgirl/6.gif b/bin/assets/themes/allgirl/6.gif deleted file mode 100644 index 0edb17b..0000000 Binary files a/bin/assets/themes/allgirl/6.gif and /dev/null differ diff --git a/bin/assets/themes/allgirl/7.gif b/bin/assets/themes/allgirl/7.gif deleted file mode 100644 index 3375cb6..0000000 Binary files a/bin/assets/themes/allgirl/7.gif and /dev/null differ diff --git a/bin/assets/themes/allgirl/8.gif b/bin/assets/themes/allgirl/8.gif deleted file mode 100644 index 04dcfed..0000000 Binary files a/bin/assets/themes/allgirl/8.gif and /dev/null differ diff --git a/bin/assets/themes/allgirl/9.gif b/bin/assets/themes/allgirl/9.gif deleted file mode 100644 index 683a0da..0000000 Binary files a/bin/assets/themes/allgirl/9.gif and /dev/null differ diff --git a/bin/assets/themes/azureblade/0.gif b/bin/assets/themes/azureblade/0.gif deleted file mode 100644 index f5fea7e..0000000 Binary files a/bin/assets/themes/azureblade/0.gif and /dev/null differ diff --git a/bin/assets/themes/azureblade/1.gif b/bin/assets/themes/azureblade/1.gif deleted file mode 100644 index 472331f..0000000 Binary files a/bin/assets/themes/azureblade/1.gif and /dev/null differ diff --git a/bin/assets/themes/azureblade/2.gif b/bin/assets/themes/azureblade/2.gif deleted file mode 100644 index 64a6661..0000000 Binary files a/bin/assets/themes/azureblade/2.gif and /dev/null differ diff --git a/bin/assets/themes/azureblade/3.gif b/bin/assets/themes/azureblade/3.gif deleted file mode 100644 index c007291..0000000 Binary files a/bin/assets/themes/azureblade/3.gif and /dev/null differ diff --git a/bin/assets/themes/azureblade/4.gif b/bin/assets/themes/azureblade/4.gif deleted file mode 100644 index aabf121..0000000 Binary files a/bin/assets/themes/azureblade/4.gif and /dev/null differ diff --git a/bin/assets/themes/azureblade/5.gif b/bin/assets/themes/azureblade/5.gif deleted file mode 100644 index c756955..0000000 Binary files a/bin/assets/themes/azureblade/5.gif and /dev/null differ diff --git a/bin/assets/themes/azureblade/6.gif b/bin/assets/themes/azureblade/6.gif deleted file mode 100644 index 625a208..0000000 Binary files a/bin/assets/themes/azureblade/6.gif and /dev/null differ diff --git a/bin/assets/themes/azureblade/7.gif b/bin/assets/themes/azureblade/7.gif deleted file mode 100644 index 6bc53bd..0000000 Binary files a/bin/assets/themes/azureblade/7.gif and /dev/null differ diff --git a/bin/assets/themes/azureblade/8.gif b/bin/assets/themes/azureblade/8.gif deleted file mode 100644 index 2dd42ae..0000000 Binary files a/bin/assets/themes/azureblade/8.gif and /dev/null differ diff --git a/bin/assets/themes/azureblade/9.gif b/bin/assets/themes/azureblade/9.gif deleted file mode 100644 index 2fb57c2..0000000 Binary files a/bin/assets/themes/azureblade/9.gif and /dev/null differ diff --git a/bin/assets/themes/blacked/0.gif b/bin/assets/themes/blacked/0.gif deleted file mode 100644 index 15d5a8a..0000000 Binary files a/bin/assets/themes/blacked/0.gif and /dev/null differ diff --git a/bin/assets/themes/blacked/1.gif b/bin/assets/themes/blacked/1.gif deleted file mode 100644 index 0f3f232..0000000 Binary files a/bin/assets/themes/blacked/1.gif and /dev/null differ diff --git a/bin/assets/themes/blacked/2.gif b/bin/assets/themes/blacked/2.gif deleted file mode 100644 index 7abc8cc..0000000 Binary files a/bin/assets/themes/blacked/2.gif and /dev/null differ diff --git a/bin/assets/themes/blacked/3.gif b/bin/assets/themes/blacked/3.gif deleted file mode 100644 index 940ab7d..0000000 Binary files a/bin/assets/themes/blacked/3.gif and /dev/null differ diff --git a/bin/assets/themes/blacked/4.gif b/bin/assets/themes/blacked/4.gif deleted file mode 100644 index b513ba2..0000000 Binary files a/bin/assets/themes/blacked/4.gif and /dev/null differ diff --git a/bin/assets/themes/blacked/5.gif b/bin/assets/themes/blacked/5.gif deleted file mode 100644 index 1525d18..0000000 Binary files a/bin/assets/themes/blacked/5.gif and /dev/null differ diff --git a/bin/assets/themes/blacked/6.gif b/bin/assets/themes/blacked/6.gif deleted file mode 100644 index 9ee5e57..0000000 Binary files a/bin/assets/themes/blacked/6.gif and /dev/null differ diff --git a/bin/assets/themes/blacked/7.gif b/bin/assets/themes/blacked/7.gif deleted file mode 100644 index 1459791..0000000 Binary files a/bin/assets/themes/blacked/7.gif and /dev/null differ diff --git a/bin/assets/themes/blacked/8.gif b/bin/assets/themes/blacked/8.gif deleted file mode 100644 index 498c7cf..0000000 Binary files a/bin/assets/themes/blacked/8.gif and /dev/null differ diff --git a/bin/assets/themes/blacked/9.gif b/bin/assets/themes/blacked/9.gif deleted file mode 100644 index 663a691..0000000 Binary files a/bin/assets/themes/blacked/9.gif and /dev/null differ diff --git a/bin/assets/themes/celeb/0.gif b/bin/assets/themes/celeb/0.gif deleted file mode 100644 index b089e64..0000000 Binary files a/bin/assets/themes/celeb/0.gif and /dev/null differ diff --git a/bin/assets/themes/celeb/1.gif b/bin/assets/themes/celeb/1.gif deleted file mode 100644 index af2dd7a..0000000 Binary files a/bin/assets/themes/celeb/1.gif and /dev/null differ diff --git a/bin/assets/themes/celeb/2.gif b/bin/assets/themes/celeb/2.gif deleted file mode 100644 index 900d7d7..0000000 Binary files a/bin/assets/themes/celeb/2.gif and /dev/null differ diff --git a/bin/assets/themes/celeb/3.gif b/bin/assets/themes/celeb/3.gif deleted file mode 100644 index e507929..0000000 Binary files a/bin/assets/themes/celeb/3.gif and /dev/null differ diff --git a/bin/assets/themes/celeb/4.gif b/bin/assets/themes/celeb/4.gif deleted file mode 100644 index e690b88..0000000 Binary files a/bin/assets/themes/celeb/4.gif and /dev/null differ diff --git a/bin/assets/themes/celeb/5.gif b/bin/assets/themes/celeb/5.gif deleted file mode 100644 index 89178a3..0000000 Binary files a/bin/assets/themes/celeb/5.gif and /dev/null differ diff --git a/bin/assets/themes/celeb/6.gif b/bin/assets/themes/celeb/6.gif deleted file mode 100644 index c42d2fc..0000000 Binary files a/bin/assets/themes/celeb/6.gif and /dev/null differ diff --git a/bin/assets/themes/celeb/7.gif b/bin/assets/themes/celeb/7.gif deleted file mode 100644 index 0600bf3..0000000 Binary files a/bin/assets/themes/celeb/7.gif and /dev/null differ diff --git a/bin/assets/themes/celeb/8.gif b/bin/assets/themes/celeb/8.gif deleted file mode 100644 index 1f2c6d2..0000000 Binary files a/bin/assets/themes/celeb/8.gif and /dev/null differ diff --git a/bin/assets/themes/celeb/9.gif b/bin/assets/themes/celeb/9.gif deleted file mode 100644 index 107186b..0000000 Binary files a/bin/assets/themes/celeb/9.gif and /dev/null differ diff --git a/bin/assets/themes/channel-tan/0.gif b/bin/assets/themes/channel-tan/0.gif deleted file mode 100644 index 7c4acb8..0000000 Binary files a/bin/assets/themes/channel-tan/0.gif and /dev/null differ diff --git a/bin/assets/themes/channel-tan/1.gif b/bin/assets/themes/channel-tan/1.gif deleted file mode 100644 index 9112b43..0000000 Binary files a/bin/assets/themes/channel-tan/1.gif and /dev/null differ diff --git a/bin/assets/themes/channel-tan/2.gif b/bin/assets/themes/channel-tan/2.gif deleted file mode 100644 index db00447..0000000 Binary files a/bin/assets/themes/channel-tan/2.gif and /dev/null differ diff --git a/bin/assets/themes/channel-tan/3.gif b/bin/assets/themes/channel-tan/3.gif deleted file mode 100644 index 3a9d922..0000000 Binary files a/bin/assets/themes/channel-tan/3.gif and /dev/null differ diff --git a/bin/assets/themes/channel-tan/4.gif b/bin/assets/themes/channel-tan/4.gif deleted file mode 100644 index 92c88d3..0000000 Binary files a/bin/assets/themes/channel-tan/4.gif and /dev/null differ diff --git a/bin/assets/themes/channel-tan/5.gif b/bin/assets/themes/channel-tan/5.gif deleted file mode 100644 index eb3a782..0000000 Binary files a/bin/assets/themes/channel-tan/5.gif and /dev/null differ diff --git a/bin/assets/themes/channel-tan/6.gif b/bin/assets/themes/channel-tan/6.gif deleted file mode 100644 index 63c4de3..0000000 Binary files a/bin/assets/themes/channel-tan/6.gif and /dev/null differ diff --git a/bin/assets/themes/channel-tan/7.gif b/bin/assets/themes/channel-tan/7.gif deleted file mode 100644 index 1055ec6..0000000 Binary files a/bin/assets/themes/channel-tan/7.gif and /dev/null differ diff --git a/bin/assets/themes/channel-tan/8.gif b/bin/assets/themes/channel-tan/8.gif deleted file mode 100644 index 9e615e2..0000000 Binary files a/bin/assets/themes/channel-tan/8.gif and /dev/null differ diff --git a/bin/assets/themes/channel-tan/9.gif b/bin/assets/themes/channel-tan/9.gif deleted file mode 100644 index fede194..0000000 Binary files a/bin/assets/themes/channel-tan/9.gif and /dev/null differ diff --git a/bin/assets/themes/characterlibrary/0.gif b/bin/assets/themes/characterlibrary/0.gif deleted file mode 100644 index aaf87d1..0000000 Binary files a/bin/assets/themes/characterlibrary/0.gif and /dev/null differ diff --git a/bin/assets/themes/characterlibrary/1.gif b/bin/assets/themes/characterlibrary/1.gif deleted file mode 100644 index 7f5d247..0000000 Binary files a/bin/assets/themes/characterlibrary/1.gif and /dev/null differ diff --git a/bin/assets/themes/characterlibrary/2.gif b/bin/assets/themes/characterlibrary/2.gif deleted file mode 100644 index 58e743b..0000000 Binary files a/bin/assets/themes/characterlibrary/2.gif and /dev/null differ diff --git a/bin/assets/themes/characterlibrary/3.gif b/bin/assets/themes/characterlibrary/3.gif deleted file mode 100644 index 6ccb3bb..0000000 Binary files a/bin/assets/themes/characterlibrary/3.gif and /dev/null differ diff --git a/bin/assets/themes/characterlibrary/4.gif b/bin/assets/themes/characterlibrary/4.gif deleted file mode 100644 index 92cf591..0000000 Binary files a/bin/assets/themes/characterlibrary/4.gif and /dev/null differ diff --git a/bin/assets/themes/characterlibrary/5.gif b/bin/assets/themes/characterlibrary/5.gif deleted file mode 100644 index 0a0e59e..0000000 Binary files a/bin/assets/themes/characterlibrary/5.gif and /dev/null differ diff --git a/bin/assets/themes/characterlibrary/6.gif b/bin/assets/themes/characterlibrary/6.gif deleted file mode 100644 index f769c1a..0000000 Binary files a/bin/assets/themes/characterlibrary/6.gif and /dev/null differ diff --git a/bin/assets/themes/characterlibrary/7.gif b/bin/assets/themes/characterlibrary/7.gif deleted file mode 100644 index 123e5b6..0000000 Binary files a/bin/assets/themes/characterlibrary/7.gif and /dev/null differ diff --git a/bin/assets/themes/characterlibrary/8.gif b/bin/assets/themes/characterlibrary/8.gif deleted file mode 100644 index 3d87a45..0000000 Binary files a/bin/assets/themes/characterlibrary/8.gif and /dev/null differ diff --git a/bin/assets/themes/characterlibrary/9.gif b/bin/assets/themes/characterlibrary/9.gif deleted file mode 100644 index 87fa287..0000000 Binary files a/bin/assets/themes/characterlibrary/9.gif and /dev/null differ diff --git a/bin/assets/themes/consoletan/0.gif b/bin/assets/themes/consoletan/0.gif deleted file mode 100644 index f2c9023..0000000 Binary files a/bin/assets/themes/consoletan/0.gif and /dev/null differ diff --git a/bin/assets/themes/consoletan/1.gif b/bin/assets/themes/consoletan/1.gif deleted file mode 100644 index c078b1b..0000000 Binary files a/bin/assets/themes/consoletan/1.gif and /dev/null differ diff --git a/bin/assets/themes/consoletan/2.gif b/bin/assets/themes/consoletan/2.gif deleted file mode 100644 index 78f7b40..0000000 Binary files a/bin/assets/themes/consoletan/2.gif and /dev/null differ diff --git a/bin/assets/themes/consoletan/3.gif b/bin/assets/themes/consoletan/3.gif deleted file mode 100644 index 81a9e2b..0000000 Binary files a/bin/assets/themes/consoletan/3.gif and /dev/null differ diff --git a/bin/assets/themes/consoletan/4.gif b/bin/assets/themes/consoletan/4.gif deleted file mode 100644 index 884528a..0000000 Binary files a/bin/assets/themes/consoletan/4.gif and /dev/null differ diff --git a/bin/assets/themes/consoletan/5.gif b/bin/assets/themes/consoletan/5.gif deleted file mode 100644 index c09ecd5..0000000 Binary files a/bin/assets/themes/consoletan/5.gif and /dev/null differ diff --git a/bin/assets/themes/consoletan/6.gif b/bin/assets/themes/consoletan/6.gif deleted file mode 100644 index 0c1d12a..0000000 Binary files a/bin/assets/themes/consoletan/6.gif and /dev/null differ diff --git a/bin/assets/themes/consoletan/7.gif b/bin/assets/themes/consoletan/7.gif deleted file mode 100644 index 4707701..0000000 Binary files a/bin/assets/themes/consoletan/7.gif and /dev/null differ diff --git a/bin/assets/themes/consoletan/8.gif b/bin/assets/themes/consoletan/8.gif deleted file mode 100644 index 5cc64e3..0000000 Binary files a/bin/assets/themes/consoletan/8.gif and /dev/null differ diff --git a/bin/assets/themes/consoletan/9.gif b/bin/assets/themes/consoletan/9.gif deleted file mode 100644 index bab3eea..0000000 Binary files a/bin/assets/themes/consoletan/9.gif and /dev/null differ diff --git a/bin/assets/themes/crewbooru/0.gif b/bin/assets/themes/crewbooru/0.gif deleted file mode 100644 index afac18c..0000000 Binary files a/bin/assets/themes/crewbooru/0.gif and /dev/null differ diff --git a/bin/assets/themes/crewbooru/1.gif b/bin/assets/themes/crewbooru/1.gif deleted file mode 100644 index 73095a3..0000000 Binary files a/bin/assets/themes/crewbooru/1.gif and /dev/null differ diff --git a/bin/assets/themes/crewbooru/2.gif b/bin/assets/themes/crewbooru/2.gif deleted file mode 100644 index 77999ac..0000000 Binary files a/bin/assets/themes/crewbooru/2.gif and /dev/null differ diff --git a/bin/assets/themes/crewbooru/3.gif b/bin/assets/themes/crewbooru/3.gif deleted file mode 100644 index 4cb7fc2..0000000 Binary files a/bin/assets/themes/crewbooru/3.gif and /dev/null differ diff --git a/bin/assets/themes/crewbooru/4.gif b/bin/assets/themes/crewbooru/4.gif deleted file mode 100644 index 68012e3..0000000 Binary files a/bin/assets/themes/crewbooru/4.gif and /dev/null differ diff --git a/bin/assets/themes/crewbooru/5.gif b/bin/assets/themes/crewbooru/5.gif deleted file mode 100644 index 7f90890..0000000 Binary files a/bin/assets/themes/crewbooru/5.gif and /dev/null differ diff --git a/bin/assets/themes/crewbooru/6.gif b/bin/assets/themes/crewbooru/6.gif deleted file mode 100644 index 31b84fd..0000000 Binary files a/bin/assets/themes/crewbooru/6.gif and /dev/null differ diff --git a/bin/assets/themes/crewbooru/7.gif b/bin/assets/themes/crewbooru/7.gif deleted file mode 100644 index d1f2ea6..0000000 Binary files a/bin/assets/themes/crewbooru/7.gif and /dev/null differ diff --git a/bin/assets/themes/crewbooru/8.gif b/bin/assets/themes/crewbooru/8.gif deleted file mode 100644 index a33af0c..0000000 Binary files a/bin/assets/themes/crewbooru/8.gif and /dev/null differ diff --git a/bin/assets/themes/crewbooru/9.gif b/bin/assets/themes/crewbooru/9.gif deleted file mode 100644 index 2137d51..0000000 Binary files a/bin/assets/themes/crewbooru/9.gif and /dev/null differ diff --git a/bin/assets/themes/cripple/0.gif b/bin/assets/themes/cripple/0.gif deleted file mode 100644 index c24049c..0000000 Binary files a/bin/assets/themes/cripple/0.gif and /dev/null differ diff --git a/bin/assets/themes/cripple/1.gif b/bin/assets/themes/cripple/1.gif deleted file mode 100644 index c5f7b32..0000000 Binary files a/bin/assets/themes/cripple/1.gif and /dev/null differ diff --git a/bin/assets/themes/cripple/2.gif b/bin/assets/themes/cripple/2.gif deleted file mode 100644 index 5b7a4e0..0000000 Binary files a/bin/assets/themes/cripple/2.gif and /dev/null differ diff --git a/bin/assets/themes/cripple/3.gif b/bin/assets/themes/cripple/3.gif deleted file mode 100644 index db8f8d1..0000000 Binary files a/bin/assets/themes/cripple/3.gif and /dev/null differ diff --git a/bin/assets/themes/cripple/4.gif b/bin/assets/themes/cripple/4.gif deleted file mode 100644 index dcc3d4d..0000000 Binary files a/bin/assets/themes/cripple/4.gif and /dev/null differ diff --git a/bin/assets/themes/cripple/5.gif b/bin/assets/themes/cripple/5.gif deleted file mode 100644 index a033ab4..0000000 Binary files a/bin/assets/themes/cripple/5.gif and /dev/null differ diff --git a/bin/assets/themes/cripple/6.gif b/bin/assets/themes/cripple/6.gif deleted file mode 100644 index 4689917..0000000 Binary files a/bin/assets/themes/cripple/6.gif and /dev/null differ diff --git a/bin/assets/themes/cripple/7.gif b/bin/assets/themes/cripple/7.gif deleted file mode 100644 index 19c6570..0000000 Binary files a/bin/assets/themes/cripple/7.gif and /dev/null differ diff --git a/bin/assets/themes/cripple/8.gif b/bin/assets/themes/cripple/8.gif deleted file mode 100644 index bb9078c..0000000 Binary files a/bin/assets/themes/cripple/8.gif and /dev/null differ diff --git a/bin/assets/themes/cripple/9.gif b/bin/assets/themes/cripple/9.gif deleted file mode 100644 index 0cea99c..0000000 Binary files a/bin/assets/themes/cripple/9.gif and /dev/null differ diff --git a/bin/assets/themes/erpg/0.gif b/bin/assets/themes/erpg/0.gif deleted file mode 100644 index 0faea2b..0000000 Binary files a/bin/assets/themes/erpg/0.gif and /dev/null differ diff --git a/bin/assets/themes/erpg/1.gif b/bin/assets/themes/erpg/1.gif deleted file mode 100644 index 776b50d..0000000 Binary files a/bin/assets/themes/erpg/1.gif and /dev/null differ diff --git a/bin/assets/themes/erpg/2.gif b/bin/assets/themes/erpg/2.gif deleted file mode 100644 index 3f2fefd..0000000 Binary files a/bin/assets/themes/erpg/2.gif and /dev/null differ diff --git a/bin/assets/themes/erpg/3.gif b/bin/assets/themes/erpg/3.gif deleted file mode 100644 index b030484..0000000 Binary files a/bin/assets/themes/erpg/3.gif and /dev/null differ diff --git a/bin/assets/themes/erpg/4.gif b/bin/assets/themes/erpg/4.gif deleted file mode 100644 index a738f3b..0000000 Binary files a/bin/assets/themes/erpg/4.gif and /dev/null differ diff --git a/bin/assets/themes/erpg/5.gif b/bin/assets/themes/erpg/5.gif deleted file mode 100644 index 596fb0a..0000000 Binary files a/bin/assets/themes/erpg/5.gif and /dev/null differ diff --git a/bin/assets/themes/erpg/6.gif b/bin/assets/themes/erpg/6.gif deleted file mode 100644 index 482e867..0000000 Binary files a/bin/assets/themes/erpg/6.gif and /dev/null differ diff --git a/bin/assets/themes/erpg/7.gif b/bin/assets/themes/erpg/7.gif deleted file mode 100644 index b493af6..0000000 Binary files a/bin/assets/themes/erpg/7.gif and /dev/null differ diff --git a/bin/assets/themes/erpg/8.gif b/bin/assets/themes/erpg/8.gif deleted file mode 100644 index 12269fb..0000000 Binary files a/bin/assets/themes/erpg/8.gif and /dev/null differ diff --git a/bin/assets/themes/erpg/9.gif b/bin/assets/themes/erpg/9.gif deleted file mode 100644 index 5883c71..0000000 Binary files a/bin/assets/themes/erpg/9.gif and /dev/null differ diff --git a/bin/assets/themes/footfetishbooru/0.gif b/bin/assets/themes/footfetishbooru/0.gif deleted file mode 100644 index eb733b3..0000000 Binary files a/bin/assets/themes/footfetishbooru/0.gif and /dev/null differ diff --git a/bin/assets/themes/footfetishbooru/1.gif b/bin/assets/themes/footfetishbooru/1.gif deleted file mode 100644 index 6ef4acb..0000000 Binary files a/bin/assets/themes/footfetishbooru/1.gif and /dev/null differ diff --git a/bin/assets/themes/footfetishbooru/2.gif b/bin/assets/themes/footfetishbooru/2.gif deleted file mode 100644 index c4b41c5..0000000 Binary files a/bin/assets/themes/footfetishbooru/2.gif and /dev/null differ diff --git a/bin/assets/themes/footfetishbooru/3.gif b/bin/assets/themes/footfetishbooru/3.gif deleted file mode 100644 index 78ab7a2..0000000 Binary files a/bin/assets/themes/footfetishbooru/3.gif and /dev/null differ diff --git a/bin/assets/themes/footfetishbooru/4.gif b/bin/assets/themes/footfetishbooru/4.gif deleted file mode 100644 index a7bbcbb..0000000 Binary files a/bin/assets/themes/footfetishbooru/4.gif and /dev/null differ diff --git a/bin/assets/themes/footfetishbooru/5.gif b/bin/assets/themes/footfetishbooru/5.gif deleted file mode 100644 index 054ec49..0000000 Binary files a/bin/assets/themes/footfetishbooru/5.gif and /dev/null differ diff --git a/bin/assets/themes/footfetishbooru/6.gif b/bin/assets/themes/footfetishbooru/6.gif deleted file mode 100644 index cd316a0..0000000 Binary files a/bin/assets/themes/footfetishbooru/6.gif and /dev/null differ diff --git a/bin/assets/themes/footfetishbooru/7.gif b/bin/assets/themes/footfetishbooru/7.gif deleted file mode 100644 index c124a1c..0000000 Binary files a/bin/assets/themes/footfetishbooru/7.gif and /dev/null differ diff --git a/bin/assets/themes/footfetishbooru/8.gif b/bin/assets/themes/footfetishbooru/8.gif deleted file mode 100644 index ce0a4e0..0000000 Binary files a/bin/assets/themes/footfetishbooru/8.gif and /dev/null differ diff --git a/bin/assets/themes/footfetishbooru/9.gif b/bin/assets/themes/footfetishbooru/9.gif deleted file mode 100644 index 83d7faa..0000000 Binary files a/bin/assets/themes/footfetishbooru/9.gif and /dev/null differ diff --git a/bin/assets/themes/g/0.gif b/bin/assets/themes/g/0.gif deleted file mode 100644 index d925ee1..0000000 Binary files a/bin/assets/themes/g/0.gif and /dev/null differ diff --git a/bin/assets/themes/g/1.gif b/bin/assets/themes/g/1.gif deleted file mode 100644 index 30853ea..0000000 Binary files a/bin/assets/themes/g/1.gif and /dev/null differ diff --git a/bin/assets/themes/g/2.gif b/bin/assets/themes/g/2.gif deleted file mode 100644 index d8e8c6d..0000000 Binary files a/bin/assets/themes/g/2.gif and /dev/null differ diff --git a/bin/assets/themes/g/3.gif b/bin/assets/themes/g/3.gif deleted file mode 100644 index a4ef8d3..0000000 Binary files a/bin/assets/themes/g/3.gif and /dev/null differ diff --git a/bin/assets/themes/g/4.gif b/bin/assets/themes/g/4.gif deleted file mode 100644 index fe2a52f..0000000 Binary files a/bin/assets/themes/g/4.gif and /dev/null differ diff --git a/bin/assets/themes/g/5.gif b/bin/assets/themes/g/5.gif deleted file mode 100644 index 15ac956..0000000 Binary files a/bin/assets/themes/g/5.gif and /dev/null differ diff --git a/bin/assets/themes/g/6.gif b/bin/assets/themes/g/6.gif deleted file mode 100644 index ba1163d..0000000 Binary files a/bin/assets/themes/g/6.gif and /dev/null differ diff --git a/bin/assets/themes/g/7.gif b/bin/assets/themes/g/7.gif deleted file mode 100644 index 436c9a5..0000000 Binary files a/bin/assets/themes/g/7.gif and /dev/null differ diff --git a/bin/assets/themes/g/8.gif b/bin/assets/themes/g/8.gif deleted file mode 100644 index e57a33a..0000000 Binary files a/bin/assets/themes/g/8.gif and /dev/null differ diff --git a/bin/assets/themes/g/9.gif b/bin/assets/themes/g/9.gif deleted file mode 100644 index 2131010..0000000 Binary files a/bin/assets/themes/g/9.gif and /dev/null differ diff --git a/bin/assets/themes/gelbooru-h/0.png b/bin/assets/themes/gelbooru-h/0.png deleted file mode 100644 index 695b5a4..0000000 Binary files a/bin/assets/themes/gelbooru-h/0.png and /dev/null differ diff --git a/bin/assets/themes/gelbooru-h/1.png b/bin/assets/themes/gelbooru-h/1.png deleted file mode 100644 index cca7eb3..0000000 Binary files a/bin/assets/themes/gelbooru-h/1.png and /dev/null differ diff --git a/bin/assets/themes/gelbooru-h/2.png b/bin/assets/themes/gelbooru-h/2.png deleted file mode 100644 index b1bab7a..0000000 Binary files a/bin/assets/themes/gelbooru-h/2.png and /dev/null differ diff --git a/bin/assets/themes/gelbooru-h/3.png b/bin/assets/themes/gelbooru-h/3.png deleted file mode 100644 index f5a5671..0000000 Binary files a/bin/assets/themes/gelbooru-h/3.png and /dev/null differ diff --git a/bin/assets/themes/gelbooru-h/4.png b/bin/assets/themes/gelbooru-h/4.png deleted file mode 100644 index 4707d9e..0000000 Binary files a/bin/assets/themes/gelbooru-h/4.png and /dev/null differ diff --git a/bin/assets/themes/gelbooru-h/5.png b/bin/assets/themes/gelbooru-h/5.png deleted file mode 100644 index b925607..0000000 Binary files a/bin/assets/themes/gelbooru-h/5.png and /dev/null differ diff --git a/bin/assets/themes/gelbooru-h/6.png b/bin/assets/themes/gelbooru-h/6.png deleted file mode 100644 index ce30385..0000000 Binary files a/bin/assets/themes/gelbooru-h/6.png and /dev/null differ diff --git a/bin/assets/themes/gelbooru-h/7.png b/bin/assets/themes/gelbooru-h/7.png deleted file mode 100644 index b2e7bcc..0000000 Binary files a/bin/assets/themes/gelbooru-h/7.png and /dev/null differ diff --git a/bin/assets/themes/gelbooru-h/8.png b/bin/assets/themes/gelbooru-h/8.png deleted file mode 100644 index 213df99..0000000 Binary files a/bin/assets/themes/gelbooru-h/8.png and /dev/null differ diff --git a/bin/assets/themes/gelbooru-h/9.png b/bin/assets/themes/gelbooru-h/9.png deleted file mode 100644 index edf3d51..0000000 Binary files a/bin/assets/themes/gelbooru-h/9.png and /dev/null differ diff --git a/bin/assets/themes/gelbooru/0.gif b/bin/assets/themes/gelbooru/0.gif deleted file mode 100644 index 6c348e5..0000000 Binary files a/bin/assets/themes/gelbooru/0.gif and /dev/null differ diff --git a/bin/assets/themes/gelbooru/1.gif b/bin/assets/themes/gelbooru/1.gif deleted file mode 100644 index 1c33ee3..0000000 Binary files a/bin/assets/themes/gelbooru/1.gif and /dev/null differ diff --git a/bin/assets/themes/gelbooru/2.gif b/bin/assets/themes/gelbooru/2.gif deleted file mode 100644 index e6df16c..0000000 Binary files a/bin/assets/themes/gelbooru/2.gif and /dev/null differ diff --git a/bin/assets/themes/gelbooru/3.gif b/bin/assets/themes/gelbooru/3.gif deleted file mode 100644 index 3ee1bcd..0000000 Binary files a/bin/assets/themes/gelbooru/3.gif and /dev/null differ diff --git a/bin/assets/themes/gelbooru/4.gif b/bin/assets/themes/gelbooru/4.gif deleted file mode 100644 index aabf121..0000000 Binary files a/bin/assets/themes/gelbooru/4.gif and /dev/null differ diff --git a/bin/assets/themes/gelbooru/5.gif b/bin/assets/themes/gelbooru/5.gif deleted file mode 100644 index 46f4940..0000000 Binary files a/bin/assets/themes/gelbooru/5.gif and /dev/null differ diff --git a/bin/assets/themes/gelbooru/6.gif b/bin/assets/themes/gelbooru/6.gif deleted file mode 100644 index cd316a0..0000000 Binary files a/bin/assets/themes/gelbooru/6.gif and /dev/null differ diff --git a/bin/assets/themes/gelbooru/7.gif b/bin/assets/themes/gelbooru/7.gif deleted file mode 100644 index 6019a72..0000000 Binary files a/bin/assets/themes/gelbooru/7.gif and /dev/null differ diff --git a/bin/assets/themes/gelbooru/8.gif b/bin/assets/themes/gelbooru/8.gif deleted file mode 100644 index 9baa78f..0000000 Binary files a/bin/assets/themes/gelbooru/8.gif and /dev/null differ diff --git a/bin/assets/themes/gelbooru/9.gif b/bin/assets/themes/gelbooru/9.gif deleted file mode 100644 index 1e3f85f..0000000 Binary files a/bin/assets/themes/gelbooru/9.gif and /dev/null differ diff --git a/bin/assets/themes/haniho/0.gif b/bin/assets/themes/haniho/0.gif deleted file mode 100644 index 143754a..0000000 Binary files a/bin/assets/themes/haniho/0.gif and /dev/null differ diff --git a/bin/assets/themes/haniho/1.gif b/bin/assets/themes/haniho/1.gif deleted file mode 100644 index 32f2126..0000000 Binary files a/bin/assets/themes/haniho/1.gif and /dev/null differ diff --git a/bin/assets/themes/haniho/2.gif b/bin/assets/themes/haniho/2.gif deleted file mode 100644 index c69dcb6..0000000 Binary files a/bin/assets/themes/haniho/2.gif and /dev/null differ diff --git a/bin/assets/themes/haniho/3.gif b/bin/assets/themes/haniho/3.gif deleted file mode 100644 index 55d22ea..0000000 Binary files a/bin/assets/themes/haniho/3.gif and /dev/null differ diff --git a/bin/assets/themes/haniho/4.gif b/bin/assets/themes/haniho/4.gif deleted file mode 100644 index 5a4245e..0000000 Binary files a/bin/assets/themes/haniho/4.gif and /dev/null differ diff --git a/bin/assets/themes/haniho/5.gif b/bin/assets/themes/haniho/5.gif deleted file mode 100644 index 4c750e3..0000000 Binary files a/bin/assets/themes/haniho/5.gif and /dev/null differ diff --git a/bin/assets/themes/haniho/6.gif b/bin/assets/themes/haniho/6.gif deleted file mode 100644 index 3b64a19..0000000 Binary files a/bin/assets/themes/haniho/6.gif and /dev/null differ diff --git a/bin/assets/themes/haniho/7.gif b/bin/assets/themes/haniho/7.gif deleted file mode 100644 index 0a542b6..0000000 Binary files a/bin/assets/themes/haniho/7.gif and /dev/null differ diff --git a/bin/assets/themes/haniho/8.gif b/bin/assets/themes/haniho/8.gif deleted file mode 100644 index 5136185..0000000 Binary files a/bin/assets/themes/haniho/8.gif and /dev/null differ diff --git a/bin/assets/themes/haniho/9.gif b/bin/assets/themes/haniho/9.gif deleted file mode 100644 index efdf17a..0000000 Binary files a/bin/assets/themes/haniho/9.gif and /dev/null differ diff --git a/bin/assets/themes/hgoon/0.gif b/bin/assets/themes/hgoon/0.gif deleted file mode 100644 index 2627acc..0000000 Binary files a/bin/assets/themes/hgoon/0.gif and /dev/null differ diff --git a/bin/assets/themes/hgoon/1.gif b/bin/assets/themes/hgoon/1.gif deleted file mode 100644 index 98f49df..0000000 Binary files a/bin/assets/themes/hgoon/1.gif and /dev/null differ diff --git a/bin/assets/themes/hgoon/2.gif b/bin/assets/themes/hgoon/2.gif deleted file mode 100644 index 07169cd..0000000 Binary files a/bin/assets/themes/hgoon/2.gif and /dev/null differ diff --git a/bin/assets/themes/hgoon/3.gif b/bin/assets/themes/hgoon/3.gif deleted file mode 100644 index bdaed34..0000000 Binary files a/bin/assets/themes/hgoon/3.gif and /dev/null differ diff --git a/bin/assets/themes/hgoon/4.gif b/bin/assets/themes/hgoon/4.gif deleted file mode 100644 index 8909143..0000000 Binary files a/bin/assets/themes/hgoon/4.gif and /dev/null differ diff --git a/bin/assets/themes/hgoon/5.gif b/bin/assets/themes/hgoon/5.gif deleted file mode 100644 index 710dac9..0000000 Binary files a/bin/assets/themes/hgoon/5.gif and /dev/null differ diff --git a/bin/assets/themes/hgoon/6.gif b/bin/assets/themes/hgoon/6.gif deleted file mode 100644 index a10b952..0000000 Binary files a/bin/assets/themes/hgoon/6.gif and /dev/null differ diff --git a/bin/assets/themes/hgoon/7.gif b/bin/assets/themes/hgoon/7.gif deleted file mode 100644 index c2bd9e1..0000000 Binary files a/bin/assets/themes/hgoon/7.gif and /dev/null differ diff --git a/bin/assets/themes/hgoon/8.gif b/bin/assets/themes/hgoon/8.gif deleted file mode 100644 index e7716a5..0000000 Binary files a/bin/assets/themes/hgoon/8.gif and /dev/null differ diff --git a/bin/assets/themes/hgoon/9.gif b/bin/assets/themes/hgoon/9.gif deleted file mode 100644 index 5e848d5..0000000 Binary files a/bin/assets/themes/hgoon/9.gif and /dev/null differ diff --git a/bin/assets/themes/hypnohub/0.gif b/bin/assets/themes/hypnohub/0.gif deleted file mode 100644 index 99d83c0..0000000 --- a/bin/assets/themes/hypnohub/0.gif +++ /dev/null @@ -1,7 +0,0 @@ - -404 Not Found - -

404 Not Found

-
nginx
- - diff --git a/bin/assets/themes/hypnohub/1.gif b/bin/assets/themes/hypnohub/1.gif deleted file mode 100644 index 99d83c0..0000000 --- a/bin/assets/themes/hypnohub/1.gif +++ /dev/null @@ -1,7 +0,0 @@ - -404 Not Found - -

404 Not Found

-
nginx
- - diff --git a/bin/assets/themes/hypnohub/2.gif b/bin/assets/themes/hypnohub/2.gif deleted file mode 100644 index 99d83c0..0000000 --- a/bin/assets/themes/hypnohub/2.gif +++ /dev/null @@ -1,7 +0,0 @@ - -404 Not Found - -

404 Not Found

-
nginx
- - diff --git a/bin/assets/themes/hypnohub/3.gif b/bin/assets/themes/hypnohub/3.gif deleted file mode 100644 index 99d83c0..0000000 --- a/bin/assets/themes/hypnohub/3.gif +++ /dev/null @@ -1,7 +0,0 @@ - -404 Not Found - -

404 Not Found

-
nginx
- - diff --git a/bin/assets/themes/hypnohub/4.gif b/bin/assets/themes/hypnohub/4.gif deleted file mode 100644 index 99d83c0..0000000 --- a/bin/assets/themes/hypnohub/4.gif +++ /dev/null @@ -1,7 +0,0 @@ - -404 Not Found - -

404 Not Found

-
nginx
- - diff --git a/bin/assets/themes/hypnohub/5.gif b/bin/assets/themes/hypnohub/5.gif deleted file mode 100644 index 99d83c0..0000000 --- a/bin/assets/themes/hypnohub/5.gif +++ /dev/null @@ -1,7 +0,0 @@ - -404 Not Found - -

404 Not Found

-
nginx
- - diff --git a/bin/assets/themes/hypnohub/6.gif b/bin/assets/themes/hypnohub/6.gif deleted file mode 100644 index 99d83c0..0000000 --- a/bin/assets/themes/hypnohub/6.gif +++ /dev/null @@ -1,7 +0,0 @@ - -404 Not Found - -

404 Not Found

-
nginx
- - diff --git a/bin/assets/themes/hypnohub/7.gif b/bin/assets/themes/hypnohub/7.gif deleted file mode 100644 index 99d83c0..0000000 --- a/bin/assets/themes/hypnohub/7.gif +++ /dev/null @@ -1,7 +0,0 @@ - -404 Not Found - -

404 Not Found

-
nginx
- - diff --git a/bin/assets/themes/hypnohub/8.gif b/bin/assets/themes/hypnohub/8.gif deleted file mode 100644 index 99d83c0..0000000 --- a/bin/assets/themes/hypnohub/8.gif +++ /dev/null @@ -1,7 +0,0 @@ - -404 Not Found - -

404 Not Found

-
nginx
- - diff --git a/bin/assets/themes/hypnohub/9.gif b/bin/assets/themes/hypnohub/9.gif deleted file mode 100644 index 99d83c0..0000000 --- a/bin/assets/themes/hypnohub/9.gif +++ /dev/null @@ -1,7 +0,0 @@ - -404 Not Found - -

404 Not Found

-
nginx
- - diff --git a/bin/assets/themes/indiegame/0.gif b/bin/assets/themes/indiegame/0.gif deleted file mode 100644 index 7d0ccbe..0000000 Binary files a/bin/assets/themes/indiegame/0.gif and /dev/null differ diff --git a/bin/assets/themes/indiegame/1.gif b/bin/assets/themes/indiegame/1.gif deleted file mode 100644 index 0ef99e3..0000000 Binary files a/bin/assets/themes/indiegame/1.gif and /dev/null differ diff --git a/bin/assets/themes/indiegame/2.gif b/bin/assets/themes/indiegame/2.gif deleted file mode 100644 index 6529a20..0000000 Binary files a/bin/assets/themes/indiegame/2.gif and /dev/null differ diff --git a/bin/assets/themes/indiegame/3.gif b/bin/assets/themes/indiegame/3.gif deleted file mode 100644 index b4ca678..0000000 Binary files a/bin/assets/themes/indiegame/3.gif and /dev/null differ diff --git a/bin/assets/themes/indiegame/4.gif b/bin/assets/themes/indiegame/4.gif deleted file mode 100644 index b7df53b..0000000 Binary files a/bin/assets/themes/indiegame/4.gif and /dev/null differ diff --git a/bin/assets/themes/indiegame/5.gif b/bin/assets/themes/indiegame/5.gif deleted file mode 100644 index fcea12a..0000000 Binary files a/bin/assets/themes/indiegame/5.gif and /dev/null differ diff --git a/bin/assets/themes/indiegame/6.gif b/bin/assets/themes/indiegame/6.gif deleted file mode 100644 index fc974ee..0000000 Binary files a/bin/assets/themes/indiegame/6.gif and /dev/null differ diff --git a/bin/assets/themes/indiegame/7.gif b/bin/assets/themes/indiegame/7.gif deleted file mode 100644 index c3a3861..0000000 Binary files a/bin/assets/themes/indiegame/7.gif and /dev/null differ diff --git a/bin/assets/themes/indiegame/8.gif b/bin/assets/themes/indiegame/8.gif deleted file mode 100644 index add164f..0000000 Binary files a/bin/assets/themes/indiegame/8.gif and /dev/null differ diff --git a/bin/assets/themes/indiegame/9.gif b/bin/assets/themes/indiegame/9.gif deleted file mode 100644 index ca482cb..0000000 Binary files a/bin/assets/themes/indiegame/9.gif and /dev/null differ diff --git a/bin/assets/themes/insert_db.py b/bin/assets/themes/insert_db.py deleted file mode 100644 index 6f3583c..0000000 --- a/bin/assets/themes/insert_db.py +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env python3 -# -- coding:utf-8 -- -# @Author: markushammered@gmail.com -# @Development Tool: PyCharm -# @Create Time: 2022/2/8 -# @File Name: insert_db.py - - -import os -import base64 -from PIL import Image -import sqlite3 - -conn = sqlite3.connect('../theme.db') -cursor = conn.cursor() - - -def get_size(file): - img = Image.open(file) - return img.size - - -dir_name = './rfck' -lst = os.listdir(dir_name) -c = 0 -for i in lst: - w, h = get_size(f'{dir_name}/{i}') - type_ = i.split('.')[-1] - if type_ == 'png': - type_ = 'jepg' - else: - type_ = 'gif' - with open(f'./{dir_name}/{i}', 'rb') as f: - base64_data = base64.b64encode(f.read()) - base64_code = f'data:image/{type_};base64,' + base64_data.decode('utf-8') - cursor.execute('insert into rfck values(?, ?, ?, ?)', (c, base64_code, w, h)) - conn.commit() - c += 1 - diff --git a/bin/assets/themes/kanayabooru/0.gif b/bin/assets/themes/kanayabooru/0.gif deleted file mode 100644 index 285f2c1..0000000 Binary files a/bin/assets/themes/kanayabooru/0.gif and /dev/null differ diff --git a/bin/assets/themes/kanayabooru/1.gif b/bin/assets/themes/kanayabooru/1.gif deleted file mode 100644 index 3707ce0..0000000 Binary files a/bin/assets/themes/kanayabooru/1.gif and /dev/null differ diff --git a/bin/assets/themes/kanayabooru/2.gif b/bin/assets/themes/kanayabooru/2.gif deleted file mode 100644 index 625bca3..0000000 Binary files a/bin/assets/themes/kanayabooru/2.gif and /dev/null differ diff --git a/bin/assets/themes/kanayabooru/3.gif b/bin/assets/themes/kanayabooru/3.gif deleted file mode 100644 index 5f9e798..0000000 Binary files a/bin/assets/themes/kanayabooru/3.gif and /dev/null differ diff --git a/bin/assets/themes/kanayabooru/4.gif b/bin/assets/themes/kanayabooru/4.gif deleted file mode 100644 index 47c14e1..0000000 Binary files a/bin/assets/themes/kanayabooru/4.gif and /dev/null differ diff --git a/bin/assets/themes/kanayabooru/5.gif b/bin/assets/themes/kanayabooru/5.gif deleted file mode 100644 index 0cc1db7..0000000 Binary files a/bin/assets/themes/kanayabooru/5.gif and /dev/null differ diff --git a/bin/assets/themes/kanayabooru/6.gif b/bin/assets/themes/kanayabooru/6.gif deleted file mode 100644 index d976e32..0000000 Binary files a/bin/assets/themes/kanayabooru/6.gif and /dev/null differ diff --git a/bin/assets/themes/kanayabooru/7.gif b/bin/assets/themes/kanayabooru/7.gif deleted file mode 100644 index 4f33425..0000000 Binary files a/bin/assets/themes/kanayabooru/7.gif and /dev/null differ diff --git a/bin/assets/themes/kanayabooru/8.gif b/bin/assets/themes/kanayabooru/8.gif deleted file mode 100644 index 0754f1e..0000000 Binary files a/bin/assets/themes/kanayabooru/8.gif and /dev/null differ diff --git a/bin/assets/themes/kanayabooru/9.gif b/bin/assets/themes/kanayabooru/9.gif deleted file mode 100644 index 2824acb..0000000 Binary files a/bin/assets/themes/kanayabooru/9.gif and /dev/null differ diff --git a/bin/assets/themes/koe/0.gif b/bin/assets/themes/koe/0.gif deleted file mode 100644 index b4f7357..0000000 Binary files a/bin/assets/themes/koe/0.gif and /dev/null differ diff --git a/bin/assets/themes/koe/1.gif b/bin/assets/themes/koe/1.gif deleted file mode 100644 index e0bd727..0000000 Binary files a/bin/assets/themes/koe/1.gif and /dev/null differ diff --git a/bin/assets/themes/koe/2.gif b/bin/assets/themes/koe/2.gif deleted file mode 100644 index 0480e41..0000000 Binary files a/bin/assets/themes/koe/2.gif and /dev/null differ diff --git a/bin/assets/themes/koe/3.gif b/bin/assets/themes/koe/3.gif deleted file mode 100644 index 813c4fa..0000000 Binary files a/bin/assets/themes/koe/3.gif and /dev/null differ diff --git a/bin/assets/themes/koe/4.gif b/bin/assets/themes/koe/4.gif deleted file mode 100644 index 69fdfe0..0000000 Binary files a/bin/assets/themes/koe/4.gif and /dev/null differ diff --git a/bin/assets/themes/koe/5.gif b/bin/assets/themes/koe/5.gif deleted file mode 100644 index 2f7382c..0000000 Binary files a/bin/assets/themes/koe/5.gif and /dev/null differ diff --git a/bin/assets/themes/koe/6.gif b/bin/assets/themes/koe/6.gif deleted file mode 100644 index d806ed6..0000000 Binary files a/bin/assets/themes/koe/6.gif and /dev/null differ diff --git a/bin/assets/themes/koe/7.gif b/bin/assets/themes/koe/7.gif deleted file mode 100644 index 3aef98d..0000000 Binary files a/bin/assets/themes/koe/7.gif and /dev/null differ diff --git a/bin/assets/themes/koe/8.gif b/bin/assets/themes/koe/8.gif deleted file mode 100644 index 5fc0447..0000000 Binary files a/bin/assets/themes/koe/8.gif and /dev/null differ diff --git a/bin/assets/themes/koe/9.gif b/bin/assets/themes/koe/9.gif deleted file mode 100644 index f0a08c1..0000000 Binary files a/bin/assets/themes/koe/9.gif and /dev/null differ diff --git a/bin/assets/themes/lefty/0.gif b/bin/assets/themes/lefty/0.gif deleted file mode 100644 index ef49de0..0000000 Binary files a/bin/assets/themes/lefty/0.gif and /dev/null differ diff --git a/bin/assets/themes/lefty/1.gif b/bin/assets/themes/lefty/1.gif deleted file mode 100644 index 1e66e0f..0000000 Binary files a/bin/assets/themes/lefty/1.gif and /dev/null differ diff --git a/bin/assets/themes/lefty/2.gif b/bin/assets/themes/lefty/2.gif deleted file mode 100644 index 576b82a..0000000 Binary files a/bin/assets/themes/lefty/2.gif and /dev/null differ diff --git a/bin/assets/themes/lefty/3.gif b/bin/assets/themes/lefty/3.gif deleted file mode 100644 index ed09192..0000000 Binary files a/bin/assets/themes/lefty/3.gif and /dev/null differ diff --git a/bin/assets/themes/lefty/4.gif b/bin/assets/themes/lefty/4.gif deleted file mode 100644 index 7c377ef..0000000 Binary files a/bin/assets/themes/lefty/4.gif and /dev/null differ diff --git a/bin/assets/themes/lefty/5.gif b/bin/assets/themes/lefty/5.gif deleted file mode 100644 index ce3285f..0000000 Binary files a/bin/assets/themes/lefty/5.gif and /dev/null differ diff --git a/bin/assets/themes/lefty/6.gif b/bin/assets/themes/lefty/6.gif deleted file mode 100644 index 8ae8508..0000000 Binary files a/bin/assets/themes/lefty/6.gif and /dev/null differ diff --git a/bin/assets/themes/lefty/7.gif b/bin/assets/themes/lefty/7.gif deleted file mode 100644 index 45f19d5..0000000 Binary files a/bin/assets/themes/lefty/7.gif and /dev/null differ diff --git a/bin/assets/themes/lefty/8.gif b/bin/assets/themes/lefty/8.gif deleted file mode 100644 index 7747a19..0000000 Binary files a/bin/assets/themes/lefty/8.gif and /dev/null differ diff --git a/bin/assets/themes/lefty/9.gif b/bin/assets/themes/lefty/9.gif deleted file mode 100644 index d2b445e..0000000 Binary files a/bin/assets/themes/lefty/9.gif and /dev/null differ diff --git a/bin/assets/themes/moebooru-h/0.png b/bin/assets/themes/moebooru-h/0.png deleted file mode 100644 index 28fc599..0000000 Binary files a/bin/assets/themes/moebooru-h/0.png and /dev/null differ diff --git a/bin/assets/themes/moebooru-h/1.png b/bin/assets/themes/moebooru-h/1.png deleted file mode 100644 index 38289ea..0000000 Binary files a/bin/assets/themes/moebooru-h/1.png and /dev/null differ diff --git a/bin/assets/themes/moebooru-h/2.png b/bin/assets/themes/moebooru-h/2.png deleted file mode 100644 index cd59c1d..0000000 Binary files a/bin/assets/themes/moebooru-h/2.png and /dev/null differ diff --git a/bin/assets/themes/moebooru-h/3.png b/bin/assets/themes/moebooru-h/3.png deleted file mode 100644 index af847d0..0000000 Binary files a/bin/assets/themes/moebooru-h/3.png and /dev/null differ diff --git a/bin/assets/themes/moebooru-h/4.png b/bin/assets/themes/moebooru-h/4.png deleted file mode 100644 index 77f31bd..0000000 Binary files a/bin/assets/themes/moebooru-h/4.png and /dev/null differ diff --git a/bin/assets/themes/moebooru-h/5.png b/bin/assets/themes/moebooru-h/5.png deleted file mode 100644 index 2aab6a5..0000000 Binary files a/bin/assets/themes/moebooru-h/5.png and /dev/null differ diff --git a/bin/assets/themes/moebooru-h/6.png b/bin/assets/themes/moebooru-h/6.png deleted file mode 100644 index f66dbd2..0000000 Binary files a/bin/assets/themes/moebooru-h/6.png and /dev/null differ diff --git a/bin/assets/themes/moebooru-h/7.png b/bin/assets/themes/moebooru-h/7.png deleted file mode 100644 index 40cf378..0000000 Binary files a/bin/assets/themes/moebooru-h/7.png and /dev/null differ diff --git a/bin/assets/themes/moebooru-h/8.png b/bin/assets/themes/moebooru-h/8.png deleted file mode 100644 index 5c5d2dd..0000000 Binary files a/bin/assets/themes/moebooru-h/8.png and /dev/null differ diff --git a/bin/assets/themes/moebooru-h/9.png b/bin/assets/themes/moebooru-h/9.png deleted file mode 100644 index 40978b8..0000000 Binary files a/bin/assets/themes/moebooru-h/9.png and /dev/null differ diff --git a/bin/assets/themes/moebooru/0.gif b/bin/assets/themes/moebooru/0.gif deleted file mode 100644 index 385282d..0000000 Binary files a/bin/assets/themes/moebooru/0.gif and /dev/null differ diff --git a/bin/assets/themes/moebooru/1.gif b/bin/assets/themes/moebooru/1.gif deleted file mode 100644 index 183fabe..0000000 Binary files a/bin/assets/themes/moebooru/1.gif and /dev/null differ diff --git a/bin/assets/themes/moebooru/2.gif b/bin/assets/themes/moebooru/2.gif deleted file mode 100644 index 53459fb..0000000 Binary files a/bin/assets/themes/moebooru/2.gif and /dev/null differ diff --git a/bin/assets/themes/moebooru/3.gif b/bin/assets/themes/moebooru/3.gif deleted file mode 100644 index ea0398f..0000000 Binary files a/bin/assets/themes/moebooru/3.gif and /dev/null differ diff --git a/bin/assets/themes/moebooru/4.gif b/bin/assets/themes/moebooru/4.gif deleted file mode 100644 index fa0db17..0000000 Binary files a/bin/assets/themes/moebooru/4.gif and /dev/null differ diff --git a/bin/assets/themes/moebooru/5.gif b/bin/assets/themes/moebooru/5.gif deleted file mode 100644 index 348f202..0000000 Binary files a/bin/assets/themes/moebooru/5.gif and /dev/null differ diff --git a/bin/assets/themes/moebooru/6.gif b/bin/assets/themes/moebooru/6.gif deleted file mode 100644 index a84ab8c..0000000 Binary files a/bin/assets/themes/moebooru/6.gif and /dev/null differ diff --git a/bin/assets/themes/moebooru/7.gif b/bin/assets/themes/moebooru/7.gif deleted file mode 100644 index 784e7d0..0000000 Binary files a/bin/assets/themes/moebooru/7.gif and /dev/null differ diff --git a/bin/assets/themes/moebooru/8.gif b/bin/assets/themes/moebooru/8.gif deleted file mode 100644 index ffc3b4a..0000000 Binary files a/bin/assets/themes/moebooru/8.gif and /dev/null differ diff --git a/bin/assets/themes/moebooru/9.gif b/bin/assets/themes/moebooru/9.gif deleted file mode 100644 index 4b866c5..0000000 Binary files a/bin/assets/themes/moebooru/9.gif and /dev/null differ diff --git a/bin/assets/themes/proton/0.gif b/bin/assets/themes/proton/0.gif deleted file mode 100644 index 237b716..0000000 Binary files a/bin/assets/themes/proton/0.gif and /dev/null differ diff --git a/bin/assets/themes/proton/1.gif b/bin/assets/themes/proton/1.gif deleted file mode 100644 index 3e3e662..0000000 Binary files a/bin/assets/themes/proton/1.gif and /dev/null differ diff --git a/bin/assets/themes/proton/2.gif b/bin/assets/themes/proton/2.gif deleted file mode 100644 index 11f33ff..0000000 Binary files a/bin/assets/themes/proton/2.gif and /dev/null differ diff --git a/bin/assets/themes/proton/3.gif b/bin/assets/themes/proton/3.gif deleted file mode 100644 index fcd7f2e..0000000 Binary files a/bin/assets/themes/proton/3.gif and /dev/null differ diff --git a/bin/assets/themes/proton/4.gif b/bin/assets/themes/proton/4.gif deleted file mode 100644 index 77048df..0000000 Binary files a/bin/assets/themes/proton/4.gif and /dev/null differ diff --git a/bin/assets/themes/proton/5.gif b/bin/assets/themes/proton/5.gif deleted file mode 100644 index 3e2facd..0000000 Binary files a/bin/assets/themes/proton/5.gif and /dev/null differ diff --git a/bin/assets/themes/proton/6.gif b/bin/assets/themes/proton/6.gif deleted file mode 100644 index 006218d..0000000 Binary files a/bin/assets/themes/proton/6.gif and /dev/null differ diff --git a/bin/assets/themes/proton/7.gif b/bin/assets/themes/proton/7.gif deleted file mode 100644 index 8ebf9cd..0000000 Binary files a/bin/assets/themes/proton/7.gif and /dev/null differ diff --git a/bin/assets/themes/proton/8.gif b/bin/assets/themes/proton/8.gif deleted file mode 100644 index 9b2e699..0000000 Binary files a/bin/assets/themes/proton/8.gif and /dev/null differ diff --git a/bin/assets/themes/proton/9.gif b/bin/assets/themes/proton/9.gif deleted file mode 100644 index 3f829cf..0000000 Binary files a/bin/assets/themes/proton/9.gif and /dev/null differ diff --git a/bin/assets/themes/rfck/0.gif b/bin/assets/themes/rfck/0.gif deleted file mode 100644 index d7e342c..0000000 Binary files a/bin/assets/themes/rfck/0.gif and /dev/null differ diff --git a/bin/assets/themes/rfck/1.gif b/bin/assets/themes/rfck/1.gif deleted file mode 100644 index c5dfb12..0000000 Binary files a/bin/assets/themes/rfck/1.gif and /dev/null differ diff --git a/bin/assets/themes/rfck/2.gif b/bin/assets/themes/rfck/2.gif deleted file mode 100644 index e32a7ac..0000000 Binary files a/bin/assets/themes/rfck/2.gif and /dev/null differ diff --git a/bin/assets/themes/rfck/3.gif b/bin/assets/themes/rfck/3.gif deleted file mode 100644 index bd0fa07..0000000 Binary files a/bin/assets/themes/rfck/3.gif and /dev/null differ diff --git a/bin/assets/themes/rfck/4.gif b/bin/assets/themes/rfck/4.gif deleted file mode 100644 index 9ef3702..0000000 Binary files a/bin/assets/themes/rfck/4.gif and /dev/null differ diff --git a/bin/assets/themes/rfck/5.gif b/bin/assets/themes/rfck/5.gif deleted file mode 100644 index 51be9bd..0000000 Binary files a/bin/assets/themes/rfck/5.gif and /dev/null differ diff --git a/bin/assets/themes/rfck/6.gif b/bin/assets/themes/rfck/6.gif deleted file mode 100644 index 0846a0f..0000000 Binary files a/bin/assets/themes/rfck/6.gif and /dev/null differ diff --git a/bin/assets/themes/rfck/7.gif b/bin/assets/themes/rfck/7.gif deleted file mode 100644 index 2bdbc66..0000000 Binary files a/bin/assets/themes/rfck/7.gif and /dev/null differ diff --git a/bin/assets/themes/rfck/8.gif b/bin/assets/themes/rfck/8.gif deleted file mode 100644 index e262646..0000000 Binary files a/bin/assets/themes/rfck/8.gif and /dev/null differ diff --git a/bin/assets/themes/rfck/9.gif b/bin/assets/themes/rfck/9.gif deleted file mode 100644 index e008e2e..0000000 Binary files a/bin/assets/themes/rfck/9.gif and /dev/null differ diff --git a/bin/assets/themes/rule34/0.gif b/bin/assets/themes/rule34/0.gif deleted file mode 100644 index c3016ac..0000000 Binary files a/bin/assets/themes/rule34/0.gif and /dev/null differ diff --git a/bin/assets/themes/rule34/1.gif b/bin/assets/themes/rule34/1.gif deleted file mode 100644 index b9df576..0000000 Binary files a/bin/assets/themes/rule34/1.gif and /dev/null differ diff --git a/bin/assets/themes/rule34/2.gif b/bin/assets/themes/rule34/2.gif deleted file mode 100644 index 9481753..0000000 Binary files a/bin/assets/themes/rule34/2.gif and /dev/null differ diff --git a/bin/assets/themes/rule34/3.gif b/bin/assets/themes/rule34/3.gif deleted file mode 100644 index d800f09..0000000 Binary files a/bin/assets/themes/rule34/3.gif and /dev/null differ diff --git a/bin/assets/themes/rule34/4.gif b/bin/assets/themes/rule34/4.gif deleted file mode 100644 index db4a66f..0000000 Binary files a/bin/assets/themes/rule34/4.gif and /dev/null differ diff --git a/bin/assets/themes/rule34/5.gif b/bin/assets/themes/rule34/5.gif deleted file mode 100644 index 58a1448..0000000 Binary files a/bin/assets/themes/rule34/5.gif and /dev/null differ diff --git a/bin/assets/themes/rule34/6.gif b/bin/assets/themes/rule34/6.gif deleted file mode 100644 index 9c914c1..0000000 Binary files a/bin/assets/themes/rule34/6.gif and /dev/null differ diff --git a/bin/assets/themes/rule34/7.gif b/bin/assets/themes/rule34/7.gif deleted file mode 100644 index dacbb58..0000000 Binary files a/bin/assets/themes/rule34/7.gif and /dev/null differ diff --git a/bin/assets/themes/rule34/8.gif b/bin/assets/themes/rule34/8.gif deleted file mode 100644 index 056b277..0000000 Binary files a/bin/assets/themes/rule34/8.gif and /dev/null differ diff --git a/bin/assets/themes/rule34/9.gif b/bin/assets/themes/rule34/9.gif deleted file mode 100644 index 0c9d9fc..0000000 Binary files a/bin/assets/themes/rule34/9.gif and /dev/null differ diff --git a/bin/assets/themes/steambanners/0.gif b/bin/assets/themes/steambanners/0.gif deleted file mode 100644 index 9773838..0000000 Binary files a/bin/assets/themes/steambanners/0.gif and /dev/null differ diff --git a/bin/assets/themes/steambanners/1.gif b/bin/assets/themes/steambanners/1.gif deleted file mode 100644 index a62a419..0000000 Binary files a/bin/assets/themes/steambanners/1.gif and /dev/null differ diff --git a/bin/assets/themes/steambanners/2.gif b/bin/assets/themes/steambanners/2.gif deleted file mode 100644 index cd84d6d..0000000 Binary files a/bin/assets/themes/steambanners/2.gif and /dev/null differ diff --git a/bin/assets/themes/steambanners/3.gif b/bin/assets/themes/steambanners/3.gif deleted file mode 100644 index eaf5250..0000000 Binary files a/bin/assets/themes/steambanners/3.gif and /dev/null differ diff --git a/bin/assets/themes/steambanners/4.gif b/bin/assets/themes/steambanners/4.gif deleted file mode 100644 index a614f74..0000000 Binary files a/bin/assets/themes/steambanners/4.gif and /dev/null differ diff --git a/bin/assets/themes/steambanners/5.gif b/bin/assets/themes/steambanners/5.gif deleted file mode 100644 index c87df90..0000000 Binary files a/bin/assets/themes/steambanners/5.gif and /dev/null differ diff --git a/bin/assets/themes/steambanners/6.gif b/bin/assets/themes/steambanners/6.gif deleted file mode 100644 index 629e4f1..0000000 Binary files a/bin/assets/themes/steambanners/6.gif and /dev/null differ diff --git a/bin/assets/themes/steambanners/7.gif b/bin/assets/themes/steambanners/7.gif deleted file mode 100644 index 076c3e9..0000000 Binary files a/bin/assets/themes/steambanners/7.gif and /dev/null differ diff --git a/bin/assets/themes/steambanners/8.gif b/bin/assets/themes/steambanners/8.gif deleted file mode 100644 index b836654..0000000 Binary files a/bin/assets/themes/steambanners/8.gif and /dev/null differ diff --git a/bin/assets/themes/steambanners/9.gif b/bin/assets/themes/steambanners/9.gif deleted file mode 100644 index 4d8f92a..0000000 Binary files a/bin/assets/themes/steambanners/9.gif and /dev/null differ diff --git a/bin/assets/themes/sthg/0.gif b/bin/assets/themes/sthg/0.gif deleted file mode 100644 index 4e1b728..0000000 Binary files a/bin/assets/themes/sthg/0.gif and /dev/null differ diff --git a/bin/assets/themes/sthg/1.gif b/bin/assets/themes/sthg/1.gif deleted file mode 100644 index 81a7aaf..0000000 Binary files a/bin/assets/themes/sthg/1.gif and /dev/null differ diff --git a/bin/assets/themes/sthg/2.gif b/bin/assets/themes/sthg/2.gif deleted file mode 100644 index c11329b..0000000 Binary files a/bin/assets/themes/sthg/2.gif and /dev/null differ diff --git a/bin/assets/themes/sthg/3.gif b/bin/assets/themes/sthg/3.gif deleted file mode 100644 index ab88de9..0000000 Binary files a/bin/assets/themes/sthg/3.gif and /dev/null differ diff --git a/bin/assets/themes/sthg/4.gif b/bin/assets/themes/sthg/4.gif deleted file mode 100644 index 3b82e66..0000000 Binary files a/bin/assets/themes/sthg/4.gif and /dev/null differ diff --git a/bin/assets/themes/sthg/5.gif b/bin/assets/themes/sthg/5.gif deleted file mode 100644 index b3602e7..0000000 Binary files a/bin/assets/themes/sthg/5.gif and /dev/null differ diff --git a/bin/assets/themes/sthg/6.gif b/bin/assets/themes/sthg/6.gif deleted file mode 100644 index 0e5aff5..0000000 Binary files a/bin/assets/themes/sthg/6.gif and /dev/null differ diff --git a/bin/assets/themes/sthg/7.gif b/bin/assets/themes/sthg/7.gif deleted file mode 100644 index cc3847e..0000000 Binary files a/bin/assets/themes/sthg/7.gif and /dev/null differ diff --git a/bin/assets/themes/sthg/8.gif b/bin/assets/themes/sthg/8.gif deleted file mode 100644 index 7752f8c..0000000 Binary files a/bin/assets/themes/sthg/8.gif and /dev/null differ diff --git a/bin/assets/themes/sthg/9.gif b/bin/assets/themes/sthg/9.gif deleted file mode 100644 index 373b946..0000000 Binary files a/bin/assets/themes/sthg/9.gif and /dev/null differ diff --git a/bin/assets/themes/tcc/0.gif b/bin/assets/themes/tcc/0.gif deleted file mode 100644 index d29130c..0000000 Binary files a/bin/assets/themes/tcc/0.gif and /dev/null differ diff --git a/bin/assets/themes/tcc/1.gif b/bin/assets/themes/tcc/1.gif deleted file mode 100644 index e1701b4..0000000 Binary files a/bin/assets/themes/tcc/1.gif and /dev/null differ diff --git a/bin/assets/themes/tcc/2.gif b/bin/assets/themes/tcc/2.gif deleted file mode 100644 index 55bd90f..0000000 Binary files a/bin/assets/themes/tcc/2.gif and /dev/null differ diff --git a/bin/assets/themes/tcc/3.gif b/bin/assets/themes/tcc/3.gif deleted file mode 100644 index e3bb5d6..0000000 Binary files a/bin/assets/themes/tcc/3.gif and /dev/null differ diff --git a/bin/assets/themes/tcc/4.gif b/bin/assets/themes/tcc/4.gif deleted file mode 100644 index c449d27..0000000 Binary files a/bin/assets/themes/tcc/4.gif and /dev/null differ diff --git a/bin/assets/themes/tcc/5.gif b/bin/assets/themes/tcc/5.gif deleted file mode 100644 index 8001994..0000000 Binary files a/bin/assets/themes/tcc/5.gif and /dev/null differ diff --git a/bin/assets/themes/tcc/6.gif b/bin/assets/themes/tcc/6.gif deleted file mode 100644 index ed054f3..0000000 Binary files a/bin/assets/themes/tcc/6.gif and /dev/null differ diff --git a/bin/assets/themes/tcc/7.gif b/bin/assets/themes/tcc/7.gif deleted file mode 100644 index 45feed4..0000000 Binary files a/bin/assets/themes/tcc/7.gif and /dev/null differ diff --git a/bin/assets/themes/tcc/8.gif b/bin/assets/themes/tcc/8.gif deleted file mode 100644 index 295d6f2..0000000 Binary files a/bin/assets/themes/tcc/8.gif and /dev/null differ diff --git a/bin/assets/themes/tcc/9.gif b/bin/assets/themes/tcc/9.gif deleted file mode 100644 index 250c103..0000000 Binary files a/bin/assets/themes/tcc/9.gif and /dev/null differ diff --git a/bin/core/b64img.py b/bin/core/b64img.py index 3171cc2..49b7a4f 100644 --- a/bin/core/b64img.py +++ b/bin/core/b64img.py @@ -7,22 +7,27 @@ import sqlite3 +from typing import Any +from db.db import fetch_table -def re_sort_number_image(origin_number: str, theme: str) -> list: +def re_sort_number_image(origin_number: str, theme: str) -> tuple[bool, bool, bool, bool] | list[ + bool | list[Any] | Any]: """ 返回一个排列好的svg base64代码列表 :param theme: :param origin_number: :return: """ - try: - cursor.execute('select * from %(theme_db)s' % {'theme_db': theme} ) - except sqlite3.OperationalError: - return False + + table_list = fetch_table() + if theme not in table_list: + return False, False, False, False + width_list = [] height_list = [] b_64_list = [] + cursor.execute('select * from %(name)s' % {'name': theme}) data = cursor.fetchall() for i in data: width_list.append(i[2]) @@ -53,11 +58,11 @@ def re_sort_number_image(origin_number: str, theme: str) -> list: elif i == '9': final_b64_img_code.append(b_64_list[9]) - return final_b64_img_code, width_list[0], height_list[0] + return [True, final_b64_img_code, width_list[0], height_list[0]] else: for i in range(10): final_b64_img_code.append(b_64_list[0]) - return final_b64_img_code, width_list[0], height_list[0] + return [True, final_b64_img_code, width_list[0], height_list[0]] if __name__ != '__main__': diff --git a/bin/tests/base2img.py b/bin/tests/base2img.py deleted file mode 100644 index 2214ff4..0000000 --- a/bin/tests/base2img.py +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env python3 -# -- coding:utf-8 -- -# @Author: markushammered@gmail.com -# @Development Tool: PyCharm -# @Create Time: 2022/2/3 -# @File Name: base2img.py - -import base64 -import os - - -def convert_single() -> None: - """ - - :return: - """ - # image转base64 - with open(f'../../static/example.png', 'rb') as f: - base64_data = base64.b64encode(f.read()) - base64_code = 'data:image/jpeg;base64,' + base64_data.decode('utf-8') - print(base64_code) - - -def convert_multi() -> None: - """ - - :return: - """ - file_list = os.listdir('../res/images') - dict_count = 0 - img_dict = {} - for i in file_list: - with open(f'../res/images/theme2{i}', 'rb') as f: - base64_data = base64.b64encode(f.read()) - base64_code = 'data:image/svg+xml;base64,' + base64_data.decode('utf-8') - img_dict[str(dict_count)] = base64_code - dict_count += 1 - - print(img_dict) - - -convert_multi() \ No newline at end of file diff --git a/bin/tests/db_test.py b/bin/tests/db_test.py deleted file mode 100644 index 4d9cf48..0000000 --- a/bin/tests/db_test.py +++ /dev/null @@ -1,7 +0,0 @@ -import sqlite3 - -conn = sqlite3.connect('../assets/theme.db') -cursor = conn.cursor() -cursor.execute('select * from sqlite_master where type="table"') -data = cursor.fetchall() -print(data) diff --git a/bin/tests/download.py b/bin/tests/download.py new file mode 100644 index 0000000..e5193f9 --- /dev/null +++ b/bin/tests/download.py @@ -0,0 +1,25 @@ +import base64 +from PIL import Image +import os +import sqlite3 + + +conn = sqlite3.connect('../assets/theme.db') +cursor = conn.cursor() + +file_list = os.listdir('../assets/themes/') +for i in file_list: + img = Image.open(f'../assets/themes/{i}/0.gif') + w = img.width + h = img.height + img.close() + for n in range(0, 10): + with open(f'../assets/themes/{i}/{n}.gif', 'rb') as f: + base64_data = base64.b64encode(f.read()) + base64_code = f'data:image/gif;base64,' + base64_data.decode('utf-8') + + try: + cursor.execute('insert into %(name)s values(?, ?, ?, ?)' % {'name': i}, (n, base64_code, w, h)) + conn.commit() + except Exception: + cursor.execute('create table %(name)s (k text, v text, w integer, h integer)' % {'name': i}) \ No newline at end of file diff --git a/bin/tests/download_img.py b/bin/tests/download_img.py deleted file mode 100644 index f015535..0000000 --- a/bin/tests/download_img.py +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env python3 -# -- coding:utf-8 -- -# @Author: markushammered@gmail.com -# @Development Tool: PyCharm -# @Create Time: 2022/2/8 -# @File Name: download_img.py - -import os -import requests -import threading - -proxies = { - 'http': '127.0.0.1:8889', - 'https': '127.0.0.1:8889' -} - - -def thread_(i, main_url, dir): - res = requests.get(f'{main_url}/{i}.gif', proxies=proxies) - with open(f'../assets/themes/{dir}/{i}.gif', 'wb') as f: - f.write(res.content) - - -while True: - url = input('->') - url = url.replace('https://', '|') - url = ''.join(url.split('/')[:-2]).replace('|', 'https://') + '/counter' - dir = url.split('.')[0].split('//')[-1] - os.mkdir(f'../assets/themes/{dir}') - for i in range(0, 10): - threading.Thread(target=thread_, args=(i, url, dir)).start() diff --git a/bin/tests/dump_theme_db.py b/bin/tests/dump_theme_db.py deleted file mode 100644 index fb6fd08..0000000 --- a/bin/tests/dump_theme_db.py +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env python3 -# -- coding:utf-8 -- -# @Author: markushammered@gmail.com -# @Development Tool: PyCharm -# @Create Time: 2022/2/7 -# @File Name: dump_theme_db.py - - -import os -import base64 -import sqlite3 - -conn = sqlite3.connect('../assets/theme.db') -cursor = conn.cursor() - - -dir_name = 'gelbooru-h' -file_list = os.listdir(f'../assets/themes/moe_theme/{dir_name}') -dict_count = 0 -img_dict = {} -for i in file_list: - with open(f'../assets/themes/moe_theme/{dir_name}/{i}', 'rb') as f: - base64_data = base64.b64encode(f.read()) - base64_code = f'data:image/jpeg;base64,' + base64_data.decode('utf-8') - img_dict[str(dict_count)] = base64_code - dict_count += 1 -for k, v in zip(img_dict.keys(), img_dict.values()): - cursor.execute("insert into gelbooruh values(?, ?)", (k, v)) - conn.commit() diff --git a/bin/tests/img_size.py b/bin/tests/img_size.py deleted file mode 100644 index 8ff23a2..0000000 --- a/bin/tests/img_size.py +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env python3 -# -- coding:utf-8 -- -# @Author: markushammered@gmail.com -# @Development Tool: PyCharm -# @Create Time: 2022/2/8 -# @File Name: img_size.py - -import os -from PIL import Image -import sqlite3 - - -def get_info(path, file): - for i in path: - img = Image.open(f'../assets/themes/{path}/{file}') - imgSize = img.size - w = img.width - h = img.height - f = img.format - print(imgSize) - print(w, h, f) - - -file_list = os.listdir('../assets/themes/') -for p in file_list: - lst = os.listdir(f'../assets/themes/{p}') - for i in lst: - get_info(p, i) - - diff --git a/bin/tests/numberlen.py b/bin/tests/numberlen.py deleted file mode 100644 index 6701da9..0000000 --- a/bin/tests/numberlen.py +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env python3 -# -- coding:utf-8 -- -# @Author: markushammered@gmail.com -# @Development Tool: PyCharm -# @Create Time: 2022/2/3 -# @File Name: numberlen.py - - -number = 1576451745 - -if len(str(number)) <= 10: - zero_count = 10 - len(str(number)) - final_str = '0' * zero_count + str(number) - print(final_str[9]) -else: - print('Too much to count') \ No newline at end of file diff --git a/bin/tests/resp_test.py b/bin/tests/resp_test.py deleted file mode 100644 index b275b68..0000000 --- a/bin/tests/resp_test.py +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env python3 -# -- coding:utf-8 -- -# @Author: markushammered@gmail.com -# @Development Tool: PyCharm -# @Create Time: 2022/2/3 -# @File Name: resp_test.py - -import requests -import random - - -def request_test() -> None: - """ - 请求测试 - :return: - """ - for i in range(100): - resp = requests.get(f'http://127.0.0.1:8000/API?name={i}') - print(resp) - - -def download_test() -> None: - """ - 下载测试 - :return: - """ - - resp = requests.get('https://count.getloli.com/get/@Moe-counter.github') - with open('download_test.html', 'wb') as fp: - fp.write(resp.content) - - -request_test() \ No newline at end of file diff --git a/bin/tests/timetest.py b/bin/tests/timetest.py deleted file mode 100644 index 12d7340..0000000 --- a/bin/tests/timetest.py +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python3 -# -- coding:utf-8 -- -# @Author: markushammered@gmail.com -# @Development Tool: PyCharm -# @Create Time: 2022/2/4 -# @File Name: timetest.py - -import time - - -print(time.ctime()) \ No newline at end of file diff --git a/db/data.db b/db/data.db index a31fd28..3bd6aaa 100644 Binary files a/db/data.db and b/db/data.db differ diff --git a/db/db.py b/db/db.py index 19aed4c..3f0c5bd 100644 --- a/db/db.py +++ b/db/db.py @@ -12,7 +12,7 @@ import sqlite3 """ -def insert_data(name: str): +def insert_data(name: str) -> None: """ 插入数据 :param name: @@ -50,7 +50,7 @@ def fetch_data(name: str) -> int: return 0 -def update_data(name: str, times: int): +def update_data(name: str, times: int) -> None: """ 更新数据 :param name: @@ -62,6 +62,20 @@ def update_data(name: str, times: int): conn.commit() +def fetch_table() -> list: + """ + 返回已有主题列表 + :return: + """ + lst = [] + conn_temp = sqlite3.connect('./bin/assets/theme.db', check_same_thread=False) + cursor_temp = conn_temp.cursor() + cursor_temp.execute("select * from sqlite_master where type='table'") + for i in cursor_temp.fetchall(): + lst.append(i[1]) + return lst + + if __name__ != '__main__': conn = sqlite3.connect('./db/data.db', check_same_thread=False) cursor = conn.cursor()