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. *