From 1dbcccdf106c29da9a53a22c209733dfd479b1ad Mon Sep 17 00:00:00 2001 From: Jackson Taylor Date: Tue, 9 Nov 2021 21:23:13 -0500 Subject: Pull playlist from command line args --- jamos | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'jamos') 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): -- cgit v1.2.3