Skip to content

Cache specific Innertube errors for some time #145

@Fijxu

Description

@Fijxu

Some video ids requested will have errors like This video has been removed by the uploader or This video is no longer available due to a copyright claim. We already know that video ids with those kind of errors will never be available/watchable again, so we could cache those video ids with their responses from Innertube to prevent doing useless additional requests to Innertube.

So if a deleted video is requested from Invidious (or via the /youtubei/v1/player endpoint) and the video response is cached, companion will return the cached response instead of doing a request again to Innertube.

This will help reduce the amount of requests that we do to Innertube, probably lowering the amount of blockages from Youtube ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions