Compare commits

..

5 Commits
master ... beta

Author SHA1 Message Date
Patrick
a198bb24f2 fix: missing font (#332)
## Branch
- [x] I branched off beta (not master) to develop this feature/fix

## Description

Cannot run without the font missing.
```
Unhandled exception. System.InvalidOperationException: Default font family name can't be null or empty.
   at Avalonia.Media.FontManager.GetDefaultFontFamilyName(FontManagerOptions options)
   at Avalonia.Media.FontManager..ctor(IFontManagerImpl platformImpl)
   at Avalonia.Media.FontManager.get_Current()
   at Avalonia.AppBuilder.<>c__DisplayClass71_0.<ConfigureFonts>b__0(AppBuilder appBuilder)
   at Avalonia.AppBuilder.SetupUnsafe()
   at Avalonia.AppBuilder.Setup()
   at Avalonia.AppBuilder.SetupWithLifetime(IApplicationLifetime lifetime)
   at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder builder, String[] args, Action`1 lifetimeBuilder)
   at Jellyfin2Samsung.Program.Main(String[] args) in Samsung-Jellyfin-Installer/Jellyfin2Samsung-CrossOS/Program.cs:line 25
```

## Fixes
Adds missing packages to the nix shell.

---

## Type of Change

- [x] Bug fix (non-breaking change)
- [ ] New feature (non-breaking change)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Other (please describe):

---

## Checklist

- [x] My code follows the existing project structure and style  
- [x] I have tested my changes manually  
- [x] I have added necessary documentation (if applicable)  
- [x] I have verified that the installer still works with the underlying
CLI
2026-05-04 14:30:45 +02:00
github-actions[bot]
82142edf2e chore: update version table in README [skip ci] 2026-05-04 12:28:29 +00:00
Patrick Stel
fccd1f2acb GitHub Auth for SDB 2026-05-04 14:24:44 +02:00
Jarda-H
12a815a9ee fix: missing font 2026-05-03 23:16:54 +02:00
github-actions[bot]
fef471797d chore: update version table in README [skip ci] 2026-04-23 13:00:08 +00:00
4 changed files with 24 additions and 5 deletions

View File

@@ -85,7 +85,7 @@ namespace Jellyfin2Samsung.Helpers
// ----- Application-scoped settings (readonly at runtime) -----
public string ReleasesUrl { get; set; } = "https://api.github.com/repos/jeppevinkel/jellyfin-tizen-builds/releases";
public string AuthorEndpoint { get; set; } = "https://dev.tizen.samsung.com/apis/v2/authors";
public string AppVersion { get; set; } = "v2.2.0.8";
public string AppVersion { get; set; } = "v2.2.0.9";
public string TizenSdb { get; set; } = "https://api.github.com/repos/PatrickSt1991/tizen-sdb/releases";
public string JellyfinAvRelease { get; set; } = "https://api.github.com/repos/PatrickSt1991/tizen-jellyfin-avplay/releases";
public string JellyfinAvReleaseFork { get; set; } = "https://api.github.com/repos/asamahy/tizen-jellyfin-avplay/releases";

View File

@@ -1,5 +1,6 @@
using System;
using System.Diagnostics;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading;
@@ -17,7 +18,7 @@ namespace Jellyfin2Samsung.Helpers.Core
_token = token;
}
protected override Task<HttpResponseMessage> SendAsync(
protected override async Task<HttpResponseMessage> SendAsync(
HttpRequestMessage request,
CancellationToken cancellationToken)
{
@@ -26,7 +27,23 @@ namespace Jellyfin2Samsung.Helpers.Core
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", _token);
}
return base.SendAsync(request, cancellationToken);
var response = await base.SendAsync(request, cancellationToken);
// Token is expired or revoked — retry unauthenticated for public endpoints
if (response.StatusCode == HttpStatusCode.Unauthorized &&
request.Headers.Authorization != null)
{
Trace.TraceWarning("[GitHubAuth] Token rejected (401) — retrying without authorization");
var retry = new HttpRequestMessage(request.Method, request.RequestUri);
foreach (var header in request.Headers)
{
if (!string.Equals(header.Key, "Authorization", StringComparison.OrdinalIgnoreCase))
retry.Headers.TryAddWithoutValidation(header.Key, header.Value);
}
response = await base.SendAsync(retry, cancellationToken);
}
return response;
}
private static bool IsGitHubRequest(Uri? uri)

View File

@@ -31,8 +31,8 @@
| Channel | Version | Notes |
|------------|---------------------------------------------------------------------|------------------------------|
| **Stable** | [v2.2.0.7](https://github.com/Jellyfin2Samsung/Samsung-Jellyfin-Installer/releases/tag/v2.2.0.7) | Recommended for most users |
| **Beta** | [v2.2.0.8-beta](https://github.com/Jellyfin2Samsung/Samsung-Jellyfin-Installer/releases/tag/v2.2.0.8-beta) | Includes new features |
| **Stable** | [v2.2.0.8](https://github.com/Jellyfin2Samsung/Samsung-Jellyfin-Installer/releases/tag/v2.2.0.8) | Recommended for most users |
| **Beta** | [v2.2.0.9-beta](https://github.com/Jellyfin2Samsung/Samsung-Jellyfin-Installer/releases/tag/v2.2.0.9-beta) | Includes new features |
<!-- versions:end -->

View File

@@ -28,6 +28,8 @@ let
fontconfig
freetype
libGL
dejavu_fonts
freefont_ttf
# X11 tools
xorg.libX11