[youtube] prompt for installing dukpy if ImportError

This commit is contained in:
Mort Yao 2024-06-23 18:44:47 +02:00
parent 68965e0a96
commit 2569aa03f6
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -3,7 +3,12 @@
from ..common import *
from ..extractor import VideoExtractor
import dukpy
try:
import dukpy
except ImportError:
log.e('Please install dukpy in order to extract videos from YouTube:')
log.e('$ pip install dukpy')
exit(0)
from urllib.parse import urlparse, parse_qs, urlencode
from xml.dom.minidom import parseString