Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
script.spotify.screensaver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
kodi
script.spotify.screensaver
Commits
4acc479f
Commit
4acc479f
authored
3 years ago
by
Benoît Harrault
Browse files
Options
Downloads
Patches
Plain Diff
Add "paused" and "stopped" event types
parent
c9be3476
No related branches found
No related tags found
1 merge request
!10
Resolve "Add "paused" and "stopped" events"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
addon.xml
+1
-1
1 addition, 1 deletion
addon.xml
gui.py
+8
-0
8 additions, 0 deletions
gui.py
with
9 additions
and
1 deletion
addon.xml
+
1
−
1
View file @
4acc479f
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon
id=
"script.spotify.screensaver"
name=
"Spotify Screensaver"
version=
"0.0.
7
"
version=
"0.0.
8
"
provider-name=
"Benoît Harrault"
>
<requires>
<import
addon=
"xbmc.python"
version=
"2.25.0"
/>
...
...
This diff is collapsed.
Click to expand it.
gui.py
+
8
−
0
View file @
4acc479f
...
...
@@ -122,6 +122,9 @@ class GUI(xbmcgui.WindowXMLDialog):
self
.
next
=
True
elif
event_type
==
'
preloading
'
:
self
.
_preload_images
(
event_value
)
elif
event_type
==
'
paused
'
or
event_type
==
'
stopped
'
:
self
.
_remove_images
()
self
.
next
=
True
else
:
self
.
log
(
'
unknown event type:
'
+
event_type
,
xbmc
.
LOGERROR
)
...
...
@@ -135,6 +138,11 @@ class GUI(xbmcgui.WindowXMLDialog):
self
.
PanelItems
.
reset
()
self
.
PanelItems
.
addItems
(
self
.
_get_track_data
(
track_id
))
def
_remove_images
(
self
):
self
.
log
(
'
no played track. remove images
'
,
xbmc
.
LOGERROR
)
self
.
PanelItems
=
self
.
getControl
(
101
)
self
.
PanelItems
.
reset
()
def
_get_track_data
(
self
,
track_id
):
self
.
log
(
'
track_id: [
'
+
str
(
track_id
)
+
'
]
'
,
xbmc
.
LOGERROR
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment