Skip to content

Commit

Permalink
Get youtube-dl path from env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
equalsraf committed Mar 6, 2015
1 parent e59a8b4 commit e20c88a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,10 @@ def ydl_worker():
ydl worker reads URLs from the queue, calls youtube-dl to handle them,
and queues the result into Vlc
"""
YOUTUBE_DL = os.getenv('YOUTUBE_DL', 'youtube-dl')
while True:
url = WORK_QUEUE.get(True)
cmd = ["youtube-dl", "-j", "--prefer-insecure", \
cmd = [YOUTUBE_DL, "-j", "--prefer-insecure", \
"-f", "mp4/http_mp3_128_url", "-i", url]
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
vlc_instance = vlc()
Expand Down

0 comments on commit e20c88a

Please sign in to comment.