|
@@ -44,12 +44,15 @@ class Cron
|
|
|
$url = explode('/', $v[$video['url_m3u8']]);
|
|
|
$index = count($url)-1;
|
|
|
$date = explode('_', str_replace('.m3u8', '', $url[$index]));
|
|
|
- if ($date[0] != $v[$video['sdate']]) {
|
|
|
- $state = true;
|
|
|
- }
|
|
|
- if ($date[1] != $v[$video['edate']]) {
|
|
|
- $state = true;
|
|
|
+ if (isset($date[0]) && isset($date[1])) {
|
|
|
+ if ($date[0] != $v[$video['sdate']]) {
|
|
|
+ $state = true;
|
|
|
+ }
|
|
|
+ if ($date[1] != $v[$video['edate']]) {
|
|
|
+ $state = true;
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
} else {
|
|
|
$state = true;
|
|
|
}
|