mirror of
				https://github.com/k4yt3x/video2x.git
				synced 2025-10-31 12:50:59 +01:00 
			
		
		
		
	fixed custom cache path loading issues
This commit is contained in:
		
							parent
							
								
									bef3861d3c
								
							
						
					
					
						commit
						2d9c5fe751
					
				| @ -184,7 +184,7 @@ ffmpeg_settings['ffmpeg_path'] = os.path.expandvars(ffmpeg_settings['ffmpeg_path | ||||
| # load video2x settings | ||||
| image_format = config['video2x']['image_format'].lower() | ||||
| preserve_frames = config['video2x']['preserve_frames'] | ||||
| video2x_cache_directory = config['video2x']['video2x_cache_directory'] | ||||
| video2x_cache_directory = pathlib.Path(config['video2x']['video2x_cache_directory']) | ||||
| 
 | ||||
| # overwrite driver_settings with driver_args | ||||
| if driver_args is not None: | ||||
|  | ||||
| @ -362,8 +362,8 @@ class Video2XMainWindow(QMainWindow): | ||||
| 
 | ||||
|         # set cache directory path | ||||
|         if self.config['video2x']['video2x_cache_directory'] is None: | ||||
|             video2x_cache_directory = str((pathlib.Path(tempfile.gettempdir()) / 'video2x').absolute()) | ||||
|         self.cache_line_edit.setText(video2x_cache_directory) | ||||
|             self.config['video2x']['video2x_cache_directory'] = str((pathlib.Path(tempfile.gettempdir()) / 'video2x').absolute()) | ||||
|         self.cache_line_edit.setText(self.config['video2x']['video2x_cache_directory']) | ||||
| 
 | ||||
|         # load preserve frames settings | ||||
|         self.preserve_frames_check_box.setChecked(self.config['video2x']['preserve_frames']) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user