We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to open subtitles from a url. something like http://example.com/Stream.subrip?api_key=<key>
http://example.com/Stream.subrip?api_key=<key>
the generic Open method that takes a url string doesn't recognize this as a subtitle
public static string GetUrlExtention(string url) => url.LastIndexOf(".") > 0 ? url[(url.LastIndexOf(".") + 1)..].ToLower() : "";
this method detects the extension as .subrib?api_key=
even if it correctly parsed extension, it's not on this list.
public static List<string> ExtensionsSubtitles = new() { "ass", "ssa", "srt", "sub", "txt", "text", "vtt" };
So i tried using reflection to call the OpenSubtitles method. and it worked perfectly fine.
MethodInfo? dynMethod = player.GetType().GetMethod("OpenSubtitles", BindingFlags.NonPublic | BindingFlags.Instance); dynMethod?.Invoke(player, [url]);
Fixes could be
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm trying to open subtitles from a url.
something like
http://example.com/Stream.subrip?api_key=<key>
the generic Open method that takes a url string doesn't recognize this as a subtitle
this method detects the extension as .subrib?api_key=
even if it correctly parsed extension, it's not on this list.
So i tried using reflection to call the OpenSubtitles method. and it worked perfectly fine.
Fixes could be
The text was updated successfully, but these errors were encountered: