If more than one recording is imported in a cron they'll all have the first entry's title. All the other information is correct. Maybe the token module has some caching that needs to be cleared.

CommentFileSizeAuthor
#1 audio_176737.patch810 bytesdrewish

Comments

drewish’s picture

Project: Station » Audio
Component: Archive » Code
Status: Active » Reviewed & tested by the community
StatusFileSize
new810 bytes

turns out that that the problem was with the audio module's audio_api_insert() function being called multiple times. the token module caches the tokens between calls to token_replace() even when the node changes. this works around it by calling token_get_values('node', $node, TRUE); to flush the cache.

drewish’s picture

Title: Importing multiple recordings in one cron run results in incorrect titles » Caching of tokens causes duplicate titles when importing multiple audio files
Status: Reviewed & tested by the community » Fixed

Committed to HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.