youtube-dlc를 yt-dlp로 변경

This commit is contained in:
joyfuI
2021-01-22 14:56:53 +09:00
parent b443aaeff5
commit 342263d153
5 changed files with 38 additions and 13 deletions

View File

@@ -16,12 +16,13 @@ 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
def get_youtube_dl_package(index=None, import_pkg=False):
packages = ['youtube-dl', 'yt-dlp']
import_name = ['youtube_dl', 'youtube_dlc']
if import_pkg:
return import_name if index is None else import_name[int(index)]
else:
return packages[int(index)].replace('-', '_')
return packages if index is None else packages[int(index)]
@staticmethod
def get_youtube_dl_version():