Skip to content

Commit

Permalink
fix dazn enddate
Browse files Browse the repository at this point in the history
  • Loading branch information
racacax committed Aug 23, 2024
1 parent a26fe41 commit fc3e6c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion integrity.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d9e7b299599ce84cfed845ef3900c121ebb93497903004a787da3ed8df8f55f8
75af559f69022957910b99fca40f2a0a1c4a20342c257c143e0eb9cda58135d4
2 changes: 1 addition & 1 deletion src/Component/Provider/DAZN.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function constructEPG(string $channel, string $date)
$end = strtotime($match['date']) + self::$MATCH_DURATION;
$entries = [['startTime' => $startCurrentDate, 'endTime' => min($start, $endCurrentDate), 'prefix' => 'Prochain match : '],
['startTime' => $start, 'endTime' => $end, 'prefix' => ''],
['startTime' => max($start, $startCurrentDate), 'endTime' => $endCurrentDate, 'prefix' => 'Match précédent : ']];
['startTime' => max($end, $startCurrentDate), 'endTime' => $endCurrentDate, 'prefix' => 'Match précédent : ']];
foreach ($entries as $entry) {
if($entry['startTime'] > $endCurrentDate || $entry['endTime'] < $startCurrentDate) {
continue;
Expand Down
2 changes: 1 addition & 1 deletion src/Component/XmlExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function startExport(string $filePath)
$this->content->formatOutput = true;
$this->content->loadXML('<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tv SYSTEM "resources/validation/xmltv.dtd">
<!-- Generated with XML TV Fr v2.13.0 -->
<!-- Generated with XML TV Fr v2.13.1 -->
<tv/>');
$this->content->documentElement->setAttribute('source-info-url', 'https://github.com/racacax/XML-TV-Fr');
$this->content->documentElement->setAttribute('source-info-name', 'XML TV Fr');
Expand Down

0 comments on commit fc3e6c7

Please sign in to comment.