Files
youtube-dl/lib/support/__init__.py

25 lines
720 B
Python
Raw Normal View History

2022-10-02 20:18:05 +09:00
def d(data):
if type(data) in [type({}), type([])]:
import json
2022-10-10 11:40:10 +09:00
try:
return '\n' + json.dumps(data, indent=4, ensure_ascii=False)
except:
return data
2022-10-02 20:18:05 +09:00
else:
return str(data)
2022-10-12 01:32:51 +09:00
from .logger import get_logger
2022-10-07 01:48:42 +09:00
2022-10-12 01:32:51 +09:00
logger = get_logger()
2022-10-07 01:48:42 +09:00
from .base.aes import SupportAES
from .base.discord import SupportDiscord
from .base.file import SupportFile
from .base.string import SupportString
2022-10-17 13:28:55 +09:00
from .base.sub_process import SupportSubprocess
2022-10-17 21:32:53 +09:00
from .base.support_sc import SupportSC
2022-10-07 01:48:42 +09:00
from .base.telegram import SupportTelegram
from .base.util import (AlchemyEncoder, SingletonClass, SupportUtil,
default_headers, pt)
from .base.yaml import SupportYaml