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)

defect
Not set
normal

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.
Assignee: cade → nobody
Whiteboard: [mentor=thecount][goodfirstbug]
Status: ASSIGNED → NEW
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!
Sounds great Eduardo! I've assigned the bug to you!
Assignee: nobody → eduardo
Status: NEW → ASSIGNED
I created a pull request for this: https://github.com/mozilla/popcorn-js/pull/375
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.
Attachment #8369453 - Flags: review?(scott)
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-
Done!
I see this issue is still open, should I close it?
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.

Attachment

General

Creator:
Created:
Updated:
Size: