rt2yrru / get-flash-videos

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

Timeout returns 0 #451

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start downloading a video
2. Lose connectivity, in my case high packet loss (or just disconnect from 
network)

What is the expected output? What do you see instead?

... .mp4: 11% (30428.13 / 273228.73 KiB)read timeout at 
/usr/share/perl5/vendor_perl/LWP/Protocol/http.pm line 452.
Done. Saved 31181571 bytes to ...

% echo $?
0

It should return 1 as it has failed to download the whole file. I would like to 
wrap it in a script to run the command again to continue the download until it 
returns 0. Currently a script cannot determine if it has completed or failed.

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

20121106. Arch Linux.

Original issue reported on code.google.com by jstee...@gmail.com on 10 Nov 2012 at 10:56

GoogleCodeExporter commented 8 years ago
I use this in a script (/bin/ksh) on OpenBSD

get_flash_videos ${itvweb} &&  ( echo ${fn}>>itv.lst; echo $itvpid>>itvpid.lst )

It keep a history of downloads, works for me with ITV. 

From the error it suggest a http rather than a rtmpdump download. The problem 
is related to the site your downloading from. Extra details are required, that 
includes the version of get_flash_videos, an example url or urls your 
downloading from.

Original comment by njtaylor...@gmail.com on 11 Nov 2012 at 1:39

GoogleCodeExporter commented 8 years ago
Sorry I don't think you have understood. The issue is not that a download gets 
cut off, but the software returns 0 (success) rather than 1 (failure).

Original comment by jstee...@gmail.com on 11 Nov 2012 at 10:48