Skip to content

Commit

Permalink
Notifier: fix notifs to show name, not description
Browse files Browse the repository at this point in the history
It was showing description instead of name (of movie).

Cherry-picked from upstream PR:
MindFlavor#14
  • Loading branch information
Manuel5cc authored and knocte committed Jan 10, 2024
1 parent 10a5a51 commit 39c00b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
# Define some variables for things we need
tag=$(git describe --tags --abbrev=0)
release_name="Jellyfin.Plugins.Telegram-$tag-${{ matrix.target }}"
bin_dir="bin/"
bin_dir="bin"
# Build everything
dotnet publish Jellyfin.Plugins.Telegram/Jellyfin.Plugins.Telegram.csproj --runtime "${{ matrix.target }}" -c Release -o "$release_name"
Expand Down
4 changes: 2 additions & 2 deletions Jellyfin.Plugins.Telegram/Notifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public async Task SendNotification(UserNotification request, CancellationToken c
await Notifier.SendNotification(
_httpClientFactory,
options.Token, options.ChatId, options.SilentNotificationEnabled,
string.IsNullOrEmpty(request.Description) ? request.Name : request.Description
string.IsNullOrEmpty(request.Name) ? request.Name : request.Description
);
}

Expand All @@ -77,4 +77,4 @@ private static bool IsValid(TelegramOptions options)
&& !string.IsNullOrEmpty(options.ChatId);
}
}
}
}

0 comments on commit 39c00b2

Please sign in to comment.