X-Git-Url: https://www.yuggoth.org/gitweb?p=weather.git;a=blobdiff_plain;f=weather.py;h=c375f95c5d3880fdd0daf624282c632a3d5b4888;hp=a8ff613425eac1b16d53fac81d12aa55e105bb37;hb=96808c892fd8300f59406b65c72c0a48e9c9c899;hpb=aafdd48e1bbf2810261cdf53a4484e4412cb21cf diff --git a/weather.py b/weather.py index a8ff613..c375f95 100644 --- a/weather.py +++ b/weather.py @@ -1531,12 +1531,13 @@ def correlate(): zones[zone]["description"] = description for line in data[1:]: line = line.decode("latin1").strip() - urimatch = re.match("/webdocs/(.+):(.+) for ", line) + urimatch = re.match("/webdocs/pub/(.+):(.+) for ", + line) if urimatch: uritype = urimatch.group(2).lower().replace(" ","_") - zones[zone][uritype] \ - = "http://weather.noaa.gov/%s" \ - % urimatch.group(1) + zones[zone][uritype] = ( + "http://tgftp.nws.noaa.gov/%s" + % urimatch.group(1)) count += 1 zcatalog.close() print("done (%s files)." % count)