Faster join syntax for checking method

This commit is contained in:
Matt 2019-10-08 14:00:31 -04:00
parent d77d619b50
commit 6ba4ee8fc6

View file

@ -66,7 +66,7 @@ class Monitor(xbmc.Monitor):
elif sender.startswith('upnextprovider'): elif sender.startswith('upnextprovider'):
LOG.info('Attempting to play the next episode via upnext') LOG.info('Attempting to play the next episode via upnext')
method = '.'.join(method.split('.')[1:]) method = method.split('.', 1)[1]
if method not in ('plugin.video.jellyfin_play_action',): if method not in ('plugin.video.jellyfin_play_action',):
LOG.info('Received invalid upnext method: %s', method) LOG.info('Received invalid upnext method: %s', method)