text stringlengths 1 93.6k |
|---|
("Operator", "Batch apply light vector modifiers"): "批量添加灯光矢量修改器",
|
("Operator", "Batch remove light vector modifiers"): "批量移除灯光矢量修改器",
|
("*", "Outline thickness"): "描边厚度",
|
("*", "Input outline thickness"): "输入描边厚度",
|
("Operator", "Batch add/modify outlines"): "批量添加/修改描边",
|
("Operator", "Batch remove outlines"): "批量移除描边",
|
("Operator", "Batch add/modify outlines"): "批量添加/修改描边",
|
("Operator", "Batch add/modify outlines"): "批量添加/修改描边",
|
("*", "Add HonkaiStarRail Material"): "添加星穹铁道材质",
|
("*","Add HonkaiStarRail light vector modifier"): "添加灯光矢量修改器",
|
("*", "Remove HonkaiStarRail light vector modifier"): "移除灯光矢量修改器",
|
("*", "Add Outline"): "添加描边",
|
("*", "Remove Outline"): "移除描边",
|
("*", "Is preset"): "是否预设",
|
("*", "Is all in configs"): "是否为整合配置文件",
|
("*", "Is it to integrate configuration files"): "是否为整合配置文件",
|
("*", "Whether to merge meshes in the same group"): "是否合并相同组的网格",
|
("Operator", "Run Entire Setup"): "一键安装MMD模型",
|
("*", "Run Entire Setup for MMD Model"): "一键安装MMD模型整合配置",
|
}
|
}
|
# <FILESEP>
|
#!/usr/bin/python3
|
# -*- coding: utf-8 -*-
|
"""
|
Index the drives and create new database replacing the old one.
|
It respects ignored directories.
|
Use crontab to run this update periodically, 2 times a day sounds about right
|
crontab example that executes at noon and at midnight
|
00 00,12 * * * /usr/share/angrysearch/angrysearch_update_database.py
|
"""
|
# pylama:ignore=D103 ## Hide docstring warnings
|
import os
|
import sqlite3
|
import subprocess
|
import sys
|
from datetime import datetime
|
from PyQt5.QtCore import QSettings, QStandardPaths
|
TEMP_PATH = QStandardPaths.standardLocations(QStandardPaths.TempLocation)[0]
|
CACHE_PATH = QStandardPaths.standardLocations(QStandardPaths.CacheLocation)[0]
|
DATABASE_PATH = CACHE_PATH + '/angrysearch/angry_database.db'
|
# CHECK SCANDIR AVAILABILITY
|
try:
|
import scandir
|
SCANDIR_AVAILABLE = True
|
except ImportError:
|
SCANDIR_AVAILABLE = False
|
# CHECK IF NOTIFICATIONS CAN BE MADE
|
try:
|
from gi import require_version
|
require_version('Gtk', '3.0')
|
require_version('Notify', '0.7')
|
from gi.repository import Notify, GdkPixbuf
|
NOTIFY_AVAILABLE = True
|
except ImportError:
|
NOTIFY_AVAILABLE = False
|
# FIX FOR CRONTAB
|
if 'DISPLAY' not in os.environ:
|
os.environ['DISPLAY'] = ':0'
|
# MORE GLOBAL VARIABLES
|
LITE = True
|
PREP_EXCLUDED = []
|
MOUNTS_NEEDED = []
|
NOTIFICATIONS_ENABLED = True
|
START_TIME = datetime.now()
|
def load_settings():
|
global LITE
|
global PREP_EXCLUDED
|
global MOUNTS_NEEDED
|
global NOTIFICATIONS_ENABLED
|
settings = QSettings('angrysearch', 'angrysearch')
|
if settings.value('angrysearch_lite'):
|
q = settings.value('angrysearch_lite')
|
if q.lower() in ['false', 'no', '0', 'n', 'none', 'nope']:
|
LITE = False
|
if settings.value('directories_excluded'):
|
dirs_excluded = settings.value('directories_excluded').strip().split()
|
for x in dirs_excluded:
|
y = [k.encode() for k in x.split('/') if k]
|
z = ''
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.