Skip to content

Commit

Permalink
Merge pull request #1 from MindFlavor/compat_10.6.0
Browse files Browse the repository at this point in the history
Make it compatible with telegram 10.6
  • Loading branch information
Francesco Cogno authored Sep 17, 2020
2 parents fb14c74 + 1fc0838 commit 49d9554
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ bld/

# Visual Studio 2015/2017 cache/options directory
.vs/
.vscode/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/

Expand Down
8 changes: 4 additions & 4 deletions Jellyfin.Plugins.Telegram/Jellyfin.Plugins.Telegram.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<FileVersion>1.0.0.0</FileVersion>
<AssemblyVersion>1.1.0.0</AssemblyVersion>
<FileVersion>1.1.0.0</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand All @@ -14,8 +14,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Jellyfin.Controller" Version="10.5-*" />
<PackageReference Include="Jellyfin.Model" Version="10.5-*" />
<PackageReference Include="Jellyfin.Controller" Version="10.6-*" />
<PackageReference Include="Jellyfin.Model" Version="10.6-*" />
</ItemGroup>

</Project>
3 changes: 2 additions & 1 deletion Jellyfin.Plugins.Telegram/Notifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Notifications;
using MediaBrowser.Model.Serialization;
using Jellyfin.Data.Entities;

namespace Jellyfin.Plugins.Telegram
{
Expand Down Expand Up @@ -61,7 +62,7 @@ public bool IsEnabledForUser(User user)

public string Name => Plugin.Instance.Name;

private static TelegramOptions GetOptions(BaseItem user)
private static TelegramOptions GetOptions(User user)
{
return Plugin.Instance.Configuration.Options
.FirstOrDefault(u => string.Equals(u.UserId, user.Id.ToString("N"),
Expand Down
4 changes: 2 additions & 2 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ guid: "0269b736-58c7-436c-995b-0f7127092d5f"
# The version of the plugin, starting at 1. Note that the AssemblyVersion
# and FileVersion flags in the `.csproj` file must have two additional
# fiels, e.g. 1.0.0 to be built correctly.
version: "1" # Please increment with each pull request
version: "2" # Please increment with each pull request

# The supported Jellyfin version, usually the earliest binary-compatible
# version. Based on the Jellyfin components from NuGet.
jellyfin_version: "10.5.0" # The earliest binary-compatible version
jellyfin_version: "10.6.0" # The earliest binary-compatible version

# The owner name of the plugin, "jellyfin" for official plugins. Change
# to your own name if you wish to remain a 3rd-party plugin.
Expand Down

0 comments on commit 49d9554

Please sign in to comment.