Coder Social home page Coder Social logo

Can't add subtitles about gnomecast HOT 9 OPEN

fn-ix avatar fn-ix commented on May 27, 2024
Can't add subtitles

from gnomecast.

Comments (9)

fn-ix avatar fn-ix commented on May 27, 2024 2

I've tried several different .srt-s for different movies and with various encodings by now and none of them have worked. However, when I convert them to .vtt-s (with the tool here), those work fine.

from gnomecast.

keredson avatar keredson commented on May 27, 2024 1

np. the other linked file should be enough. i found a python library that purports to autodetect encodings. will test out and try to incorporate into a PR soon. thanks for your all's help!

from gnomecast.

olivieridav avatar olivieridav commented on May 27, 2024

Hi @HFel,

I was experiencing the same behavior and it turned that the import was not successful due to the subtitles file not being UTF-8 encoded.

So I opened the subtitles file with gedit, saved it encoding it with utf-8 and afterwards gnomecast picked up the new file without any issue.

I hope this helps.

from gnomecast.

keredson avatar keredson commented on May 27, 2024

can you send a link to where i can download this subtitle file?

from gnomecast.

olivieridav avatar olivieridav commented on May 27, 2024

Hi @keredson,

The file that I had to re-encode is available here (file name is Tous.Les.Soleils.2011.FRENCH.SUBFORCED.DVDRiP.XViD-AViTECH.spa.srt).

from gnomecast.

fn-ix avatar fn-ix commented on May 27, 2024

Sorry for the late response. Unfortunately I don't have that subtitle anymore. However, in case the issue was caused for the same reason as @olivieridav gave, would it be possible to make Gnomecast automatically convert the encoding (or at least give an error message so the user knows what the problem was)?

from gnomecast.

recchia avatar recchia commented on May 27, 2024

Hi,

I'm facing the same problem i saved it encoding it with utf-8, but got same problem. i'l be waiting for merged PR

from gnomecast.

keredson avatar keredson commented on May 27, 2024

so it looks like i'm already doing this. see

converter.read(caps, pycaption.detect_format(caps)())

by using pycaption's built in decoding detection.

so i went back and checked out Tous.Les.Soleils.2011.FRENCH.SUBFORCED.DVDRiP.XViD-AViTECH.spa.srt, and it imported just fine.

if anyone has any other examples of files that won't import for them, please post links to them here and i'll try and debug further.

from gnomecast.

mohxinn avatar mohxinn commented on May 27, 2024

Here is a subttile that fails to add:
https://1drv.ms/u/s!Aq87ZQshMd2thJ4Dfu8-O80Sg0BSGA

Works when converted to vtt as mentioned by @HFel

from gnomecast.

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.