working livestreams!
This commit is contained in:
@@ -140,6 +140,11 @@ public class SRFApiClient : IDisposable
|
||||
var fullUrl = $"{BaseUrl}{url}";
|
||||
_logger.LogInformation("Fetching media composition for URN: {Urn} from {Url}", urn, fullUrl);
|
||||
|
||||
// HttpClient consistently fails with 404, use curl directly
|
||||
// This is likely due to routing/network configuration on the Jellyfin server
|
||||
return await FetchWithCurlAsync(fullUrl, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
/* HttpClient fallback disabled - always returns 404
|
||||
var response = await _httpClient.GetAsync(url, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
// Log response headers to diagnose geo-blocking
|
||||
@@ -178,17 +183,7 @@ public class SRFApiClient : IDisposable
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
catch (HttpRequestException ex)
|
||||
{
|
||||
_logger.LogError(
|
||||
ex,
|
||||
"HTTP error fetching media composition for URN: {Urn} - StatusCode: {StatusCode}, trying curl fallback",
|
||||
urn,
|
||||
ex.StatusCode);
|
||||
|
||||
var fullUrl = $"{BaseUrl}/mediaComposition/byUrn/{urn}.json";
|
||||
return await FetchWithCurlAsync(fullUrl, cancellationToken).ConfigureAwait(false);
|
||||
*/
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user