Description
Get a unique file identifier from UniqueFileIdentifier or Album, Year, Track
Usage
oik_tunes_get_UFI( $result, $fileinfo );Parameters
- $result
- ( array ) required – array of fields
- $fileinfo
- ( mixed ) required –
Returns
voidSource
File name: oik-tunes/admin/oik-tunes.phpLines:
1 to 15 of 15
function oik_tunes_get_UFI( $result, $fileinfo ) { $UFI = oik_tunes_get_field( $fileinfo, "uniquefileidentifier" ); $UFIs = explode( ";", $UFI ); if ( count( $UFIs ) == 3 ) { // array_pop( $URIs ); } else { p( "Missing uniquefileidentifier using Album;Year;Track" ); $UFIs = array(); $UFIs[] = bw_array_get( $result, "_oikt_album", "?" ); $UFIs[] = bw_array_get( $result, "_oikt_artist","?" ); $UFIs[] = bw_array_get( $result, "_oikt_track", "?" ); } $UFI = implode( ";", $UFIs ); return( $UFI ); }View on GitHub
Called by
1 to 1 of 1
Invoked by
Calls
1 to 2 of 2
Call hooks
API Letters:
