mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-10-30 10:12:44 -04:00 
			
		
		
		
	Backport pull request #15220 from jellyfin/release-10.11.z
Skip extracted files in migration if bad timestamp or no access Original-merge: a305204cfa43a97f255f0dea412f93d02de939c3 Merged-by: crobibero <cody@robibe.ro> Backported-by: Bond_009 <bond.009@outlook.com>
This commit is contained in:
		
							parent
							
								
									28b0657608
								
							
						
					
					
						commit
						21f65e2e27
					
				| @ -122,6 +122,16 @@ public class MigrateKeyframeData : IDatabaseMigrationRoutine | ||||
|         { | ||||
|             lastWriteTimeUtc = File.GetLastWriteTimeUtc(filePath); | ||||
|         } | ||||
|         catch (ArgumentOutOfRangeException e) | ||||
|         { | ||||
|             _logger.LogDebug("Skipping {Path}: {Exception}", filePath, e.Message); | ||||
|             return null; | ||||
|         } | ||||
|         catch (UnauthorizedAccessException e) | ||||
|         { | ||||
|             _logger.LogDebug("Skipping {Path}: {Exception}", filePath, e.Message); | ||||
|             return null; | ||||
|         } | ||||
|         catch (IOException e) | ||||
|         { | ||||
|             _logger.LogDebug("Skipping {Path}: {Exception}", filePath, e.Message); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user