Description
Get a unique album identifier from UniqueFileIdentifier or Album, Artist, YearThe format of the UniqueFileIdentifier is expected to consist of 3 parts AMGa_id=R 32302;AMGp_id=P 16292;AMGt_id=T 3513495 where we treat the 3rd part as the track ID In order to create a unique Identifier for the recording we strip the 3rd part BUT if there aren't 3 parts then we invent one from the Album, Artist and Year
Usage
oik_tunes_get_URI( $result );Parameters
- $result
- ( mixed ) required –
Returns
voidSource
File name: oik-tunes/admin/oik-tunes.phpLines:
1 to 16 of 16
function oik_tunes_get_URI( $result ) { $URI = bw_array_get( $result, "_oikt_UFI", null ); //p( "$URI before" ); $URIs = explode( ";", $URI ); if ( count( $URIs ) == 3 ) { array_pop( $URIs ); } else { p( "Missing uniquefileidentifier using Album;Artist;Year" ); $URIs = array(); $URIs[] = bw_array_get( $result, "_oikt_album", "?" ); $URIs[] = bw_array_get( $result, "_oikt_artist","?" ); $URIs[] = bw_array_get( $result, "_oik_year", "?" ); } $URI = implode( ";", $URIs ); return( $URI ); }View on GitHub
Called by
1 to 1 of 1
Invoked by
Call hooks
API Letters:
