This commit is contained in:
Frank Skare
2019-03-14 05:19:57 +01:00
parent a392c2c6da
commit 303355ce63
20 changed files with 242 additions and 22610 deletions

View File

@@ -14,8 +14,8 @@ namespace RatingAddon
public RatingAddon()
{
mpv.ClientMessage += mpv_ClientMessage;
mpv.Shutdown += mpv_Shutdown;
mp.ClientMessage += mpv_ClientMessage;
mp.Shutdown += mpv_Shutdown;
}
private void mpv_Shutdown()
@@ -51,8 +51,8 @@ namespace RatingAddon
if (args?.Length != 2 || args[0] != "rate-file" || ! int.TryParse(args[1], out rating))
return;
Dic[mpv.GetStringProp("path")] = rating;
mpv.Command("show-text", $"Rating: {rating}");
Dic[mp.GetStringProp("path")] = rating;
mp.Command("show-text", $"Rating: {rating}");
}
}
}

View File

@@ -85,6 +85,7 @@
<ProjectReference Include="..\mpv.net\mpv.net.csproj">
<Project>{1751f378-8edf-4b62-be6d-304c7c287089}</Project>
<Name>mpv.net</Name>
<Private>False</Private>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />