#2750·Tautulli

Recently Added notification re-fires on quality upgrades / file re-adds (wire up the dead "Send a Notification for New Versions" toggle + fix grouped-item dedup bypass)

Author: rancurCreated Jul 6, 2026Updated Aug 10, 2026
Labelstype:enhancementtopic:notificationspriority:someday

Is your feature request related to a problem?

Yes. Recently Added notifications re-fire for old library items whenever a quality-upgrade file replaces the original (e.g. a 1080p→4K swap of an existing Season). Plex bumps the item's added_at and emits a created timeline event, so Tautulli treats the long-existing item as "recently added" again and sends a duplicate on_created notification.

Measured on a live server (v2.17.1): 45 of 170 on_created fires over 60 days (~26%) were re-fires of items whose added_at was 15–235 days older than the notification. Every single stale re-fire was a season or show (grouped grandparent/parent) — zero movies or episodes. Example: a Season whose added_at is 2025-11-20 fired again on 2026-07-05 (227 days later); another Season fired on 5 consecutive days as its file was repeatedly upgraded.

What is your feature request?

Make the existing (currently dead) "Send a Notification for New Versions" setting actually work, so upgrades can be distinguished from truly-new content.

Two related findings:

1. The toggle already exists but is unwired. NOTIFY_RECENTLY_ADDED_UPGRADE is defined in config.py and rendered in settings.html — but it is explicitly labeled [Not working] in the UI and is read by zero code paths. It's dead config.

2. Root cause of the re-fires — the DB dedup is bypassed for grouped items. In activity_handler.py::on_created, the recently_added dedup only runs when child_keys is absent:

python
if 'child_keys' not in kwargs:
    if data_factory.get_recently_added_item(rating_key):
        notify = False

Grouped season/show notifications always carry child_keys (from clear_recently_added_queue), so they never get deduped against the recently_added table. That's why movies (deduped) never re-fire but grouped seasons/shows (never deduped) do. The guard exists because a grandparent legitimately re-fires when a new child appears under an existing show — so a blanket grandparent-level dedup would wrongly suppress "new episode of existing show."

Proposed solution

Dedup at the leaf level instead of the grandparent level, and gate it behind the existing NOTIFY_RECENTLY_ADDED_UPGRADE toggle:

  • On a grouped on_created, check each of child_keys against recently_added.
  • If every child already exists in recently_added → this is a pure upgrade/re-add → suppress (unless NOTIFY_RECENTLY_ADDED_UPGRADE is enabled).
  • If any child is new → it's genuinely new content (new episode/season) → notify as today.

Sketch:

python
data_factory = datafactory.DataFactory()
child_keys = kwargs.get('child_keys', [])
keys_to_check = child_keys or [rating_key]
all_existing = all(data_factory.get_recently_added_item(k) for k in keys_to_check)

if all_existing and not plexpy.CONFIG.NOTIFY_RECENTLY_ADDED_UPGRADE:
    logger.debug("Recently added item %s is an upgrade/re-add (all children already seen). Not notifying." % rating_key)
    notify = False

This wires up the dead toggle so both use cases are served by one option:

  • OFF (default): suppress notifications for pure upgrades/re-adds (this request).
  • ON: notify on upgrades/replacements — which is exactly what #1928 and #1457 asked for.

Tautulli already has all the data needed (recently_added stores rating_key + media_info); no extra Plex calls required beyond the existing per-key metadata fetch.

Are there any workarounds?

None that truly distinguish upgrade-vs-new. A notifier custom condition on {release_date}/{air_date} can suppress old-catalog re-adds, but it also silently drops legitimate first-adds of older catalog content and misses upgrades of recently-released titles — so it trades duplicate alerts for missed real ones. The recently_added-membership signal that would discriminate cleanly is not exposed to the condition engine.

Additional Context

  • Related (same mechanism, opposite preference — both solved by the same toggle): #1928 (notify when a movie file is replaced), #1457 (notify on new duplicates).
  • The abandoned added_at age-check is still visible commented-out just above the dedup block in on_created, suggesting this gap has been known.