Skip to content

Commit

Permalink
Fix Station.csv download URL
Browse files Browse the repository at this point in the history
td/Station.csv is not for downloading
  • Loading branch information
maddavo committed Dec 22, 2014
1 parent 202a2fb commit 022e2c7
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions plugins/maddavo_plug.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,22 +79,12 @@ def run(self):
)
cacheNeedsRebuild = True
if self.getOption("stncsv"):
try:
transfers.download(
tdenv,
"http://www.davek.com.au/td/Station.csv",
"data/Station.csv",
backup=True,
)
except transfers.HTTP404 as e:
if not tdenv.quiet:
print("Got HTTP 404 Error: Trying alternate URL...")
transfers.download(
tdenv,
"http://www.davek.com.au/td/station.asp",
"data/Station.csv",
backup=True,
)
transfers.download(
tdenv,
"http://www.davek.com.au/td/station.asp",
"data/Station.csv",
backup=True,
)
cacheNeedsRebuild = True
# Download
transfers.download(
Expand Down

0 comments on commit 022e2c7

Please sign in to comment.