X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=videosite.git;a=blobdiff_plain;f=videosite%2FFileGetter.pm;fp=videosite%2FFileGetter.pm;h=48278dd576905f985ffc5d2a57b2980d5b30a98b;hp=b2a0cea6c3fe686ff9fb2367f7432bc46d7b7b5d;hb=eeddf244ed2b5c9cde3bda1f264f6b0bd8155bb3;hpb=dfc7609bd938417a99759f2d9c78f40114e759e8 diff --git a/videosite/FileGetter.pm b/videosite/FileGetter.pm index b2a0cea..48278dd 100644 --- a/videosite/FileGetter.pm +++ b/videosite/FileGetter.pm @@ -60,6 +60,17 @@ sub get { return 0; } + if (exists($video->{'DLURL_AUDIO'})) { + $dlfile = $dlfile . ".audio"; + $self->debug('Going to download %s to %s', $video->{'DLURL_AUDIO'}, $dlfile); + + $res = $ua->mirror($video->{'DLURL_AUDIO'}, $dlfile); + if (!$res->is_success()) { + $self->error('Could not download %s to %s (%s)', $video->{'DLURL_AUDIO'}, $dlfile, $res->code()); + return 0; + } + } + return 1; }