| 
					
				 | 
			
			
				@@ -42,7 +42,12 @@ class Dy_KS: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     response = requests.request(url=url, method='GET', headers=headers, allow_redirects=False, timeout=30) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     location = response.headers.get('Location', None) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    video_id = re.search(r'/video/(\d+)/?', location.split('?')[0] if location else url).group(1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    match = re.search(r'/video/(\d+)/?', location.split('?')[0] if location else url) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if match: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        video_id = match.group(1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    elif "&vid=" in location: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        video_id = re.search(r'vid=(\d+)', location).group(1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 url = "http://8.217.192.46:8889/crawler/dou_yin/detail" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if not video_id or not video_id.strip(): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     return None, None, None 
			 |