Requirements: you must have at least Powershell 7.
Configure the component in Foobar2000; in the advanced tab, enter pwsh C:\path\to\the\powershell\script\fb2k_discord_rich.ps1
Created
September 16, 2023 03:23
-
-
Save jwshields/84a37ea576bc188b73884005556ee021 to your computer and use it in GitHub Desktop.
Discord Rich Presence Integration - Album Artwork Uploader - Windows + Sharex + SFTP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$upload_fn=Resolve-Path -LiteralPath $input | Select-Object -ExpandProperty Path | |
Start-Process -WindowStyle Hidden -Wait -File "C:\Program Files\ShareX\ShareX.exe" -ArgumentList @("""$($upload_fn)"" -autoclose -m -nohotkeys") ; $UPLOAD_URL=Get-Clipboard | |
$UPLOAD_URL=Get-Clipboard | |
echo "$UPLOAD_URL" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I use this configuration with Foobar and Discord for displaying my media, and I find it works very well to convey a large amount of information about the music that is currently playing. | |
Top Field: `[%artist%] - [%album%] [$if($greater(%discnumber%,0), ' - Disc '%discnumber%$ifgreater(%totaldiscs%,0,'/'%totaldiscs%,),)] ['['%year%']']` | |
Bottom Field: `[%title%] '- ['[$if($greater(%totaltracks%,0),%tracknumber%/%totaltracks%,%tracknumber%)']']` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment