Skip to content

Commit

Permalink
Merge pull request #119 from anxdpanic/tw
Browse files Browse the repository at this point in the history
now use inputstream.adaptive for dash support
  • Loading branch information
jdf76 authored Nov 28, 2016
2 parents 63f2716 + 028b44a commit 5db1910
Show file tree
Hide file tree
Showing 27 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</extension>
<extension point="xbmc.addon.metadata">
<news>
[add] MPEG-DASH support for Kodi 17 w/ inputstream.mpd Add-on
[add] MPEG-DASH support for Kodi 17 w/ inputstream.adaptive Add-on
[add] optional History and Watch Later custom playlist to Settings -> Folders, or (My)Playlists context menu to set/remove
[add] Maintenance section to Settings
[add] 'Subtitle language(s) to download' selection to Settings -> General
Expand Down
2 changes: 1 addition & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
5.3.5
[add] MPEG-DASH support for Kodi 17 w/ inputstream.mpd Add-on
[add] MPEG-DASH support for Kodi 17 w/ inputstream.adaptive Add-on
[add] optional History and Watch Later custom playlist to Settings -> Folders, or (My)Playlists context menu to set/remove
[add] Maintenance section to Settings
[add] 'Subtitle language(s) to download' selection to Settings -> General
Expand Down
2 changes: 1 addition & 1 deletion resources/language/Bulgarian/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -583,5 +583,5 @@ msgid "Force SSL Certificate verification"
msgstr ""

msgctxt "#30579"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.mpd appears to be disabled. Would you like to enable inputstream.mpd now?"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.adaptive appears to be disabled. Would you like to enable inputstream.adaptive now?"
msgstr ""
2 changes: 1 addition & 1 deletion resources/language/Chinese (Traditional)/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -583,5 +583,5 @@ msgid "Force SSL Certificate verification"
msgstr ""

msgctxt "#30579"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.mpd appears to be disabled. Would you like to enable inputstream.mpd now?"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.adaptive appears to be disabled. Would you like to enable inputstream.adaptive now?"
msgstr ""
2 changes: 1 addition & 1 deletion resources/language/Czech/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -583,5 +583,5 @@ msgid "Force SSL Certificate verification"
msgstr ""

msgctxt "#30579"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.mpd appears to be disabled. Would you like to enable inputstream.mpd now?"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.adaptive appears to be disabled. Would you like to enable inputstream.adaptive now?"
msgstr ""
2 changes: 1 addition & 1 deletion resources/language/Dutch/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -592,5 +592,5 @@ msgid "Force SSL Certificate verification"
msgstr ""

msgctxt "#30579"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.mpd appears to be disabled. Would you like to enable inputstream.mpd now?"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.adaptive appears to be disabled. Would you like to enable inputstream.adaptive now?"
msgstr ""
4 changes: 2 additions & 2 deletions resources/language/English/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ msgid "Use MPEG-DASH"
msgstr ""

msgctxt "#30008"
msgid "Configure MPEG-DASH InputStream Client"
msgid "Configure inputstream.adaptive"
msgstr ""

msgctxt "#30009"
Expand Down Expand Up @@ -600,5 +600,5 @@ msgid "Force SSL Certificate verification"
msgstr ""

msgctxt "#30579"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.mpd appears to be disabled. Would you like to enable inputstream.mpd now?"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.adaptive appears to be disabled. Would you like to enable inputstream.adaptive now?"
msgstr ""
2 changes: 1 addition & 1 deletion resources/language/French/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -592,5 +592,5 @@ msgid "Force SSL Certificate verification"
msgstr ""

msgctxt "#30579"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.mpd appears to be disabled. Would you like to enable inputstream.mpd now?"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.adaptive appears to be disabled. Would you like to enable inputstream.adaptive now?"
msgstr ""
2 changes: 1 addition & 1 deletion resources/language/German/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -583,5 +583,5 @@ msgid "Force SSL Certificate verification"
msgstr ""

msgctxt "#30579"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.mpd appears to be disabled. Would you like to enable inputstream.mpd now?"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.adaptive appears to be disabled. Would you like to enable inputstream.adaptive now?"
msgstr ""
4 changes: 2 additions & 2 deletions resources/language/Greek/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ msgctxt "#30007"
msgid "Use MPEG-DASH"
msgstr "Χρησιμοποίησε το MPEG-DASH"
msgctxt "#30008"
msgid "Configure MPEG-DASH InputStream Client"
msgid "Configure inputstream.adaptive"
msgstr "Ρύθμιση πελάτη MPEG-DASH Inputstream"

msgctxt "#30009"
Expand Down Expand Up @@ -598,5 +598,5 @@ msgid "Force SSL Certificate verification"
msgstr ""

msgctxt "#30579"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.mpd appears to be disabled. Would you like to enable inputstream.mpd now?"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.adaptive appears to be disabled. Would you like to enable inputstream.adaptive now?"
msgstr ""
2 changes: 1 addition & 1 deletion resources/language/Hebrew/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -583,5 +583,5 @@ msgid "Force SSL Certificate verification"
msgstr ""

msgctxt "#30579"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.mpd appears to be disabled. Would you like to enable inputstream.mpd now?"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.adaptive appears to be disabled. Would you like to enable inputstream.adaptive now?"
msgstr ""
2 changes: 1 addition & 1 deletion resources/language/Hungarian/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -583,5 +583,5 @@ msgid "Force SSL Certificate verification"
msgstr ""

msgctxt "#30579"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.mpd appears to be disabled. Would you like to enable inputstream.mpd now?"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.adaptive appears to be disabled. Would you like to enable inputstream.adaptive now?"
msgstr ""
2 changes: 1 addition & 1 deletion resources/language/Italian/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -583,5 +583,5 @@ msgid "Force SSL Certificate verification"
msgstr ""

msgctxt "#30579"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.mpd appears to be disabled. Would you like to enable inputstream.mpd now?"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.adaptive appears to be disabled. Would you like to enable inputstream.adaptive now?"
msgstr ""
2 changes: 1 addition & 1 deletion resources/language/Korean/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -583,5 +583,5 @@ msgid "Force SSL Certificate verification"
msgstr ""

msgctxt "#30579"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.mpd appears to be disabled. Would you like to enable inputstream.mpd now?"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.adaptive appears to be disabled. Would you like to enable inputstream.adaptive now?"
msgstr ""
6 changes: 3 additions & 3 deletions resources/language/Norwegian/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ msgid "Use MPEG-DASH"
msgstr "Bruk MPEG-DASH"

msgctxt "#30008"
msgid "Configure MPEG-DASH InputStream Client"
msgstr "Sett opp MPEG-DASH InputStream klient"
msgid "Configure inputstream.adaptive"
msgstr "Sett opp inputstream.adaptive"

msgctxt "#30009"
msgid "Always ask for the video quality"
Expand Down Expand Up @@ -600,5 +600,5 @@ msgid "Force SSL Certificate verification"
msgstr ""

msgctxt "#30579"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.mpd appears to be disabled. Would you like to enable inputstream.mpd now?"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.adaptive appears to be disabled. Would you like to enable inputstream.adaptive now?"
msgstr ""
2 changes: 1 addition & 1 deletion resources/language/Polish/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -583,5 +583,5 @@ msgid "Force SSL Certificate verification"
msgstr ""

msgctxt "#30579"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.mpd appears to be disabled. Would you like to enable inputstream.mpd now?"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.adaptive appears to be disabled. Would you like to enable inputstream.adaptive now?"
msgstr ""
6 changes: 3 additions & 3 deletions resources/language/Portuguese (Brazil)/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ msgid "Use MPEG-DASH"
msgstr "Usar Mpeg-Dash"

msgctxt "#30008"
msgid "Configure MPEG-DASH InputStream Client"
msgstr "Configurar o addon Mpeg-Dash InputStream Client"
msgid "Configure inputstream.adaptive"
msgstr "Configurar o addon inputstream.adaptive"

msgctxt "#30009"
msgid "Always ask for the video quality"
Expand Down Expand Up @@ -581,5 +581,5 @@ msgid "Force SSL Certificate verification"
msgstr ""

msgctxt "#30579"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.mpd appears to be disabled. Would you like to enable inputstream.mpd now?"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.adaptive appears to be disabled. Would you like to enable inputstream.adaptive now?"
msgstr ""
2 changes: 1 addition & 1 deletion resources/language/Portuguese/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -583,5 +583,5 @@ msgid "Force SSL Certificate verification"
msgstr ""

msgctxt "#30579"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.mpd appears to be disabled. Would you like to enable inputstream.mpd now?"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.adaptive appears to be disabled. Would you like to enable inputstream.adaptive now?"
msgstr ""
2 changes: 1 addition & 1 deletion resources/language/Romanian/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -583,5 +583,5 @@ msgid "Force SSL Certificate verification"
msgstr ""

msgctxt "#30579"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.mpd appears to be disabled. Would you like to enable inputstream.mpd now?"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.adaptive appears to be disabled. Would you like to enable inputstream.adaptive now?"
msgstr ""
2 changes: 1 addition & 1 deletion resources/language/Russian/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -592,5 +592,5 @@ msgid "Force SSL Certificate verification"
msgstr ""

msgctxt "#30579"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.mpd appears to be disabled. Would you like to enable inputstream.mpd now?"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.adaptive appears to be disabled. Would you like to enable inputstream.adaptive now?"
msgstr ""
2 changes: 1 addition & 1 deletion resources/language/Slovak/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -583,5 +583,5 @@ msgid "Force SSL Certificate verification"
msgstr ""

msgctxt "#30579"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.mpd appears to be disabled. Would you like to enable inputstream.mpd now?"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.adaptive appears to be disabled. Would you like to enable inputstream.adaptive now?"
msgstr ""
2 changes: 1 addition & 1 deletion resources/language/Spanish/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -583,5 +583,5 @@ msgid "Force SSL Certificate verification"
msgstr ""

msgctxt "#30579"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.mpd appears to be disabled. Would you like to enable inputstream.mpd now?"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.adaptive appears to be disabled. Would you like to enable inputstream.adaptive now?"
msgstr ""
2 changes: 1 addition & 1 deletion resources/language/Ukrainian/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -583,5 +583,5 @@ msgid "Force SSL Certificate verification"
msgstr ""

msgctxt "#30579"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.mpd appears to be disabled. Would you like to enable inputstream.mpd now?"
msgid "MPEG-DASH is enabled in the YouTube settings, however inputstream.adaptive appears to be disabled. Would you like to enable inputstream.adaptive now?"
msgstr ""
6 changes: 3 additions & 3 deletions resources/lib/kodion/impl/xbmc/xbmc_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ def to_video_item(context, video_item):
if video_item.get_context_menu() is not None:
item.addContextMenuItems(video_item.get_context_menu(), replaceItems=video_item.replace_context_menu())
pass

if video_item.use_dash():
item.setProperty('inputstreamaddon', 'inputstream.mpd')
else:
item.setProperty('inputstreamaddon', '')
item.setProperty('inputstreamaddon', 'inputstream.adaptive')
item.setProperty('inputstream.adaptive.manifest_type', 'mpd')

item.setProperty(u'IsPlayable', u'true')

Expand Down
4 changes: 2 additions & 2 deletions resources/lib/youtube/helper/video_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,9 +599,9 @@ def _method_get_video_info(self, video_id):
major_version = self._context.get_system_version().get_version()[0]
if major_version > 16:
use_dash = True
if not self._context.addon_enabled('inputstream.mpd'):
if not self._context.addon_enabled('inputstream.adaptive'):
if self._context.get_ui().on_yes_no_input(self._context.get_name(), self._context.localize(30579)):
use_dash = self._context.set_addon_enabled('inputstream.mpd')
use_dash = self._context.set_addon_enabled('inputstream.adaptive')
else:
use_dash = False
else:
Expand Down
4 changes: 2 additions & 2 deletions resources/lib/youtube/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,12 +485,12 @@ def on_search(self, search_text, context, re_match):
return result

@kodion.RegisterProviderPath('^/config/(?P<switch>.*)/$')
def configure_mpd_inputstream(self, context, re_match):
def configure_addon(self, context, re_match):
switch = re_match.group('switch')
if switch == 'youtube':
context._addon.openSettings()
elif switch == 'mpd':
xbmcaddon.Addon(id='inputstream.mpd').openSettings()
xbmcaddon.Addon(id='inputstream.adaptive').openSettings()
else:
return False

Expand Down
2 changes: 1 addition & 1 deletion resources/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!-- kodion Visual -->
<setting id="kodion.video.quality" type="enum" label="30010" enable="eq(1,false)" lvalues="30016|30017|30011|30012|30018" default="3"/>
<setting id="kodion.video.quality.ask" type="bool" label="30009" default="false"/>
<setting id="kodion.video.quality.mpd" type="bool" label="30007" default="false" enable="System.HasAddon(inputstream.mpd)"/>
<setting id="kodion.video.quality.mpd" type="bool" label="30007" default="false" enable="System.HasAddon(inputstream.adaptive)"/>
<setting id="kodion.video.quality.mpd.configure" type="action" label="30008" enable="eq(-1,true)" visible="eq(-1,true)" option="close" action="RunPlugin(plugin://plugin.video.youtube/config/mpd/)"/>
<setting id="kodion.subtitle.languages" type="enum" label="30560" lvalues="30561|30562|30563|30564|30565|30566" default="0"/>
<setting id="youtube.playlist.watchlater.autoremove" type="bool" label="30515" default="true" />
Expand Down

0 comments on commit 5db1910

Please sign in to comment.