ljunkie / plexWatch

Notify and Log watched content on a Plex Media Server
430 stars 59 forks source link

Multiple Prowl Recipients #88

Open broyuken opened 9 years ago

broyuken commented 9 years ago

I would like to be able to add a second prowl recipient to only get notifications for when new content is added to my server. I have tried adding the following, but only my account is getting the notifications.

The second user is on android, and would be using Notify My Android.

In plexWatch.pl: sub GetNotifyfuncs() { my %notify_func = ( prowl => &NotifyProwl, prowl_seconduser => &NotifyProwl,

my @dbcol = ( { 'name' => 'debug', 'definition' => 'text',}, { 'name' => 'file', 'definition' => 'INTEGER',}, { 'name' => 'twitter', 'definition' => 'INTEGER',}, { 'name' => 'growl', 'definition' => 'INTEGER',}, { 'name' => 'prowl', 'definition' => 'INTEGER',}, { 'name' => 'prowl_seconduser', 'definition' => 'INTEGER',},

In config.pl 'prowl_seconduser' => { 'enabled' => 1, ## 0 or 1 - set to 1 to enable PROWL 'push_recentlyadded' => 1, 'push_watched' => 0, 'push_watching' => 0, 'push_paused' => 0, 'push_resumed' => 0, 'apikey' => 'secondusersapikeywenthere', ## your API key 'application' => '{user}', 'priority' => 0, 'url' => '', },

Is there something else I need to modify to get a second prowl account to work?