Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sick-Beard
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
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
Sick-Beard
Commits
817358c3
Commit
817358c3
authored
10 years ago
by
Jérôme Bonnamy
Browse files
Options
Downloads
Patches
Plain Diff
adding pushbullet personal channels clean
parent
b5c4f580
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
sickbeard/notifiers/pushbullet.py
+3
-3
3 additions, 3 deletions
sickbeard/notifiers/pushbullet.py
with
3 additions
and
3 deletions
sickbeard/notifiers/pushbullet.py
+
3
−
3
View file @
817358c3
...
@@ -29,7 +29,7 @@ from sickbeard import logger, common
...
@@ -29,7 +29,7 @@ from sickbeard import logger, common
class
PushbulletNotifier
:
class
PushbulletNotifier
:
def
test_notify
(
self
,
pushbullet_api
):
def
test_notify
(
self
,
pushbullet_api
):
return
self
.
_sendPushbullet
(
pushbullet_api
,
message
=
"
Test
"
,
event
=
"
Testing Pushbullet settings from Sick Beard
"
,
method
=
"
POST
"
,
notificationType
=
"
note
"
,
force
=
True
)
return
self
.
_sendPushbullet
(
pushbullet_api
,
event
=
"
Test
"
,
message
=
"
Testing Pushbullet settings from Sick Beard
"
,
method
=
"
POST
"
,
notificationType
=
"
note
"
,
force
=
True
)
def
get_devices
(
self
,
pushbullet_api
):
def
get_devices
(
self
,
pushbullet_api
):
return
self
.
_sendPushbullet
(
pushbullet_api
,
method
=
"
GET
"
,
force
=
True
)
return
self
.
_sendPushbullet
(
pushbullet_api
,
method
=
"
GET
"
,
force
=
True
)
...
@@ -39,11 +39,11 @@ class PushbulletNotifier:
...
@@ -39,11 +39,11 @@ class PushbulletNotifier:
def
notify_snatch
(
self
,
ep_name
):
def
notify_snatch
(
self
,
ep_name
):
if
sickbeard
.
PUSHBULLET_NOTIFY_ONSNATCH
:
if
sickbeard
.
PUSHBULLET_NOTIFY_ONSNATCH
:
self
.
_sendPushbullet
(
pushbullet_api
=
None
,
message
=
common
.
notifyStrings
[
common
.
NOTIFY_SNATCH
],
event
=
"
Snatched ->
"
+
ep_name
,
notificationType
=
"
note
"
,
method
=
"
POST
"
)
self
.
_sendPushbullet
(
pushbullet_api
=
None
,
event
=
common
.
notifyStrings
[
common
.
NOTIFY_SNATCH
],
message
=
ep_name
,
notificationType
=
"
note
"
,
method
=
"
POST
"
)
def
notify_download
(
self
,
ep_name
):
def
notify_download
(
self
,
ep_name
):
if
sickbeard
.
PUSHBULLET_NOTIFY_ONDOWNLOAD
:
if
sickbeard
.
PUSHBULLET_NOTIFY_ONDOWNLOAD
:
self
.
_sendPushbullet
(
pushbullet_api
=
None
,
message
=
common
.
notifyStrings
[
common
.
NOTIFY_DOWNLOAD
],
event
=
"
DL ->
"
+
ep_name
,
notificationType
=
"
note
"
,
method
=
"
POST
"
)
self
.
_sendPushbullet
(
pushbullet_api
=
None
,
event
=
common
.
notifyStrings
[
common
.
NOTIFY_DOWNLOAD
],
message
=
ep_name
,
notificationType
=
"
note
"
,
method
=
"
POST
"
)
def
notify_subtitle_download
(
self
,
ep_name
,
lang
):
def
notify_subtitle_download
(
self
,
ep_name
,
lang
):
if
sickbeard
.
PUSHBULLET_NOTIFY_ONSUBTITLEDOWNLOAD
:
if
sickbeard
.
PUSHBULLET_NOTIFY_ONSUBTITLEDOWNLOAD
:
...
...
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