l3uddz / traktarr

Script to add new series & movies to Sonarr/Radarr based on Trakt lists.
GNU General Public License v3.0
576 stars 52 forks source link

Notification is added 0 Shows/Movies #118

Open g4m3r7ag opened 4 years ago

g4m3r7ag commented 4 years ago

Describe the bug I have traktarr checking two lists for shows and two lists for movies. For each, one list has no new items to add, while 3 items get added from the other list. I receive a notification after the first list of

"added 3 items from list x"

Then I receive notification

"added 0 items from list y"

Which is correct so far. Then the problem notification

"added 0 total shows/movies to sonarr/radarr"

It seems to be keying off the second list checked which adds 0 items or just sees the 0 items added on the list and sends that. I'm not sure what would happen if items were added on a third list after the 0 items added list.

To Reproduce Steps to reproduce the behavior: Add two lists, one that will add items to sonarr/radarr then one that will not be able to add any items to your sonarr/radarr. Let traktarr run against both and it should report x number of items added on the first list, 0 items added on the second list, then a final notification of 0 items total added to sonarr/radarr.

Expected behavior Notification should read the actual total number of items added to sonarr/radarr

g4m3r7ag commented 4 years ago

Confirmed it is keying off the number of items added from the last list added. Tonight it added 3 items from the first list and 2 items from the second list and the notification for total items added was 2 instead of 5. These are custom lists items are being added from that are created by Listrr.