summaryrefslogtreecommitdiff
path: root/utils/utils_switch
diff options
context:
space:
mode:
Diffstat (limited to 'utils/utils_switch')
-rw-r--r--utils/utils_switch/__init__.py17
-rw-r--r--utils/utils_switch/switch.json2
2 files changed, 17 insertions, 2 deletions
diff --git a/utils/utils_switch/__init__.py b/utils/utils_switch/__init__.py
index 5c10a85..df7b877 100644
--- a/utils/utils_switch/__init__.py
+++ b/utils/utils_switch/__init__.py
@@ -1,5 +1,14 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
+# -*- encoding: utf-8 -*-
+'''
+@File : __init__.py
+@Time : 2020/10/11 14:44:06
+@Author : Kyomotoi
+@Contact : [email protected]
+@Github : https://github.com/Kyomotoi
+@License : Copyright © 2018-2020 Kyomotoi, All Rights Reserved.
+'''
+__author__ = 'kyomotoi'
import os
import json
@@ -40,6 +49,9 @@ def checkSwitch(func_name: str, group: str) -> bool:
data_switch_all["anime-pic-search"] = "True"
data_switch_all["anime-vid-search"] = "True"
data_switch_all["ai-face"] = "True"
+ data_switch_all["pixiv-pic-search"] = "True"
+ data_switch_all["pixiv-author-search"] = "True"
+ data_switch_all["pixiv-rank"] = "True"
with open(file_switch_all, 'w') as f:
f.write(json.dumps(data_switch_all))
@@ -59,6 +71,9 @@ def checkSwitch(func_name: str, group: str) -> bool:
data_switch_alone["anime-pic-search"] = "True"
data_switch_alone["anime-vid-search"] = "True"
data_switch_alone["ai-face"] = "True"
+ data_switch_alone["pixiv-pic-search"] = "True"
+ data_switch_alone["pixiv-author-search"] = "True"
+ data_switch_alone["pixiv-rank"] = "True"
with open(file_switch_alone, 'w') as f:
f.write(json.dumps(data_switch_alone))
diff --git a/utils/utils_switch/switch.json b/utils/utils_switch/switch.json
index 9b6bb22..9fb8cfa 100644
--- a/utils/utils_switch/switch.json
+++ b/utils/utils_switch/switch.json
@@ -1 +1 @@
-{"anime-setu": "True", "anime-pic-search": "True", "anime-vid-search": "True", "all-off-anime-setu": "True"} \ No newline at end of file
+{"anime-setu": "True", "anime-pic-search": "True", "anime-vid-search": "True", "all-off-anime-setu": "True", "ai-face": "True", "pixiv-pic-search": "True", "pixiv-author-search": "True", "pixiv-rank": "True"} \ No newline at end of file