Changeset 27210 in osm for applications/editors
- Timestamp:
- 2011-12-11T14:30:19+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/i18n/launchpad.pl
r27208 r27210 3 3 4 4 use strict; 5 use utf8; 5 6 6 7 my ($user, $pwd); … … 21 22 ); 22 23 23 my $revision = '$Revision$revision =~ s/^.*?(\d+).*$/$1/; 24 my $revision = '$Revision$'; 25 $revision =~ s/^.*?(\d+).*$/$1/; 24 26 my $agent = "JOSM_Launchpad/1.$revision"; 25 27 … … 228 230 { 229 231 my ($mech, $page) = @_; 230 print "$page\n";231 232 for(my $i = 1; $i <= 50; $i++) 232 233 { 234 $mech->timeout(30); 233 235 eval 234 236 { 235 237 $mech->get($page); 236 238 }; 237 print "Try $i: $@" if $@; 239 my $code = $mech->status(); 240 print "Try $i: ($code) $@" if $@; 238 241 return $mech if !$@; 239 242 sleep(30+5*$i); … … 266 269 for my $lang (sort keys %lang) 267 270 { 268 $mech->get("https://translations.launchpad.net/josm/trunk/+pots/josm/$lang/");271 doget($mech, "https://translations.launchpad.net/josm/trunk/+pots/josm/$lang/"); 269 272 sleep(1); 270 my $cont = utf8::upgrade($mech->content());273 my $cont = $mech->content(); 271 274 while($cont =~ /<a href="https?:\/\/launchpad.net\/~(.*?)" class="sprite person(-inactive)?">(.*?)<\/a>/g) 272 275 {
Note:
See TracChangeset
for help on using the changeset viewer.