youtube-dlc 추가

This commit is contained in:
joyfuI
2020-11-15 14:06:33 +09:00
parent 0ceb81dcbd
commit 43497032a2
8 changed files with 43 additions and 17 deletions

View File

@@ -15,6 +15,14 @@ from .my_youtube_dl import MyYoutubeDL, Status
class LogicNormal(object):
youtube_dl_list = []
@staticmethod
def get_youtube_dl_package(index=None):
packages = ['youtube-dl', 'youtube-dlc']
if index is None:
return packages
else:
return packages[int(index)].replace('-', '_')
@staticmethod
def get_youtube_dl_version():
return MyYoutubeDL.get_version()