Fix a particular case

This commit is contained in:
DarkFighterLuke
2024-03-13 10:47:21 +01:00
parent 4fdd41ed0f
commit 2c33e28d36
@@ -20,6 +20,9 @@ namespace Jellyfin.Plugin.TubeArchivistMetadata.Utilities
// Remove double slashes and spaces from the remaining part of the URL
string cleanedPath = Regex.Replace(inputUrl.Substring(schemaMatch.Length), @"[/\s]+", "/");
// Remove slashes at the start
cleanedPath = cleanedPath.TrimStart('/');
// Add a trailing slash if not already present
cleanedPath = cleanedPath.TrimEnd('/') + "/";