]> jfr.im git - plex-to-listenbrainz.git/commitdiff
ignore non-tracks
authorJohn Runyon <redacted>
Thu, 25 Jan 2024 01:54:37 +0000 (18:54 -0700)
committerJohn Runyon <redacted>
Thu, 25 Jan 2024 01:54:37 +0000 (18:54 -0700)
plex-to-listenbrainz.php

index bbc3484638daa93bfb4bcdbb135f07934d2643ea..26f11f0fa8dfaa07ff01075bd9672e2bf12bfa29 100644 (file)
@@ -18,6 +18,9 @@ if (!in_array($plex['event'], explode(' ', 'media.scrobble media.play media.resu
 if (mb_strtolower($plex['Account']['title']) != mb_strtolower($_GET['user'])) {
        exit;
 }
+if ($plex['Metadata']['type'] != 'track') {
+       exit;
+}
 
 $DIR = __DIR__;
 $listenbrainz = array(