STaylor8 / get-flash-videos

Automatically exported from code.google.com/p/get-flash-videos
0 stars 0 forks source link

discovery.com videos not supported #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Go to a dsc.discovery.com/videos video (e.g.
http://dsc.discovery.com/videos/mythbusters-car-cling-adams-view.html)

What is the expected output? What do you see instead?
Expected output = it works
Instead = could not find video id or player id

What version of the product are you using? On what operating system?
version 1.13

Please provide any additional information below.

Quick Fix I used:
Replace line 620 with:
  $player_id = ($browser->content =~ /playerId["'\] ]*[:=]["' ]*(\d+)/i)[0];
and add:
  $video_id ||= ($browser->content =~ /_clipID:["' ]*(\d+)/i)[0];

Original issue reported on code.google.com by adman.com@gmail.com on 6 Jun 2009 at 5:05

GoogleCodeExporter commented 9 years ago
Fixed in r173.

Original comment by monsieur...@gmail.com on 7 Jun 2009 at 10:47