Comments (3)
Hi @theaiinstitute I released 0.4.5 with a fix. Please confirm this resolves the issue. Thanks!
from webvtt-py.
It works! Thank for your quick reaction, appreciate that!
from webvtt-py.
Unfortunately, there is a problem for me too. Three years later, the problem still exists
`url = 'https://hls.ted.com/project_masters/7970/subtitles/ja/full.vtt'
result = ''
response = urllib.request.urlopen(url)
data = response.read()
text = data.decode('utf-8')
buffer = StringIO(text)
for l in webvtt.read_buffer(buffer):
print(l.text)`
File "C:\Users\FARSHAD\AppData\Local\Programs\Python\Python310\lib\site-packages\webvtt\webvtt.py", line 68, in read_buffer
parser = WebVTTParser().read_from_buffer(buffer)
File "C:\Users\FARSHAD\AppData\Local\Programs\Python\Python310\lib\site-packages\webvtt\parsers.py", line 33, in read_from_buffer
self._parse(content)
File "C:\Users\FARSHAD\AppData\Local\Programs\Python\Python310\lib\site-packages\webvtt\parsers.py", line 214, in _parse
self._parse_blocks(blocks)
File "C:\Users\FARSHAD\AppData\Local\Programs\Python\Python310\lib\site-packages\webvtt\parsers.py", line 250, in _parse_blocks
raise MalformedCaptionError(
webvtt.errors.MalformedCaptionError: Standalone cue identifier in line 128.
from webvtt-py.
Related Issues (20)
- MalformedCaptionError HOT 12
- Better parsing of srt subtitles to remove double newlines/breaks HOT 4
- BytesIO support HOT 1
- MalformedCaptionError HOT 1
- how can i use that ?
- IndexError: list index out of range?
- BOM in Caption - WEBVTT HOT 1
- Could you put a source package on pypi? HOT 1
- does not support unicode characters HOT 2
- MalformedCaptionError: Invalid Time Format HOT 5
- MalformedCaptionError: Missing timing cue in line ... HOT 1
- MalformedCaptionError: Standalone cue identifier in line 975 HOT 3
- existing metadata header not preserved when writing
- Malformed VTT Cue treated as ok data HOT 1
- MalformedCaptionError: Standalone cue identifier in line 1149 HOT 1
- Standalone cue identifier in line 7 HOT 1
- webvtt.errors.MalformedCaptionError: Standalone cue identifier in line 26. HOT 1
- Transcript file metadata missing HOT 1
- srtwriter is writing cuetag into srt HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webvtt-py.