summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xjamos10
1 files changed, 3 insertions, 7 deletions
diff --git a/jamos b/jamos
index 7e80212..0280ea6 100755
--- a/jamos
+++ b/jamos
@@ -7,6 +7,7 @@ import os
from os.path import isfile, join
from pathlib import Path
import readline
+import sys
import youtube_dl
@@ -34,14 +35,9 @@ AUDIO_OPTIONS = {
ytdl = youtube_dl.YoutubeDL(AUDIO_OPTIONS)
-# TODO: Pull via command line args
+# TODO: Make this better with argparse
def get_playlist_url():
- # return "https://music.youtube.com/watch?v=Enm0XL7xx_E&feature=share" # Deer Tick
- # return "https://music.youtube.com/watch?v=hJLb0zPBzkE&feature=share" # You Worry Me
- # return "https://music.youtube.com/playlist?list=OLAK5uy_lHnMUbm8pKsyMTRQNCrjM2v4CPvIJUWq0&feature=share" # Button the busker
- # return "https://music.youtube.com/playlist?list=PLC-Ro2Hd9eWm1ZPIAsxFcfg2JoOlTO0Oj&feature=share" # broken hearts and dirty windows volume 2
- # return "https://music.youtube.com/playlist?list=PLC-Ro2Hd9eWkX4hDamDvyB5G-vxLTEBKl&feature=share" # dev playlist
- return "https://music.youtube.com/playlist?list=PLC-Ro2Hd9eWkoElrTZIcCVCcdxBQzojsZ&feature=share" # missing playlist
+ return sys.argv[1]
def download_song(song_url):