Skip to content

Commit

Permalink
Merge pull request #862 from MoojMidge/master
Browse files Browse the repository at this point in the history
v7.0.9+beta.9
  • Loading branch information
MoojMidge authored Aug 4, 2024
2 parents e2b1ae5 + c7d507b commit 86ad02a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.youtube" name="YouTube" version="7.0.9+beta.8" provider-name="anxdpanic, bromix, MoojMidge">
<addon id="plugin.video.youtube" name="YouTube" version="7.0.9+beta.9" provider-name="anxdpanic, bromix, MoojMidge">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
<import addon="script.module.requests" version="2.27.1"/>
Expand Down
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v7.0.9+beta.9
### Fixed
- Fix not properly defining default audio role #861

## v7.0.9+beta.8
### Fixed
- Fix API requests failing if not logged in
Expand Down
2 changes: 2 additions & 0 deletions resources/lib/youtube_plugin/youtube/helper/stream_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -1825,6 +1825,7 @@ def _process_stream_data(self, stream_data, default_lang_code='und'):
else:
language_code = language
role_type = 4
role_str = '4'

if role_type == 4 or audio_track.get('audioIsDefault'):
role = 'main'
Expand Down Expand Up @@ -1858,6 +1859,7 @@ def _process_stream_data(self, stream_data, default_lang_code='und'):
language_code = default_lang_code
role = 'main'
role_type = 4
role_str = '4'
label = self._context.localize('stream.original')
mime_group = mime_type

Expand Down

0 comments on commit 86ad02a

Please sign in to comment.