From 4410dd063d02cd561abb7ee48b3d101bd42b3f83 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Fri, 12 Feb 2016 23:20:15 +0000
Subject: [PATCH] [mod_tv] Usunięcie kanału Religia TV

---
 data/tv/pobierz.php |   17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/data/tv/pobierz.php b/data/tv/pobierz.php
index e79af95..aebb5b8 100644
--- a/data/tv/pobierz.php
+++ b/data/tv/pobierz.php
@@ -37,8 +37,8 @@
 	436 => 'FilmBox',
 	433 => 'FilmBox Extra',
 	174 => 'AXN',
-	418 => 'AXN Crime',
-	416 => 'AXN Sci-fi',
+	538 => 'AXN Black',
+	539 => 'AXN White',
 	85 => 'Ale Kino!',
 	205 => 'Kino Polska',
 	403 => 'TCM',
@@ -52,7 +52,6 @@
 	78 => 'Zone Romantica',
 	267 => 'Zone Europa',
 	84 => 'Zone Reality',
-	434 => 'Religia TV',
 	449 => 'BBC CBeebies',
 	74 => 'Jetix',
 	217 => 'ZigZap',
@@ -95,8 +94,14 @@
 	$doc = new DOMDocument('1.0', 'utf-8');
 	@$doc->loadHTMLFile('./cache/'.$num.'_'.$date);
 	
-	$wp = new wp_parse($doc);
-	$wp->xmltv($station, $out);
+	try {
+		$wp = new wp_parse($doc);
+		$wp->xmltv($station, $out);
+	} catch(Exception $e) {
+		echo "\n";
+		echo STAR.'Błąd przy pobieraniu danych dla kanału '.$station.FAIL."\n";
+		continue;
+	}
 	
 	$counter++;
 }
@@ -117,4 +122,4 @@
 	}
 }
 echo OK;
-?>
+?>
\ No newline at end of file

--
Gitblit v1.9.1