Scrape: Always take the first alias
This commit is contained in:
parent
df961742da
commit
7362dce2f4
|
@ -444,7 +444,7 @@ function probe_url($url, $mode = PROBE_NORMAL, $level = 1) {
|
||||||
if($link['@attributes']['rel'] === 'alias') {
|
if($link['@attributes']['rel'] === 'alias') {
|
||||||
if(strpos($link['@attributes']['href'],'@') === false) {
|
if(strpos($link['@attributes']['href'],'@') === false) {
|
||||||
if(isset($profile)) {
|
if(isset($profile)) {
|
||||||
if($link['@attributes']['href'] !== $profile)
|
if(($link['@attributes']['href'] !== $profile) AND ($alias == ""))
|
||||||
$alias = unamp($link['@attributes']['href']);
|
$alias = unamp($link['@attributes']['href']);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user