mirror of
https://github.com/Zaarrg/stremio-community-v5.git
synced 2026-04-21 09:01:55 +00:00
Added Subtitle Dropped event
This commit is contained in:
parent
7434ac684f
commit
9cef682930
1 changed files with 4 additions and 0 deletions
|
|
@ -511,6 +511,10 @@ static void SetupWebMessageHandler()
|
|||
if (isSubtitle(filePath)) {
|
||||
std::vector<std::string> subaddArgs = {"sub-add",decodedFilePathUtf8, "select", baseName + " External", "Other Tracks"};
|
||||
HandleEvent("mpv-command", subaddArgs);
|
||||
json j;
|
||||
j["type"] = "SubtitleDropped";
|
||||
j["path"] = decodedFilePathUtf8;
|
||||
SendToJS("SubtitleDropped", j);
|
||||
return S_OK;
|
||||
}
|
||||
json j;
|
||||
|
|
|
|||
Loading…
Reference in a new issue