Fix extraction of some properties in ItagItems for YouTube livestreams and post-live streams and remove completely SoundCloud HLS workaround #859
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.
This PR fixes an issue, when adding
ItagItem
's properties on livestreams and post livestreams, where thefps
,audioSampleRate
andaudioChannels
values were not set for these stream types (and so only set for video streams, thanks to aelse
introduced by @Stypox in c8a77da).This caused exceptions when creating DASH manifests of audio streams (because a valid number of audio channels is required in the
AudioChannelConfiguration
element of DASH manifests). To prevent it again, if this value is unknown, a fallback to2
has been added (because most YouTube audio streams have 2 channels).This PR also removes completely the SoundCloud HLS workaround which is being removed progressively by SoundCloud for MP3 streams too. Unfortunately, it means for UMG tracks (which have now a faster loading time because no HLS manifest is now fetched) that no progressive stream will be available for download in NewPipe.