This change optimizes metadata handling by moving the mp.observe_property registration out of the global scope. By moving it to notify_current_media with a brief sleep interval instead, we avoid redundant notifications that were previously triggered twice during the initial file load. This results in a cleaner notification experience when playing new media.

Prevent redundant metadata observe notifications on file load in notify-send.lua - zhengqunkoo/mpv-notify-send