Skip to content

Commit

Permalink
web sounds (admin/curator music + walkmans) should now show the engli…
Browse files Browse the repository at this point in the history
…sh title if youtube provides one
  • Loading branch information
Absolucy committed Dec 1, 2024
1 parent 4545c04 commit eb70ae2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion code/modules/admin/verbs/playsound.dm
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
var/stop_web_sounds = FALSE
var/list/music_extra_data = list()
if(istext(input))
var/list/output = world.shelleo("[ytdl] --geo-bypass --format \"bestaudio\[ext=mp3]/best\[ext=mp4]\[height <= 360]/bestaudio\[ext=m4a]/bestaudio\[ext=aac]\" --dump-single-json --no-playlist -- \"[input]\"")
var/list/output = world.shelleo("[ytdl] --geo-bypass --format \"bestaudio\[ext=mp3]/best\[ext=mp4]\[height <= 360]/bestaudio\[ext=m4a]/bestaudio\[ext=aac]\" --dump-single-json --no-playlist --extractor-args \"youtube:lang=en\" -- \"[input]\"")
var/errorlevel = output[SHELLEO_ERRORLEVEL]
var/stdout = output[SHELLEO_STDOUT]
var/stderr = output[SHELLEO_STDERR]
Expand Down
2 changes: 1 addition & 1 deletion monkestation/code/modules/cassettes/machines/dj_station.dm
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ GLOBAL_VAR(dj_booth)
///scrubbing the input before putting it in the shell
var/shell_scrubbed_input = shell_url_scrub(web_sound_input)
///putting it in the shell
var/list/output = world.shelleo("[ytdl] --geo-bypass --format \"bestaudio\[ext=mp3]/best\[ext=mp4]\[height <= 360]/bestaudio\[ext=m4a]/bestaudio\[ext=aac]\" --dump-single-json --no-playlist -- \"[shell_scrubbed_input]\"")
var/list/output = world.shelleo("[ytdl] --geo-bypass --format \"bestaudio\[ext=mp3]/best\[ext=mp4]\[height <= 360]/bestaudio\[ext=m4a]/bestaudio\[ext=aac]\" --dump-single-json --no-playlist --extractor-args \"youtube:lang=en\" -- \"[shell_scrubbed_input]\"")
///any errors
var/errorlevel = output[SHELLEO_ERRORLEVEL]
///the standard output
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
///scrub the url before passing it through a shell
var/shell_scrubbed_input = shell_url_scrub(url2)
///the command being sent to the shell after being scrubbed
var/list/output = world.shelleo("[ytdl] --geo-bypass --format \"bestaudio\[ext=mp3]/best\[ext=mp4]\[height <= 360]/bestaudio\[ext=m4a]/bestaudio\[ext=aac]\" --dump-single-json --no-playlist -- \"[shell_scrubbed_input]\"")
var/list/output = world.shelleo("[ytdl] --geo-bypass --format \"bestaudio\[ext=mp3]/best\[ext=mp4]\[height <= 360]/bestaudio\[ext=m4a]/bestaudio\[ext=aac]\" --dump-single-json --no-playlist --extractor-args \"youtube:lang=en\" -- \"[shell_scrubbed_input]\"")
///any errors
var/errorlevel = output[SHELLEO_ERRORLEVEL]
///the standard output
Expand Down
2 changes: 1 addition & 1 deletion monkestation/code/modules/cassettes/walkman/_walkmen.dm
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ GLOBAL_LIST_INIT(youtube_exempt, list(
///scrubbing the input before putting it in the shell
var/shell_scrubbed_input = shell_url_scrub(web_sound_input)
///putting it in the shell
var/list/output = world.shelleo("[ytdl] --geo-bypass --format \"bestaudio\[ext=mp3]/best\[ext=mp4]\[height <= 360]/bestaudio\[ext=m4a]/bestaudio\[ext=aac]\" --dump-single-json --no-playlist -- \"[shell_scrubbed_input]\"")
var/list/output = world.shelleo("[ytdl] --geo-bypass --format \"bestaudio\[ext=mp3]/best\[ext=mp4]\[height <= 360]/bestaudio\[ext=m4a]/bestaudio\[ext=aac]\" --dump-single-json --no-playlist --extractor-args \"youtube:lang=en\" -- \"[shell_scrubbed_input]\"")
///any errors
var/errorlevel = output[SHELLEO_ERRORLEVEL]
///the standard output
Expand Down

0 comments on commit eb70ae2

Please sign in to comment.