Closed paugau closed 6 months ago
I'm quite new to C# so this might take me a bit to figure out.
I would like to know if you get any errors when you first start Jellyfin.
I don't get any errors at startup. I think I found a lead. I have a movie named Captain Marvel, which does have a json file but this one doesn't have an associated youtube video. I think it's this movie that makes crash the plugin. I added a request-movie and I'm waiting for it to be modified to see if the bug comes from there
Interesting... I'll try to look into it soon.
Although this project doesn't use youtube-dl
, I suspect this issue is actually related to https://github.com/ytdl-org/youtube-dl/issues/31530
It seems that YouTube is changing some things in their API.
The page structure, anyway.
Could this code be asking yt-dl to extract the movie metadata when it isn't already present? Or extracting it in some other way that is also broken by the new page structure?
This project isn't using youtube-dl
, it uses YoutubeExplode.
Could you test this build? https://github.com/LizardByte/Themerr-jellyfin/actions/runs/4162433864#artifacts
You must be logged in to download artifacts.
I'm sorry, I have exactly the same issue
Sorry to ask again, but can you test this build? https://github.com/LizardByte/Themerr-jellyfin/actions/runs/4287066053/jobs/7467461435#artifacts
I still have a mistake but it has changed a bit. Here it is :
[2023-03-01 23:06:32.807 +00:00] [INF] [10] Jellyfin.Plugin.Themerr.ThemerrManager: "Moonraker" theme song not in database, or no internet connection
[2023-03-01 23:06:32.807 +00:00] [ERR] [10] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error
Newtonsoft.Json.JsonReaderException: Additional text encountered after finished reading JSON content: }. Path '', line 1, position 120.
at Newtonsoft.Json.JsonTextReader.Read()
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Jellyfin.Plugin.Themerr.ThemerrManager.DownloadAllThemerr()
at Jellyfin.Plugin.Themerr.ScheduledTasks.DownloadThemerrTask.ExecuteAsync(IProgress`1 progress, CancellationToken cancellationToken)
at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)
[2023-03-01 23:06:32.808 +00:00] [INF] [10] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Download Theme Songs" Failed after 0 minute(s) and 5 seconds
[2023-03-01 23:06:32.808 +00:00] [INF] [10] Emby.Server.Implementations.ScheduledTasks.TaskManager: ExecuteQueuedTasks
@paugau another build which adds some new error handling: https://github.com/LizardByte/Themerr-jellyfin/actions/runs/4309130653/jobs/7516157078#artifacts
I have other errors that appear for each film, in addition to the same error at the end :
[2023-03-02 14:17:14.624 +00:00] [INF] [102] Jellyfin.Plugin.Themerr.ThemerrManager: Unknown exception occured for "Die Hard 4 : Retour en enfer": "System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 404 (Not Found).)
---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at System.Net.Http.HttpClient.GetStringAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at Jellyfin.Plugin.Themerr.ThemerrManager.DownloadAllThemerr()"
Can you share a larger section of the log?
Yes of course. However it is exactly this bit of error that repeats itself for every film I have. Here is an extract from the log :
[2023-03-03 12:36:22.792 +00:00] [INF] [195] Emby.Server.Implementations.ScheduledTasks.TaskManager: Executing "Download Theme Songs"
[2023-03-03 12:36:22.793 +00:00] [INF] [195] Jellyfin.Plugin.Themerr.ThemerrManager: Starting plugin, Downloading Movie Theme Songs...
[2023-03-03 12:36:23.346 +00:00] [INF] [195] Jellyfin.Plugin.Themerr.ThemerrManager: Unknown exception occured for "Hannibal": "System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 404 (Not Found).)
---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at System.Net.Http.HttpClient.GetStringAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at Jellyfin.Plugin.Themerr.ThemerrManager.DownloadAllThemerr()"
[2023-03-03 12:36:23.801 +00:00] [INF] [195] Jellyfin.Plugin.Themerr.ThemerrManager: Unknown exception occured for "Die Hard 4 : Retour en enfer": "System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 404 (Not Found).)
---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at System.Net.Http.HttpClient.GetStringAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at Jellyfin.Plugin.Themerr.ThemerrManager.DownloadAllThemerr()"
[2023-03-03 12:36:23.924 +00:00] [INF] [195] Jellyfin.Plugin.Themerr.ThemerrManager: Unknown exception occured for "Parasite": "System.AggregateException: One or more errors occurred. (Response status code does not indicate success: 404 (Not Found).)
---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at System.Net.Http.HttpClient.GetStringAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at Jellyfin.Plugin.Themerr.ThemerrManager.DownloadAllThemerr()"
And at the end, after all errors for each film, I have this error code :
[2023-03-03 12:36:50.594 +00:00] [ERR] [195] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error
Newtonsoft.Json.JsonReaderException: Additional text encountered after finished reading JSON content: }. Path '', line 1, position 120.
at Newtonsoft.Json.JsonTextReader.Read()
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Jellyfin.Plugin.Themerr.ThemerrManager.DownloadAllThemerr()
at Jellyfin.Plugin.Themerr.ScheduledTasks.DownloadThemerrTask.ExecuteAsync(IProgress 1 progress, CancellationToken cancellationToken)
at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)
[2023-03-03 12:36:50.596 +00:00] [INF] [195] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Download Theme Songs" Failed after 0 minute(s) and 27 seconds
[2023-03-03 12:36:50.615 +00:00] [INF] [195] Emby.Server.Implementations.ScheduledTasks.TaskManager: ExecuteQueuedTasks`
This issue is stale because it has been open for 90 days with no activity. Comment or remove the stale label, otherwise this will be closed in 10 days.
This issue was closed because it has been stalled for 10 days with no activity.
Don't know if possible to post here and got answers, but I got the same issue as OP. I'm not using docker here, but I've extracted fresh files and 0.01 version as well, none are working.
Newtonsoft.Json.JsonReaderException: Additional text encountered after finished reading JSON content: }. Path '', line 1, position 120.
at Newtonsoft.Json.JsonTextReader.Read()
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Jellyfin.Plugin.Themerr.ThemerrManager.DownloadAllThemerr()
at Jellyfin.Plugin.Themerr.Api.ThemerrController.DownloadMovieThemerrRequest()
at lambda_method928(Closure , Object )
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Jellyfin.Server.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager)
at Jellyfin.Server.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager)
at Jellyfin.Server.Middleware.IpBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager)
at Jellyfin.Server.Middleware.LanFilteringMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager)
at Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Jellyfin.Server.Middleware.QueryStringDecodingMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Jellyfin.Server.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext)
at Jellyfin.Server.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context)
at Jellyfin.Server.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager)
at Jellyfin.Server.Middleware.ExceptionMiddleware.Invoke(HttpContext context)```
If you're using a new build, I think (not 100% sure) you can solve this by manually removing existing themerr.json
files. I apologize, that it's not the easiest solution.
You can try this build https://github.com/LizardByte/Themerr-jellyfin/actions/runs/6533867706?pr=12#artifacts
Please let me know if that solves the issue, and if so I can probably programmatically resolve this.
It seems this issue hasn't had any activity in the past 90 days. If it's still something you'd like addressed, please let us know by leaving a comment. Otherwise, to help keep our backlog tidy, we'll be closing this issue in 10 days. Thanks!
This issue was closed because it has been stalled for 10 days with no activity.
Describe the Bug
I'm receiving the following error when trying to run Themerr-jellyfin.
Jellyfin Version : 10.8.8
Themerr-Jellyfin Version : 0.0.1.0
Operating System: Linux
Architecture: X64`
Is there anyway to fix this?
Expected Behavior
No response
Additional Context
No response