Skip to content

Commit

Permalink
Misc tidy ups
Browse files Browse the repository at this point in the history
  • Loading branch information
MoojMidge committed Jan 24, 2024
1 parent affd3d0 commit 14603bd
Show file tree
Hide file tree
Showing 18 changed files with 124 additions and 122 deletions.
16 changes: 8 additions & 8 deletions resources/lib/youtube_plugin/kodion/abstract_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,29 +37,29 @@ def __init__(self):
# register some default paths
self.register_path(r'^/$', '_internal_root')

self.register_path(r''.join([
self.register_path(r''.join((
'^/',
paths.WATCH_LATER,
'/(?P<command>add|clear|list|remove)/?$'
]), '_internal_watch_later')
)), '_internal_watch_later')

self.register_path(r''.join([
self.register_path(r''.join((
'^/',
paths.FAVORITES,
'/(?P<command>add|clear|list|remove)/?$'
]), '_internal_favorite')
)), '_internal_favorite')

self.register_path(r''.join([
self.register_path(r''.join((
'^/',
paths.SEARCH,
'/(?P<command>input|query|list|remove|clear|rename)/?$'
]), '_internal_search')
)), '_internal_search')

self.register_path(r''.join([
self.register_path(r''.join((
'^/',
paths.HISTORY,
'/$'
]), 'on_playback_history')
)), 'on_playback_history')

self.register_path(r'(?P<path>.*\/)extrafanart\/([\?#].+)?$',
'_internal_on_extra_fanart')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(self, context, name=None, image=None, fanart=None):

super(FavoritesItem, self).__init__(name,
context.create_uri(
[paths.FAVORITES, 'list']
(paths.FAVORITES, 'list',),
),
image=image)

Expand Down
Loading

0 comments on commit 14603bd

Please sign in to comment.