Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/stream and subtitle relative url #641

Open
wants to merge 7 commits into
base: development
Choose a base branch
from

Conversation

elpiel
Copy link
Member

@elpiel elpiel commented Feb 12, 2024

After receiving a response from an addon, converts all relative paths to absolute Url to the addon.
This cannot be done on deserialization since the addon url is not known at this point.
Sadly, due to serde's complexity, we cannot use a generic argument to specify 2 types - one right after deserialization and one after replacement, in order to allow for the rest of the core to rely entirely on absolute Urls.

TODO

  • test with ResourceResponse::Meta
  • test with ResourceResponse::MetasDetailed
  • test with ResourceResponse::Metas
  • test with ResourceResponse::Streams
  • test with ResourceResponse::Subtitles
  • Documentation for new RelativePath url for Subtitles
  • Documentation for new RelativePath url for Stream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant