This commit is contained in:
Frank Skare
2020-12-02 03:40:38 +01:00
parent e860cf52c4
commit 85a3506403
6 changed files with 36 additions and 12 deletions

View File

@@ -96,7 +96,7 @@ namespace RatingExtension // the assembly name must end with 'Extension'
{
TimeSpan ts = DateTime.Now - DeleteTime;
if (FileToDelete == core.get_property_string("path") && ts.TotalSeconds < 5)
if (FileToDelete == core.get_property_string("path") && ts.TotalSeconds < 5 && File.Exists(FileToDelete))
{
core.command("playlist-remove current");
Thread.Sleep(2000);