Skip to content

Commit

Permalink
Set default live stream type to MPEG-DASH for Kodi 21+ #1004
Browse files Browse the repository at this point in the history
  • Loading branch information
MoojMidge committed Dec 7, 2024
1 parent 0d4831e commit 595e5cb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -388,10 +388,10 @@ def use_mpd_videos(self, value=None):

def live_stream_type(self, value=None):
if self.use_isa():
default = 2
default = 3
setting = SETTINGS.LIVE_STREAMS + '.1'
else:
default = 0
default = 1
setting = SETTINGS.LIVE_STREAMS + '.2'
if value is not None:
return self.set_int(setting, value)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def process_default_settings(context, step, steps, **_kwargs):
settings.stream_select(4 if settings.ask_for_video_quality() else 3)
settings.set_subtitle_download(False)
if context.get_system_version().compatible(21):
settings.live_stream_type(2)
settings.live_stream_type(3)
else:
settings.live_stream_type(1)
if not xbmcvfs.exists('special://profile/playercorefactory.xml'):
Expand Down
2 changes: 1 addition & 1 deletion resources/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@
</setting>
<setting id="kodion.live_stream.selection.1" type="integer" label="30689" help="30690">
<level>0</level>
<default>2</default> <!-- isa_hls -->
<default>3</default> <!-- isa_mpd -->
<constraints>
<options>
<option label="30740">0</option> <!-- mpegts -->
Expand Down

0 comments on commit 595e5cb

Please sign in to comment.