mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Flake8 linting
This commit is contained in:
parent
b1c9f95a86
commit
6d61a83b54
6 changed files with 7 additions and 6 deletions
|
@ -183,6 +183,7 @@ def get_item_count(parent_id, item_type=None, params=None):
|
||||||
|
|
||||||
return result.get('TotalRecordCount', 1)
|
return result.get('TotalRecordCount', 1)
|
||||||
|
|
||||||
|
|
||||||
def get_items(parent_id, item_type=None, basic=False, params=None):
|
def get_items(parent_id, item_type=None, basic=False, params=None):
|
||||||
|
|
||||||
query = {
|
query = {
|
||||||
|
|
|
@ -69,7 +69,6 @@ class LogHandler(logging.StreamHandler):
|
||||||
|
|
||||||
xbmc.log(string, level=self.level)
|
xbmc.log(string, level=self.level)
|
||||||
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _get_log_level(cls, level):
|
def _get_log_level(cls, level):
|
||||||
|
|
||||||
|
|
|
@ -437,8 +437,7 @@ class Music(KodiDb):
|
||||||
''' This updates: Favorite, LastPlayedDate, Playcount, PlaybackPositionTicks
|
''' This updates: Favorite, LastPlayedDate, Playcount, PlaybackPositionTicks
|
||||||
Poster with progress bar
|
Poster with progress bar
|
||||||
'''
|
'''
|
||||||
server_address = self.server.auth.get_server_info(self.server.auth.server_id)['address']
|
|
||||||
API = api.API(item, server_address)
|
|
||||||
obj = self.objects.map(item, 'SongUserData')
|
obj = self.objects.map(item, 'SongUserData')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -4,7 +4,6 @@ from __future__ import division, absolute_import, print_function, unicode_litera
|
||||||
#################################################################################################
|
#################################################################################################
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import shutil
|
|
||||||
import xml.etree.ElementTree as etree
|
import xml.etree.ElementTree as etree
|
||||||
|
|
||||||
from six.moves.urllib.parse import urlencode
|
from six.moves.urllib.parse import urlencode
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
from __future__ import division, absolute_import, print_function, unicode_literals
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
Loading…
Reference in a new issue