Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Miroshnychenko committed Dec 2, 2023
1 parent 9ca8f3a commit e3bcfbe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions plugin.video.external.library/libs/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import xbmcplugin
from xbmcgui import Dialog, ListItem

# pylint: disable=wildcard-import, unused-wildcard-import
from libs.content_type_handlers import *
from libs.exceptions import NoDataError, RemoteKodiError
from libs.kodi_service import ADDON, ADDON_ID, GettextEmulator, get_plugin_url
Expand Down
3 changes: 2 additions & 1 deletion plugin.video.external.library/libs/content_type_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ def get_item_url(self, media_info: Dict[str, Any]) -> str:
if media_info['season'] == 1:
return get_plugin_url(content_type='episodes', tvshowid=tvshowid,
parent_category=parent_category)
return get_plugin_url(content_type='seasons', tvshowid=tvshowid, parent_category=parent_category)
return get_plugin_url(content_type='seasons', tvshowid=tvshowid,
parent_category=parent_category)


class SeasonsHandler(BaseContentTypeHandler):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ max-bool-expr = 5
max-branches = 12

# Maximum number of locals for function / method body.
max-locals = 15
max-locals = 20

# Maximum number of parents for a class (see R0901).
max-parents = 7
Expand Down

0 comments on commit e3bcfbe

Please sign in to comment.