fix the faceberg urls
This commit is contained in:
		
							parent
							
								
									2913c58cec
								
							
						
					
					
						commit
						e6f77a9ca6
					
				| @ -579,6 +579,8 @@ class facebook{ | |||||||
| 				["video_metadata_model"] | 				["video_metadata_model"] | ||||||
| 				["relative_time_string"]; | 				["relative_time_string"]; | ||||||
| 			 | 			 | ||||||
|  | 			$url_prefix = "https://www.facebook.com/watch/live/?v="; | ||||||
|  | 			 | ||||||
| 		}elseif( | 		}elseif( | ||||||
| 			stripos( | 			stripos( | ||||||
| 				$edge | 				$edge | ||||||
| @ -602,6 +604,8 @@ class facebook{ | |||||||
| 					["video_duration_text"] | 					["video_duration_text"] | ||||||
| 				); | 				); | ||||||
| 			 | 			 | ||||||
|  | 			$url_prefix = "https://www.facebook.com/watch/live/?v="; | ||||||
|  | 			 | ||||||
| 		}else{ | 		}else{ | ||||||
| 			 | 			 | ||||||
| 			// handle normal format
 | 			// handle normal format
 | ||||||
| @ -630,6 +634,8 @@ class facebook{ | |||||||
| 					["video_thumbnail_model"] | 					["video_thumbnail_model"] | ||||||
| 					["video_duration_text"] | 					["video_duration_text"] | ||||||
| 				); | 				); | ||||||
|  | 			 | ||||||
|  | 			$url_prefix = "https://www.facebook.com/watch/?v="; | ||||||
| 		} | 		} | ||||||
| 		 | 		 | ||||||
| 		if( | 		if( | ||||||
| @ -706,7 +712,7 @@ class facebook{ | |||||||
| 					"ratio" => "16:9" | 					"ratio" => "16:9" | ||||||
| 				], | 				], | ||||||
| 			"url" => | 			"url" => | ||||||
| 				"https://www.facebook.com/watch/?v=" . | 				$url_prefix . | ||||||
| 				$edge | 				$edge | ||||||
| 				["video_click_model"] | 				["video_click_model"] | ||||||
| 				["click_metadata_model"] | 				["click_metadata_model"] | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 lolcat
						lolcat