Issue #14 resolved

IndexError: list index out of range when download English subtitles

budgerigar
created an issue

Hi, Petar:

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

After I downloaded metalinks file at http://metated.petarmaric.com/download.en.html

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/_webapp25.py&quot;, line 714, in __call__
    handler.get(*groups)
  File &quot;/base/data/home/apps/tedsubtitles/1.354826537749373970/main.py&quot;, line 146, in get
    srtContent = getTEDSubtitlesByURL ( tedtalkUrl , language )
  File &quot;/base/data/home/apps/tedsubtitles/1.354826537749373970/main.py&quot;, line 125, in getTEDSubtitlesByURL
    talkIntroDuration = splits[1].split ( ',' )[0]
IndexError: list index out of range
</pre>

Maybe there is a bug at server?

Comments (2)

  1. Petar Marić 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