|
|
@@ -263,9 +263,9 @@ class Route_BiallNet_SyncProjectFiles extends RouteBase {
|
|
|
} else {
|
|
|
DBG::nicePrint($matches, 'TODO: logo/title $matches');
|
|
|
}
|
|
|
- preg_match_all('/Na kanale: (\d*)\W*<\/p>/', $tag, $matches, PREG_SET_ORDER);
|
|
|
+ preg_match_all('/Na kanale: (\d*)[\W\n\r]*<\/p>/', $tag, $matches, PREG_SET_ORDER);
|
|
|
// DBG::nicePrint($matches, '$matches');
|
|
|
- if (!empty($matches[0]) && 2 == count($matches[0])) {
|
|
|
+ if (!empty($matches[0]) && count($matches[0]) > 1) {
|
|
|
$logoToya['nr'] = $matches[0][1];
|
|
|
} else {
|
|
|
DBG::nicePrint($matches, 'TODO: "Na kanale .*" $matches');
|
|
|
@@ -292,7 +292,7 @@ class Route_BiallNet_SyncProjectFiles extends RouteBase {
|
|
|
if (!empty($matches[0]) && 2 == count($matches[0])) {
|
|
|
$desc = trim($matches[0][1]);
|
|
|
} else {
|
|
|
- DBG::nicePrint($matches, 'TODO: "Na kanale .*" $matches');
|
|
|
+ DBG::nicePrint([$matches, htmlspecialchars($tag)], 'TODO: "Na kanale .*" $matches');
|
|
|
}
|
|
|
if ($desc) {
|
|
|
$logoToya['desc'] = $desc;
|