Skip to content

Commit

Permalink
makes it work
Browse files Browse the repository at this point in the history
  • Loading branch information
CASEYGUNGEON committed Jul 17, 2024
1 parent 18caf67 commit 870f78d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/game/machinery/dance_machine_online.dm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
to_chat(usr, "Someone else must have responded already.")


/obj/machinery/jukebox_online/proc/parse_url(var/url)
/obj/machinery/jukebox_online/proc/parse_url(url)
. = FALSE
var/ytdl = CONFIG_GET(string/invoke_youtubedl)
if(!ytdl)
Expand All @@ -46,7 +46,7 @@
to_chat(src, span_warning("For yt-dlp shortcuts like ytsearch: please use the appropriate full url from the website."))
return
var/shell_scrubbed_input = shell_url_scrub(url)
var/list/output = world.shelleo("[ytdl] --format \"bestaudio\" --dump-single-json --no-playlist --skip-download -- \"[shell_scrubbed_input]\"")
var/list/output = world.shelleo("[ytdl] --format \"bestaudio\[ext=mp3]/best\[ext=mp4]\[height<=360]/bestaudio\[ext=m4a]/bestaudio\[ext=aac]\" --dump-single-json --no-playlist -- \"[shell_scrubbed_input]\"")
var/errorlevel = output[SHELLEO_ERRORLEVEL]
var/stdout = output[SHELLEO_STDOUT]
//var/stderr = output[SHELLEO_STDERR]
Expand Down

0 comments on commit 870f78d

Please sign in to comment.