Closed
Bug 864765
Opened 12 years ago
Closed 11 years ago
SRT files starting with blank line throw exception when parsing
Categories
(Webmaker Graveyard :: popcorn.js, defect)
Webmaker Graveyard
popcorn.js
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: cade, Assigned: eduardo)
Details
(Whiteboard: [mentor=thecount][goodfirstbug])
Attachments
(1 file)
On GitHub, arnaudbreton wrote:
"Hi,
I've just started to use PopcornJS which is awesome to handle these many video providers!
I'm working with subtitles, in SRT format, from Coursera (http://coursera.org) and their subtitles start with a blank line.
When I parse this file, it crashes, line 63 (idx = time[1].indexOf( " " )).
Thanks for your help."
I have confirmed the bug. I'm actually surprised that this hasn't come to light sooner.
| Reporter | ||
Updated•11 years ago
|
Assignee: cade → nobody
Updated•11 years ago
|
Whiteboard: [mentor=thecount][goodfirstbug]
Updated•11 years ago
|
Status: ASSIGNED → NEW
| Assignee | ||
Comment 1•11 years ago
|
||
Hi! I started working on this and was able to fix it, now I only need to add some tests. Could someone please assign it to me? (looks like I can't)
Thanks!
| Reporter | ||
Comment 2•11 years ago
|
||
Sounds great Eduardo! I've assigned the bug to you!
Assignee: nobody → eduardo
| Reporter | ||
Updated•11 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 3•11 years ago
|
||
I created a pull request for this: https://github.com/mozilla/popcorn-js/pull/375
Comment 4•11 years ago
|
||
Hey Eduardo,
I took a quick look at this, and it looks pretty good.
To put a patch into review:
1. Click on the add attachment link above.
2. Inside that page, click "paste text as attachment" under the File input.
3. Now that file input is text input, paste in the pull request url you have in comment 3.
4. Also paste that pull request url into description.
5. Under flgas > review, set it to "?".
6. Under requestee, start typing ":thecount", it should autocomplete to my name and email.
7. Hit submit.
| Assignee | ||
Comment 5•11 years ago
|
||
Attachment #8369453 -
Flags: review?(scott)
Comment 6•11 years ago
|
||
Comment on attachment 8369453 [details] [review]
https://github.com/mozilla/popcorn-js/pull/375
Awesome work.
Works well, r+ cept do you mind merging the commits into one? r+ with that :)
Attachment #8369453 -
Flags: review?(scott) → review-
| Assignee | ||
Comment 7•11 years ago
|
||
Done!
Comment 8•11 years ago
|
||
Commit pushed to master at https://github.com/mozilla/popcorn-js
https://github.com/mozilla/popcorn-js/commit/3325b800d60202625d2fc2f148e92d2e5ddaa8ff
Bug 864765 - Correctly parse SRT files starting with blank lines
| Assignee | ||
Comment 9•11 years ago
|
||
I see this issue is still open, should I close it?
Comment 10•11 years ago
|
||
Ah yes, forgot. Thanks for the reminder.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•