Update repository URL to Gitea and sync structural changes
This commit is contained in:
77
setup.py
Normal file
77
setup.py
Normal file
@@ -0,0 +1,77 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# @Time : 2023/02/25 7:20 PM
|
||||
# @Author : yommi
|
||||
# @Site :
|
||||
# @File : setup.py
|
||||
# @Software: PyCharm
|
||||
# @Path : youtube-dl/setup.py
|
||||
|
||||
__menu = {
|
||||
"uri": __package__,
|
||||
"name": "유튜브 다운로더",
|
||||
"list": [
|
||||
{
|
||||
"uri": "basic",
|
||||
"name": "기본 처리",
|
||||
"list": [
|
||||
{
|
||||
"uri": "setting",
|
||||
"name": "설정",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
"uri": "basic/download",
|
||||
"name": "다운로드",
|
||||
},
|
||||
{
|
||||
"uri": "download",
|
||||
"name": "다운로드",
|
||||
"list": [
|
||||
{
|
||||
"uri": "basic",
|
||||
"name": "다운로드",
|
||||
},
|
||||
],
|
||||
},
|
||||
{"uri": "thumbnail", "name": "썸네일 다운로드"},
|
||||
{"uri": "sub", "name": "자막 다운로드"},
|
||||
{
|
||||
"uri": "manual",
|
||||
"name": "매뉴얼",
|
||||
"list": [
|
||||
{"uri": "README.md", "name": "README.md"},
|
||||
],
|
||||
},
|
||||
{
|
||||
"uri": "log",
|
||||
"name": "로그",
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
setting = {
|
||||
"filepath": __file__,
|
||||
"use_db": True,
|
||||
"use_default_setting": True,
|
||||
"home_module": None,
|
||||
"menu": __menu,
|
||||
"setting_menu": None,
|
||||
"default_route": "normal",
|
||||
}
|
||||
|
||||
|
||||
from plugin import *
|
||||
|
||||
P = create_plugin_instance(setting)
|
||||
P.youtube_dl_packages = ["youtube-dl", "yt-dlp", "youtube-dlc"]
|
||||
|
||||
try:
|
||||
from .mod_basic import ModuleBasic
|
||||
|
||||
P.set_module_list([ModuleBasic])
|
||||
except Exception as e:
|
||||
P.logger.error(f"Exception:{str(e)}")
|
||||
P.logger.error(traceback.format_exc())
|
||||
|
||||
logger = P.logger
|
||||
Reference in New Issue
Block a user