Git Product home page Git Product logo

Comments (6)

KBlixt avatar KBlixt commented on August 20, 2024

hm, strange. you provide it with the argument "File.en.srt" but it tries to read "Files.en.srt"? this shouldn't be possible. Will investigate.

Also I downloaded the file and #ItWorksOnMyMachine. Could you try to copy the content to another file and see if the issue persist?

from subcleaner.

televisi avatar televisi commented on August 20, 2024

Sorry, it was a silly rename issue; originally it has a movie name; but I renamed it to "Files.en.srt" for obvious reason (don't want to share the full movie names here hehe.

I did try to rename the file, unfortunately, same error.

I have attached the original srt files + bash script history here.
Script and srt files.zip

from subcleaner.

KBlixt avatar KBlixt commented on August 20, 2024

ok, I see, no problem. It looks like it has something to do with the encoding of the file. I will try to investigate it. have other files worked?

from subcleaner.

KBlixt avatar KBlixt commented on August 20, 2024

If the file have been encoded incorrectly and the uploaded to the site then scripts that are a bit less robustly such as this one could have issues reading the files. try to create a new file and copy the text from the old file into the new file. sometimes this helps.

from subcleaner.

KBlixt avatar KBlixt commented on August 20, 2024

Yep, looking at the file more carefully it has been encoding using "Windows-1252" instead of something more standard like UTF-8 or ASCII.

This is why subcleaner fail to open the file. I've added to the script that it tries to open with that encoding as well before giving up. so If you update the script it should work.

from subcleaner.

televisi avatar televisi commented on August 20, 2024

Thank you, this fixed my issue

from subcleaner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.