public function getDIDL() { $this->Arr[TrackURI] = ProtectPath(RelativePath($this->Arr[FileNamePath])); if (file_exists(pathinfo($this->Arr[FileNamePath], PATHINFO_DIRNAME) . "/folder.png")) { $this->Arr[AlbumArtURI] = ProtectPath(RelativePath(pathinfo($this->Arr[FileNamePath], PATHINFO_DIRNAME) . "/folder.png")); } else { $this->Arr[AlbumArtURI] = ProtectPath(RelativePath(pathinfo($this->Arr[FileNamePath], PATHINFO_DIRNAME) . "/folder.jpg")); } return DIDL_Song($this->Arr[TrackURI], $this->Arr[AlbumArtURI], $this->Arr[Artist], $this->Arr[AlbumArtist], $this->Arr[Album], $this->Arr[Title], $this->Arr[Date], $this->Arr[Genre], $this->Arr[TrackNo], $this->Arr[Duration], $this->Arr[DiscNo], $this->Arr[DiscCount], $this->Arr[BitRate], $this->Arr[SampleRate], $this->Arr[BitsPerSample], $this->Arr[FileSize]); }
function DIDL_Example() { global $NL; $Res = ""; $Res .= Linn_Track(DIDL_Song("http://192.168.0.105/musik/EAC/Al%20Di%20Meola/Electric%20Rendezvous/Al%20Di%20Meola+Electric%20Rendezvous+01%20God%20Bird%20Change.flac", "http://192.168.0.105/musik/EAC/Al%20Di%20Meola/Electric%20Rendezvous/folder.jpg", "Al Di Meola", "Electric Rendezvous", "God Bird Change", 1982, "Fusion", 1, "00:00:00", 1, 1)); $Res .= $NL; $Res .= Linn_Track(DIDL_Song("http://192.168.0.105/musik/EAC/Al%20Di%20Meola/Electric%20Rendezvous/Al%20Di%20Meola+Electric%20Rendezvous+01%20God%20Bird%20Change.flac", "http://192.168.0.105/musik/EAC/Al%20Di%20Meola/Electric%20Rendezvous/folder.jpg", "Al Di Meola", "Electric Rendezvous", "God Bird Change", 1982, "Fusion", 2, "00:00:00", 1, 1)); print Linn_Playlist($Res) . $NL; }