-1
Bitte das Stichwort für die Suche auf Google geben .. TutorialsWas ist der Name der Codes (//-\.*)
Erste Zeile in PHP-Datei
public function get_supported_url_patterns()
{
return array('/https?:\\/\\/(www\\.)?example\\.com\\/movies\\/[0-9]+\\/[^\\.]+\\.html.*/i');
}
2. Code
protected function get_content_page_url_finder_pattern()
{
return '|<a[^>]*href\\ *?=[\\ \'"]*?(https?:\\/\\/(www\\.)?example\\.com\\/movies\\/[0-9]+\\/[^\\.]+\\.html)[\\ \'">]?|i';
}
1 Beispiel:
protected function get_pagination_url_finder_selectors()
{
return array('.pager a');
}
2 EXA mple:
if (preg_match('/240p[\'"]\\ *:\\ *[\'"]([^\'"]*cdn[^\'"]*\\.com[^\'"]*)[\'"]/i', $page_code, $temp)) {
}
}
else {
}
str_replace('/', trim('\\/', '/', trim($temp[1])));
if (preg_match('/480p[\'"]\\ *:\\ *[\'"]([^\'"]*cdn[^\'"]*\\.com[^\'"]*)[\'"]/i', $page_code, $temp)) {
$result->add_video_file('480p', str_replace('\\/', '/', trim($temp[1])));
if (preg_match('/720p[\'"]\\ *:\\ *[\'"]([^\'"]*cdn[^\'"]*\\.com[^\'"]*)[\'"]/i', $page_code, $temp)) {
}
}
Vielen Dank für Hilfe
Reguläre Ausdrücke oder Muster –
Dank ... Robby Cornelissen – maks