Changeset 8889


Ignore:
Timestamp:
2005-01-12T13:38:34+13:00 (19 years ago)
Author:
davidb
Message:

Small modification of image URL manipulation remain consistent with
how Google Images generates its HTML.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/giget.pm

    r7492 r8889  
    134134        my ($img_ext) = ($img_url =~ m/\.(\w+)$/);
    135135        $img_ext = lc($img_ext);
     136
     137        # remove http:// if there, so later we can explicitly add it in
     138        $img_url =~ s/^http:\/\///;
    136139
    137140        print "Downloading image url http://$img_url\n";
Note: See TracChangeset for help on using the changeset viewer.