| 
					
				 | 
			
			
				@@ -31,8 +31,6 @@ class Recommend: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         width = int(video_stream['width']) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         height = int(video_stream['height']) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        # num_frames = int(video_stream['nb_frames']) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        # fps = int(video_stream['r_frame_rate'].split('/')[0]) / int(video_stream['r_frame_rate'].split('/')[1]) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         duration = float(video_stream['duration']) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return width, height, duration 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -252,7 +250,7 @@ class Recommend: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             # 保存视频信息至 "./videos/{download_video_title}/info.txt" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             with open("./videos/" + video_title 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                       + "/" + "info.txt", "a", encoding="UTF-8") as f_a: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                f_a.write(str(int(time.time())) + "\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                f_a.write("jixiangxingfu" + str(int(time.time())) + "\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                           str(video_title) + "\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                           str(int(download_duration)) + "\n" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                           str(int(float( 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -317,8 +315,8 @@ class Recommend: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     cls.i = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     break 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        except Exception: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            Common.logger(log_type).error('get_recommend异常,重启APP\n') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        except Exception as e: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Common.logger(log_type).error('get_recommend异常,重启APP:{}\n', e) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             cls.quit(log_type, driver) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             cls.i = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             cls.start_wechat(log_type, env) 
			 |