jansenicus / vtt-to-srt.py

python script to convert all vtt files in a directory and all of its subdirectories to srt subtitle format
61 stars 33 forks source link

pip install vtt-to-srt is broken (verified on Python 3.7.3) #16

Open jay-ramani opened 4 years ago

jay-ramani commented 4 years ago

Do check installing through pip, it's broken. I attempted installing with admin rights. I've pasted the error message below:

-- EDIT -- "C:\WINDOWS\system32>pip install vtt-to-srt Collecting vtt-to-srt ERROR: Could not find a version that satisfies the requirement vtt-to-srt (from versions: none) ERROR: No matching distribution found for vtt-to-srt"

-- EDIT 2 -- Just figured the dash should be replaced with underscore. Could you update your page at https://pypi.org/project/vtt-to-srt/ and correct the typo at the top left (see the attached screenshot)?

Replace dash with underscore

heniotierra commented 4 years ago

I don't think that's possible with the current options offered by the platform. What I could do is change the installation command to pip install vtt-to-srt to reflect this page.

jay-ramani commented 4 years ago

Sure. Also, did you check your program's converted subtitle in it's current state by playing in any player?

The conversion works like a charm, but there's no order number required by the SRT format.

Google's vtt does not have the order number (not sure if it was it was there earlier, but it has been taken out). As a consequence, your converted subtitle does not work. I was testing the converted subtitle with many players and found none of them were displaying it. You can check my findings.

The SRT format is as below:

<Order/section number> <hh:mm:ss,ms> -> <hh:mm:ss, ms>

I have made changes to generate the order number. Do let me know if you'd like to merge the changes.
heniotierra commented 4 years ago

I sure do! Please, send a PR when you can.