-
Notifications
You must be signed in to change notification settings - Fork 426
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
fix: Handle audio only audio track change correctly #1100
Merged
+1,711
−1,065
Merged
Changes from 17 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
50615df
fix: Handle audio only playlists without main playlists
brandonocasey 7270777
fix jsdocs
brandonocasey b48ee53
code review
brandonocasey 1c6b5af
Merge branch 'main' into fix/audio-only-groups
brandonocasey 2da9d29
fixes from code review
brandonocasey 7ad23c7
test fixes
brandonocasey c957dde
more test fixes
brandonocasey 8005060
code review
brandonocasey 812205a
fix tests
brandonocasey d0353d2
Merge remote-tracking branch 'origin/main' into fix/audio-only-groups
brandonocasey 7ce84dc
add tests for isAudioOnly/playlistMatch
brandonocasey 827edce
test audio only selector
brandonocasey ceece05
media group test improvements
brandonocasey 01396be
Merge remote-tracking branch 'origin/main' into fix/audio-only-groups
brandonocasey 83b3e7c
test more code
brandonocasey fba0523
test getAudioTrackPlaylists_
brandonocasey 4a4813f
ie 11 fix
brandonocasey 46b00e7
code review
brandonocasey c1b4501
improve coverage
brandonocasey 94bdda3
switch instantly to alternative main audio
brandonocasey 5a485ab
Revert "switch instantly to alternative main audio"
brandonocasey 5691211
Update test/media-groups.test.js
brandonocasey a9bfc51
switch to assert true/false
brandonocasey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there's no master, is it OK that this returns
undefined
? Would it be better to return[]
?The comment above may need to be changed too otherwise. And would returning
master.playlists
end up returning non audio only tracks?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will make it return an empty array without a master. It will could end up returning non-audio playlists but if we don't have audio groups and this function is called, which should only happen if we detect that the playlist is audio only, Then we should just return the main playlists.