nolenfelten / xbmc-addons

Automatically exported from code.google.com/p/xbmc-addons
0 stars 0 forks source link

TED Talks scraper out of date #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
description:
  select a view (e.g. Newest Talks) and play a video.  The program either
quietly fails or says 'aborting, too many errors in playlist'

cause:
  The link string on ted_talks_scraper line 53 is out of date.

suggested fix:
  I fixed it locally by updating it to this:
            if link.string == 'Watch high-res video (MP4)':

  Wanted to generalize it with something like this
            if re.match("Watch.*high-res", link.string): 
  but I must be screwing up something because it errors, complaining that
match wants a string or buffer.

TED Talks Script v2.1.3

thanks for a great tool

Original issue reported on code.google.com by subset.o...@googlemail.com on 22 Nov 2009 at 7:45

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1434.

Original comment by rwparris2 on 22 Nov 2009 at 9:12

GoogleCodeExporter commented 9 years ago
That should be closed by revision r1433 , but I got the numbers backwards.
link.string isn't actually a string, so you have to convert it first.  Thanks 
for the 
fix, though!

Original comment by rwparris2 on 22 Nov 2009 at 9:17