Url = "https://e-hentai.org"       # 域名
ExUrl = "https://exhentai.org"       # 域名
FormUrl = "https://forums.e-hentai.org"       # 域名
ApiUrl = "https://api.e-hentai.org/api.php"

ThreadNum = 10                 # 线程
DownloadThreadNum = 5          # 下载线程
ConvertThreadNum = 3           # 同时转换数量

SavePath = ''
SavePathDir = "commies"       # 下载目录
ResetCnt = 5                  # 下载重试次数

IsUseCache = True             # 是否使用cache
CachePathDir = "cache"        # cache目录
# CacheExpired = 24 * 60 * 60    # cache过期时间24小时
PreLoading = 10    # 预加载5页
PreLook = 4                    # 预显示

IsLoadingPicture = True

UpdateUrl = "https://github.com/tonquer/ehentai-qt/releases/latest"
UpdateUrlApi = "https://api.github.com/repos/tonquer/ehentai-qt/releases"
UpdateUrlBack = "https://github.com/tonquer/ehentai-qt"

UpdateUrl2 = "https://hub.ggo.icu/tonquer/ehentai-qt/releases/latest"
UpdateUrl2Api = "https://api.ggo.icu/repos/tonquer/ehentai-qt/releases"
UpdateUrl2Back = "https://hub.ggo.icu/tonquer/ehentai-qt"

UpdateUrl3 = "https://hub.fastgit.xyz/tonquer/ehentai-qt/releases/latest"
UpdateUrl3Api = "https://api.fastgit.xyz/repos/tonquer/ehentai-qt/releases"
UpdateUrl3Back = "https://hub.fastgit.xyz/tonquer/ehentai-qt"


Issues1 = "https://github.com/tonquer/ehentai-qt/issues"
Issues2 = "https://hub.ggo.icu/tonquer/ehentai-qt/issues"
Issues3 = "https://hub.fastgit.xyz/tonquer/ehentai-qt/issues"

UpdateVersion = "v1.1.5"
RealVersion = "v1.1.5"
Waifu2xVersion = "1.1.6"
TimeVersion = "2023-8-13"

CurSite = "e-hentai"   # 当前站点
CurLoginName = ""      # 当前登录名
IsLogin=False

# waifu2x
CanWaifu2x = False
ErrorMsg = ""

Encode = 0             # 当前正在使用的索引
UseCpuNum = 0
EncodeGpu = ""

Waifu2xPath = "waifu2x"

IsTips = 1

# https://ehwiki.org/wiki/IPs
LocalProxyPort = 0

DomainDns = {
    "e-hentai.org": "104.20.135.21",
    "exhentai.org": "178.175.128.254",
    "ehgt.org": "37.48.89.44",
    "forums.e-hentai.org": "104.20.135.21",
    "gt0.ehgt.org": "37.48.89.44",
    "api.e-hentai.org": "104.20.135.21",
}

DomainMapping = {
    "gt0.ehgt.org": "ehgt.org",
    "forums.e-hentai.org": "e-hentai.org"
}

Hosts = {
}
