-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
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
compatibility error #18
Comments
I think you are using the wrong File class. |
i already used System.IO.File.OpenRead but i got another error in that line |
Could you copy and paste the code you are using to parse subtitle files and the complete error message that you get? |
Here's a full working csx example: #!/usr/bin/env dotnet-script
#r "nuget: SubtitlesParser, 1.4.8"
#load "serilog.csx"
using Serilog;
using SubtitlesParser.Classes.Parsers;
var parser = new VttParser();
using (var fileStream = File.OpenRead("captions.vtt")){
var items = parser.ParseStream(fileStream, Encoding.UTF8);
Log.Verbose("{@items}", items);
} |
@mondherroo : your compiling error is due to the fact that you are not specifying an encoding when using the SrtParser. |
@gldraphael Could you provide the subtitles file as well (captions.vtt)? |
Here's the file as a text document: captions.vtt.txt Also, it'd be nice if the |
hello sir,
i used this parser in asp net core 2.1 but it doesn't work, i got this error in that line
"using (var fileStream = File.OpenRead(pathToSrtFile))"
i got this error message(IformFile doesn't have definition for "OpenRead")
i replaced (OpenRead with OpenReadStream) but still don't work.
so do you have any suggestion sir?
The text was updated successfully, but these errors were encountered: