mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 13:35:16 +03:00
[youtube] prompt for installing dukpy if ImportError
This commit is contained in:
parent
68965e0a96
commit
2569aa03f6
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user