mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	Check for empty string when migrating displaypreferences
This commit is contained in:
		
							parent
							
								
									665220c4fb
								
							
						
					
					
						commit
						cbb855e65f
					
				@ -126,13 +126,13 @@ namespace Jellyfin.Server.Migrations.Routines
 | 
				
			|||||||
                        ShowSidebar = dto.ShowSidebar,
 | 
					                        ShowSidebar = dto.ShowSidebar,
 | 
				
			||||||
                        ScrollDirection = dto.ScrollDirection,
 | 
					                        ScrollDirection = dto.ScrollDirection,
 | 
				
			||||||
                        ChromecastVersion = chromecastVersion,
 | 
					                        ChromecastVersion = chromecastVersion,
 | 
				
			||||||
                        SkipForwardLength = dto.CustomPrefs.TryGetValue("skipForwardLength", out var length)
 | 
					                        SkipForwardLength = dto.CustomPrefs.TryGetValue("skipForwardLength", out var length) && !string.IsNullOrEmpty(length)
 | 
				
			||||||
                            ? int.Parse(length, CultureInfo.InvariantCulture)
 | 
					                            ? int.Parse(length, CultureInfo.InvariantCulture)
 | 
				
			||||||
                            : 30000,
 | 
					                            : 30000,
 | 
				
			||||||
                        SkipBackwardLength = dto.CustomPrefs.TryGetValue("skipBackLength", out length)
 | 
					                        SkipBackwardLength = dto.CustomPrefs.TryGetValue("skipBackLength", out length) && !string.IsNullOrEmpty(length)
 | 
				
			||||||
                            ? int.Parse(length, CultureInfo.InvariantCulture)
 | 
					                            ? int.Parse(length, CultureInfo.InvariantCulture)
 | 
				
			||||||
                            : 10000,
 | 
					                            : 10000,
 | 
				
			||||||
                        EnableNextVideoInfoOverlay = dto.CustomPrefs.TryGetValue("enableNextVideoInfoOverlay", out var enabled)
 | 
					                        EnableNextVideoInfoOverlay = dto.CustomPrefs.TryGetValue("enableNextVideoInfoOverlay", out var enabled) && !string.IsNullOrEmpty(enabled)
 | 
				
			||||||
                            ? bool.Parse(enabled)
 | 
					                            ? bool.Parse(enabled)
 | 
				
			||||||
                            : true,
 | 
					                            : true,
 | 
				
			||||||
                        DashboardTheme = dto.CustomPrefs.TryGetValue("dashboardtheme", out var theme) ? theme : string.Empty,
 | 
					                        DashboardTheme = dto.CustomPrefs.TryGetValue("dashboardtheme", out var theme) ? theme : string.Empty,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user