You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each add-on submission should be a single commit with using the following style: [script.foo.bar] 1.0.0
Additional information :
Submitting your add-on to this specific branch makes it available to any Kodi version equal or higher than the branch name with the applicable Kodi dependencies limits.
Kodi pydocs provide information about the Python API
PEP8 codingstyle which is considered best practise but not mandatory.
This add-on repository has automated code guideline check which could help you improve your coding. You can find the results of these check at Codacy. You can create your own account as well to continuously monitor your python coding before submitting to repo.
Development questions can be asked in the add-on development section on the Kodi forum.
Reorganizes the entry point and refreshes metadata, documentation, licensing, translations, and artwork.
Confidence Score: 4/5
The Retry-After parser should be fixed before merging because valid server cooldown dates can be shortened and cause repeated rate-limit failures.
The request path handles only numeric Retry-After values, while the new cross-invocation throttle and hash timeout also have non-blocking lifecycle and concurrency weaknesses.
Implements API access, throttling, response decoding, and subtitle persistence; valid date-form Retry-After values are ignored and shared throttle state is race-prone.
service.subtitles.napiprojekt/service.py
Provides a minimal Kodi entry point that imports and executes the add-on request handler.
service.subtitles.napiprojekt/addon.xml
Updates add-on metadata, Python dependency, subtitle entry point, licensing, language, and artwork declarations.
The reason will be displayed to describe this comment to others. Learn more.
Retry-After dates are discarded
When NapiProjekt returns HTTP 429 with a valid HTTP-date in Retry-After, float() rejects it and substitutes the ten-second fallback, causing requests to resume before the server's requested cooldown and potentially repeat the rate-limit failure.
The reason will be displayed to describe this comment to others. Learn more.
Throttle reservations are not atomic
If separate add-on invocations overlap, both can read and reserve the same timestamp or overwrite a longer 429 cooldown, defeating the cross-invocation interval and producing avoidable rate-limit failures.
The reason will be displayed to describe this comment to others. Learn more.
Timed-out hash workers remain active
When a network-backed video read exceeds fifteen seconds, timeout() returns without cancelling or joining the worker, so Kodi reports a hash failure while the abandoned thread continues reading and retaining its VFS resource.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This update restores the functionality of the NapiProjekt subtitle add-on for modern Kodi versions and the current NapiProjekt API.
Main changes
Retry-Afterhandling;.srt);[start][end](.sub);{start}{end}(.sub);Checklist:
Additional information :