From eb60aaeaa0232ff5e3cfc6390bb869b0cb9ba6f0 Mon Sep 17 00:00:00 2001 From: Stefan Hess Date: Mon, 8 Sep 2025 15:23:56 +0700 Subject: [PATCH] add getISRC() --- src/GetId3.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/GetId3.php b/src/GetId3.php index 6c58262..9b674b6 100644 --- a/src/GetId3.php +++ b/src/GetId3.php @@ -251,6 +251,18 @@ public function getYear() return isset($this->comments()['year'][0]) ? $this->comments()['year'][0] : null; } + /** + * Get ISRC of track. + * + * @return string|null + * + * @throws \getid3_exception + */ + public function getISRC() + { + return isset($this->comments()['isrc'][0]) ? $this->comments()['isrc'][0] : null; + } + /** * Convert base64 image to jpeg. *