Skip to content

Commit c377f5e

Browse files
authored
notifier: Show actions on a notification (#217)
Mainly used to provide a "Open in Browser" button on a scrobble notification.
1 parent 8c7f687 commit c377f5e

File tree

5 files changed

+196
-150
lines changed

5 files changed

+196
-150
lines changed

poetry.lock

Lines changed: 106 additions & 71 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,13 @@ urllib3 = "^1.26.0"
2525
guessit = "^3.3.1"
2626
appdirs = "^1.4.4"
2727
pywin32 = {version = ">=227", platform = "win32"}
28-
win10toast = {version = "^0.9", platform = "win32"}
2928
cleo = "^0.8.1"
3029
confuse = "^2.0"
3130
pysocks = {version = "^1.7.1", optional = true}
32-
jeepney = {version = "^0.8", platform = "linux"}
3331
urlmatch = "^1.0.1"
3432
pydantic = "^1.10.2"
3533
toml = "^0.10.2"
34+
desktop-notifier = "^3.4.1"
3635

3736
[tool.poetry.dev-dependencies]
3837

trakt_scrobbler/config_default.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '1.0'
22

33
general:
4-
enable_notifs:
4+
enable_notifs: # yes, no, or object
55
exception: yes
66
misc: yes
77
scrobble:
@@ -10,6 +10,14 @@ general:
1010
resume: yes
1111
stop: yes
1212
trakt: yes
13+
notif_actions:
14+
enabled: yes # yes, no, or object similar to enable_notifs
15+
# how to interact with the first (most prominent) action
16+
# * button => Show a button in the notification popup. Supported everywhere but looks ugly.
17+
# * click => Entire notification is clickable, will hide the button.
18+
# Only on supported environments; user should manually verify that it works.
19+
# if there are multiple actions they will still show up as buttons
20+
primary_interface: button
1321
proxies: {}
1422
allowed_scrobbles:
1523
episode: all # all, stop-only, none

0 commit comments

Comments
 (0)