Skip to content

Commit 9885b89

Browse files
committed
chore: Base64 encode get_simple_data_table title/description fields
Resolves #642
1 parent 715fd8c commit 9885b89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Http/Controllers/XtreamApiController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,11 +1556,11 @@ public function handle(Request $request)
15561556
$epgListings[] = [
15571557
'id' => $programme['id'] ?? $index,
15581558
'epg_id' => (string) $epg->id,
1559-
'title' => $programme['title'] ?? '',
1559+
'title' => base64_encode($programme['title'] ?? ''),
1560+
'description' => base64_encode($programme['desc'] ?? ''),
15601561
'lang' => $programme['lang'] ?? 'en',
15611562
'start' => $startTime->format('Y-m-d H:i:s'),
15621563
'end' => $endTime->format('Y-m-d H:i:s'),
1563-
'description' => $programme['desc'] ?? '',
15641564
'channel_id' => $channel->epgChannel->channel_id,
15651565
'start_timestamp' => (string) $startTime->timestamp,
15661566
'stop_timestamp' => (string) $endTime->timestamp,

0 commit comments

Comments
 (0)