Scrape: Always take the first alias
This commit is contained in:
		
					parent
					
						
							
								dcb8d51a4c
							
						
					
				
			
			
				commit
				
					
						24afcdd5dd
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -444,7 +444,7 @@ function probe_url($url, $mode = PROBE_NORMAL, $level = 1) {
 | 
			
		|||
				if($link['@attributes']['rel'] === 'alias') {
 | 
			
		||||
					if(strpos($link['@attributes']['href'],'@') === false) {
 | 
			
		||||
						if(isset($profile)) {
 | 
			
		||||
							if($link['@attributes']['href'] !== $profile)
 | 
			
		||||
							if(($link['@attributes']['href'] !== $profile) AND ($alias == ""))
 | 
			
		||||
								$alias = unamp($link['@attributes']['href']);
 | 
			
		||||
						}
 | 
			
		||||
						else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue