Make sonarcloud happy

This commit is contained in:
venomousZealot 2021-05-05 14:08:48 +02:00 committed by GitHub
parent 1ae54a3e20
commit c79980c477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -596,8 +596,8 @@ class PlayUtils(object):
skip_dialog = int(settings('skipDialogTranscode') or 0) skip_dialog = int(settings('skipDialogTranscode') or 0)
audio_selected = None audio_selected = None
def get_track_title(trackIndex): def get_track_title(track_index):
return streams[trackIndex]['DisplayTitle'] or ("Track %s" % trackIndex) return streams[track_index]['DisplayTitle'] or ("Track %s" % track_index)
if audio: if audio:
audio_selected = audio audio_selected = audio