Removed stuff and fixed stuff
- Removed some mor unnecessary code - Added showing the tv show name before the episode name, before it was just showing the episode name
This commit is contained in:
parent
0775ab2a43
commit
63a94836e6
6 changed files with 6 additions and 6 deletions
|
@ -14,7 +14,7 @@ class Program
|
|||
private static bool isScreenSharing = false; // Track screen sharing status
|
||||
|
||||
// Hard-code the Discord Client ID here
|
||||
private const string DiscordClientId = "1312264302601834578"; // Replace with your actual Discord client ID
|
||||
private const string DiscordClientId = "1312264302601834578"; // Discord client ID
|
||||
|
||||
static async Task Main(string[] args)
|
||||
{
|
||||
|
@ -56,9 +56,9 @@ class Program
|
|||
|
||||
string details = playingInfo.IsMusic
|
||||
? $"{playingInfo.Title}" // Show song name
|
||||
: $"Watching: {playingInfo.Title}"; // Show video title
|
||||
: $"Watching: {nowPlaying["SeriesName"]?.ToString() ?? "Unknown Series"} - {playingInfo.Title}"; // Show series and episode name
|
||||
|
||||
string state = isScreenSharing ? "Sharing screen" : playingInfo.IsMusic
|
||||
string state = playingInfo.IsMusic
|
||||
? $"{playingInfo.Artist}" // Show artist name
|
||||
: $"Season {playingInfo.Season}, Episode {playingInfo.Episode}";
|
||||
|
||||
|
@ -67,7 +67,7 @@ class Program
|
|||
_discordClient.SetPresence(new RichPresence
|
||||
{
|
||||
Details = details,
|
||||
State = state, // Dynamic state based on screen sharing or media
|
||||
State = state,
|
||||
Timestamps = new Timestamps
|
||||
{
|
||||
Start = DateTime.UtcNow - playingInfo.Progress,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue