Skip to content

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