Warn if "Play next video automatically" is enabled, cause it breaks PKC playback report
This commit is contained in:
parent
0a978188b4
commit
5facbddfc7
3 changed files with 20 additions and 0 deletions
|
@ -31,6 +31,11 @@ msgctxt "#30002"
|
||||||
msgid "Preferred playback method"
|
msgid "Preferred playback method"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
# Warning displayed if Kodi setting is enabled. Be sure to escape the quotes again! The exact wording can be found in the Kodi settings, player settings, videos
|
||||||
|
msgctxt "#30003"
|
||||||
|
msgid "Warning: Kodi setting \"Play next video automatically\" is enabled. This could break PKC. Deactivate?"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgctxt "#30004"
|
msgctxt "#30004"
|
||||||
msgid "Log level"
|
msgid "Log level"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
|
@ -529,6 +529,20 @@ class InitialSetup(object):
|
||||||
# Do we need to migrate stuff?
|
# Do we need to migrate stuff?
|
||||||
check_migration()
|
check_migration()
|
||||||
|
|
||||||
|
# Display a warning if Kodi puts ALL movies into the queue, basically
|
||||||
|
# breaking playback reporting for PKC
|
||||||
|
if js.settings_getsettingvalue('videoplayer.autoplaynextitem'):
|
||||||
|
LOG.warn('Kodi setting videoplayer.autoplaynextitem is enabled!')
|
||||||
|
if settings('warned_setting_videoplayer.autoplaynextitem') == 'false':
|
||||||
|
# Only warn once
|
||||||
|
settings('warned_setting_videoplayer.autoplaynextitem',
|
||||||
|
value='true')
|
||||||
|
# Warning: Kodi setting "Play next video automatically" is
|
||||||
|
# enabled. This could break PKC. Deactivate?
|
||||||
|
if dialog('yesno', lang(29999), lang(30003)):
|
||||||
|
js.settings_setsettingvalue('videoplayer.autoplaynextitem',
|
||||||
|
False)
|
||||||
|
|
||||||
# If a Plex server IP has already been set
|
# If a Plex server IP has already been set
|
||||||
# return only if the right machine identifier is found
|
# return only if the right machine identifier is found
|
||||||
if self.server:
|
if self.server:
|
||||||
|
|
|
@ -122,6 +122,7 @@
|
||||||
<setting id="bestTrailer" type="bool" label="30542" default="true" />
|
<setting id="bestTrailer" type="bool" label="30542" default="true" />
|
||||||
<setting id="force_transcode_pix" type="bool" label="30545" default="false" />
|
<setting id="force_transcode_pix" type="bool" label="30545" default="false" />
|
||||||
<setting id="kodi_video_cache" type="number" visible="false" default="20971520" />
|
<setting id="kodi_video_cache" type="number" visible="false" default="20971520" />
|
||||||
|
<setting id="warned_setting_videoplayer.autoplaynextitem" type="bool" visible="false" default="false" />
|
||||||
</category>
|
</category>
|
||||||
|
|
||||||
<category label="30544"><!-- artwork -->
|
<category label="30544"><!-- artwork -->
|
||||||
|
|
Loading…
Reference in a new issue