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

Support for inheriting BaseURL and alternate BaseURLs #17

Merged
merged 2 commits into from
Jan 23, 2018

Conversation

mjneil
Copy link
Contributor

@mjneil mjneil commented Jan 19, 2018

No description provided.

timeline: undefined
}
}, {
attributes: {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The subtitle representation gets duplicated here because of the way alternate base urls are generated. There are 2 parent level base urls, so we resolve this base url wrt both of those, however since this base url is absolute, we resolve the absolute url twice.

This shouldn't really be an issue because in organizeVttPlaylists we skip vtt playlists that we already have a playlist for that language.

If we want to not produce these duplicates, then the base url creation logic will have to account for absolute urls lower down the tree and filter out duplicates. Thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may have more complicated vtt playlist support in the future that might involve different tracks with the same language and type (maybe). Perhaps dedupe in organizeVttPlaylists if we know it will always be unsegmented?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually let's leave that as a TODO and get to it when we need to

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ya we will probably want to dedupe based on AdaptionSet ID since that seems to be where the lang is defined

@forbesjo forbesjo self-assigned this Jan 22, 2018
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.

2 participants