Skip to content

Commit

Permalink
[youtube] prompt for installing dukpy if ImportError
Browse files Browse the repository at this point in the history
  • Loading branch information
soimort committed Jun 23, 2024
1 parent 68965e0 commit 2569aa0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/you_get/extractors/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2569aa0

Please sign in to comment.