IndexError: list index out of range when download English subtitles

Issue #14 resolved
created an issue

Hi, Petar:

First, thanks for your code. It's very convenient.

After I downloaded metalinks file at

I used kde-get to download these videos and subtitles, but all subtitles I downloaded are contains following contents:

00:00 GMT
Content-Type: text/html; charset=utf-8
Cache-Control: no-cache

<pre>Traceback (most recent call last):
  File &quot;/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/;, line 714, in __call__
  File &quot;/base/data/home/apps/tedsubtitles/1.354826537749373970/;, line 146, in get
    srtContent = getTEDSubtitlesByURL ( tedtalkUrl , language )
  File &quot;/base/data/home/apps/tedsubtitles/1.354826537749373970/;, line 125, in getTEDSubtitlesByURL
    talkIntroDuration = splits[1].split ( ',' )[0]
IndexError: list index out of range

Maybe there is a bug at server?

Comments (2)

  1. Petar Maric repo owner

    Fixed #13, #14: Switched to hard subtitled video download URLs, as there have been issues with externally hosted soft subtitles. The 'standard' quality level has unfortunately been removed, as TED doesn't provide hard subtitles for it.

    → <<cset 65f6dffc8189>>

  2. Log in to comment