Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit dbf90c5

Browse files
committed
Fix transcode status checking for PDF files
1 parent 8ec0fb0 commit dbf90c5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

admin/rt-retranscode-admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ function RetranscodeMediaFinishUp() {
512512
'id' => array(),
513513
),
514514
);
515-
?>
515+
?>
516516

517517
if ( rt_errors > 0 ) {
518518
rt_resulttext = '<?php echo wp_kses( $text_failures, $allowed_tags ); ?>';

admin/rt-transcoder-handler.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,6 +1510,9 @@ public function get_transcoding_status( $post_id ) {
15101510
$results = $wpdb->get_results( $wpdb->prepare( 'SELECT id FROM %s WHERE media_id = %d', $wpdb->prefix . 'rt_rtm_media', $post_id ), OBJECT ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery
15111511
$response['media_id'] = $results[0]->id;
15121512

1513+
} elseif ( ! empty( $status_info ) && 'processed' === $status_info->status && ( 'pdf' === $status_info->job_type ) ) {
1514+
$message = $messages['success'];
1515+
$status = 'Success';
15131516
} elseif ( ! empty( $status_info ) ) {
15141517
$message = $status_info->status;
15151518
}

0 commit comments

Comments
 (0)