benecaster_migration_transcript_imported
Fires once for each transcript the wizard’s optional transcript step brought in from the podcaster’s source feed, after the Transcription Service has stored it. Use it to react specifically to a migration bringing transcripts across. To react to any transcript arriving, use Transcription’s benecaster_transcript_imported, which fires first for each of these imports too.
$format is the <podcast:transcript> tag’s type as the source feed wrote it (text/vtt, application/x-subrip, text/plain, possibly with a ; charset=… and in any case), not Transcription’s format slug. For the slug, read it from benecaster_transcript_imported.
Not fired for anything that was not stored: an episode that already had a finished transcript, one whose transcription is queued or running, a transcript whose episode could not be identified, a file that could not be fetched or parsed, or a show Transcription is switched off for.
Episodes are matched on the GUID they had in the feed they were imported from, with a case-insensitive, whitespace-normalised title as the fallback. An ambiguous title matches nothing.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$episode_id |
int |
— | The episode the transcript was attached to. |
$transcript_id |
int |
— | The row id Transcription returned. |
$format |
string |
— | The feed tag's `type`, as written. |
$source_url |
string |
— | Where the file was fetched from. |
Need this built rather than just documented? See our services →