summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackson Taylor <jackson@jacksontaylor.xyz>2021-11-09 21:23:13 -0500
committerJackson Taylor <jackson@jacksontaylor.xyz>2022-04-05 16:51:56 -0400
commit1dbcccdf106c29da9a53a22c209733dfd479b1ad (patch)
tree5277e31cb115dde1d164b57e88f0a735cfeca37f
parentc383aa2c3ff3cf2f0de69937023c6cecc8bdc1f3 (diff)
Pull playlist from command line args
-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):