fix issue with clipboard url detection

This commit is contained in:
Frank Skare
2019-09-28 04:01:10 +02:00
parent 6947c925b9
commit 8935101058
7 changed files with 20 additions and 21 deletions

View File

@@ -35,8 +35,8 @@ namespace RatingExtension // the assembly name must end with 'Extension'
string basename = Path.GetFileNameWithoutExtension(filepath);
for (int x = 0; x < 6; x++)
if (basename.Contains(" (" + x.ToString() + "stars)"))
basename = basename.Replace(" (" + x.ToString() + "stars)", "");
if (basename.Contains(" (" + x + "stars)"))
basename = basename.Replace(" (" + x + "stars)", "");
basename += $" ({rating}stars)";
string newPath = Path.Combine(Path.GetDirectoryName(filepath), basename + Path.GetExtension(filepath));