Skip to content

Conversation

@back-to
Copy link
Collaborator

@back-to back-to commented Dec 12, 2020

  • create a list of stream_names and rename streams with the same resolution
  • defaultdict seems the easy way without changing a lot of tests
  • added test_10.mpd, so we have an actual test file for future updates

closes #3365

- create a list of stream_names and rename streams with the same resolution
- `defaultdict` seems the easy way without changing a lot of tests
- added `test_10.mpd`, so we have an actual test file for future updates
Copy link
Member

@bastimeyer bastimeyer left a comment

Choose a reason for hiding this comment

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

Do you want to keep this naming scheme? Plugin.streams() renames the duplicates like this, without the second underscore character:
foo, foo_alt, foo_alt2

elif num_alts > 0:
name = "{0}{1}".format(name, num_alts + 1)

Comment on lines 260 to 261
else:
ret_new[f'{q}_alt_{n}'] = items[n]
Copy link
Member

Choose a reason for hiding this comment

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

Without a third height=1080 entry in test_parse_manifest_with_duplicated_resolutions, the else-block is not covered by the tests.

@back-to back-to added the PR: squash commits Commits need to be squashed as a single commit - eg. multiple commits for a single component label Dec 12, 2020
@back-to
Copy link
Collaborator Author

back-to commented Dec 12, 2020

changed it to _alt2

@bastimeyer bastimeyer merged commit f1f2dc8 into streamlink:master Dec 13, 2020
Billy2011 added a commit to Billy2011/streamlink-27 that referenced this pull request Dec 13, 2020
Billy2011 added a commit to Billy2011/streamlink-27 that referenced this pull request Dec 13, 2020
@back-to back-to deleted the dash branch February 13, 2021 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: squash commits Commits need to be squashed as a single commit - eg. multiple commits for a single component stream: DASH

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shared resolution streams undetected by dash plugin

2 participants