Skip to content

Commit

Permalink
Format everything it complains about
Browse files Browse the repository at this point in the history
  • Loading branch information
razzeee committed Jan 25, 2024
1 parent ea1bb21 commit 8e5acc0
Show file tree
Hide file tree
Showing 13 changed files with 2,687 additions and 1,584 deletions.
497 changes: 302 additions & 195 deletions resources/lib/kodiUtilities.py

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions resources/lib/rating.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
"""Module used to launch rating dialogues and send ratings to Trakt"""

import xbmc
import xbmcaddon
import xbmcgui
from resources.lib import utilities
Expand Down Expand Up @@ -51,7 +50,7 @@ def rateMedia(media_type, itemsToRate, unrate=False, rating=None):
if summary_info['user']['ratings']['rating'] > 0:
rating = 0

if not rating is None:
if rating is not None:
logger.debug("'%s' is being unrated." % s)
__rateOnTrakt(rating, media_type, summary_info, unrate=True)
else:
Expand Down
4 changes: 2 additions & 2 deletions resources/lib/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def run():
for e in result['episodes']:
data['title'] = e['showtitle']
season = str(e['season'])
if not season in s:
if season not in s:
s[season] = []
if e['playcount'] == 0:
s[season].append(e['episode'])
Expand Down Expand Up @@ -375,7 +375,7 @@ def run():
for e in result['episodes']:
data['title'] = e['showtitle']
season = str(e['season'])
if not season in s:
if season not in s:
s[season] = []
if e['playcount'] == 0:
s[season].append(e['episode'])
Expand Down
521 changes: 340 additions & 181 deletions resources/lib/scrobbler.py

Large diffs are not rendered by default.

719 changes: 451 additions & 268 deletions resources/lib/service.py

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions resources/lib/sqlitequeue.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-

import os
import sys
import sqlite3
from json import loads, dumps

Expand Down Expand Up @@ -57,8 +56,8 @@ def __init__(self):

def __len__(self) -> int:
with self._get_conn() as conn:
l = conn.execute(self._count).fetchone()[0]
return l
executed = conn.execute(self._count).fetchone()[0]
return executed

def __iter__(self):
with self._get_conn() as conn:
Expand Down
Loading

0 comments on commit 8e5acc0

Please sign in to comment.