mirror of
https://github.com/standardebooks/web.git
synced 2025-07-08 15:50:29 -04:00
Remove National Museum in Warsaw as an approved source
This commit is contained in:
parent
a5bd5d18ad
commit
b167f7dabb
2 changed files with 11 additions and 13 deletions
|
@ -537,21 +537,21 @@ class Museum{
|
|||
|
||||
return $outputUrl;
|
||||
}
|
||||
elseif(preg_match('/\bart\.pl$/ius', $parsedUrl['host'])){
|
||||
$exampleUrl = 'https://cyfrowe.mnw.art.pl/en/catalog/445066';
|
||||
// elseif(preg_match('/\bart\.pl$/ius', $parsedUrl['host'])){
|
||||
// $exampleUrl = 'https://cyfrowe.mnw.art.pl/en/catalog/445066';
|
||||
|
||||
if($parsedUrl['host'] != 'cyfrowe.mnw.art.pl'){
|
||||
throw new Exceptions\InvalidMuseumUrlException($url, $exampleUrl);
|
||||
}
|
||||
// if($parsedUrl['host'] != 'cyfrowe.mnw.art.pl'){
|
||||
// throw new Exceptions\InvalidMuseumUrlException($url, $exampleUrl);
|
||||
// }
|
||||
|
||||
if(!preg_match('|^/en/catalog/[^/]+?$|ius', $parsedUrl['path'])){
|
||||
throw new Exceptions\InvalidMuseumUrlException($url, $exampleUrl);
|
||||
}
|
||||
// if(!preg_match('|^/en/catalog/[^/]+?$|ius', $parsedUrl['path'])){
|
||||
// throw new Exceptions\InvalidMuseumUrlException($url, $exampleUrl);
|
||||
// }
|
||||
|
||||
$outputUrl = 'https://' . $parsedUrl['host'] . $parsedUrl['path'];
|
||||
// $outputUrl = 'https://' . $parsedUrl['host'] . $parsedUrl['path'];
|
||||
|
||||
return $outputUrl;
|
||||
}
|
||||
// return $outputUrl;
|
||||
// }
|
||||
elseif(preg_match('/\blenbachhaus\.de$/', $parsedUrl['host'])){
|
||||
$exampleUrl = 'https://www.lenbachhaus.de/en/digital/collection-online/detail/hymnus-an-michelangelo-30036437';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue