It looks like that in some videos there is (mistakenly?) a second English audio track. In the case of the video in the reproduction steps, one has the following info in its API response (filtered output):
Trying in official YouTube, it seems that the non-original English audio track is indeed not English. However, in Piped only one of those tracks appear in the list. After some digging, I found this part of the code, which should prioritize the original, over the dubbed track and/or not use substr(0, 2) as it results to "en" for both tracks: https://github.com/TeamPiped/Piped/blob/6275202f2cf3d04e84097727e0423c5dd49e62cc/src/utils/DashUtils.js#L69-L76
Official Instance
Describe the bug
It looks like that in some videos there is (mistakenly?) a second English audio track. In the case of the video in the reproduction steps, one has the following info in its API response (filtered output):
and the other English track has this info:
Trying in official YouTube, it seems that the non-original English audio track is indeed not English. However, in Piped only one of those tracks appear in the list. After some digging, I found this part of the code, which should prioritize the original, over the dubbed track and/or not use
substr(0, 2)
as it results to "en" for both tracks: https://github.com/TeamPiped/Piped/blob/6275202f2cf3d04e84097727e0423c5dd49e62cc/src/utils/DashUtils.js#L69-L76To Reproduce
Expected behavior
It should be English
Logs/Errors
No response
Browser, and OS with Version.
Firefox 122.0.1 on Debian 12
Additional context
No response