aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/leapsec.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/leapsec.py')
-rw-r--r--src/plugins/leapsec.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/leapsec.py b/src/plugins/leapsec.py
index ec8cfa1..39a6be4 100644
--- a/src/plugins/leapsec.py
+++ b/src/plugins/leapsec.py
@@ -48,8 +48,11 @@ class LeapSeconds:
'''
Constructor
'''
- url = 'http://maia.usno.navy.mil/ser7/leapsec.dat'
+ #url = 'http://maia.usno.navy.mil/ser7/leapsec.dat' ## gone!
+ url = 'http://oceandata.sci.gsfc.nasa.gov/Ancillary/LUTs/modis/leapsec.dat'
announcements = spawn_read('curl', url)
+ while not announcements.startswith(' '):
+ announcements = '\n'.join(announcements.split('\n')[1:])
while ' ' in announcements:
announcements = announcements.replace(' ', ' ')
announcements = announcements.replace('= ', '=').replace('=JD ', '=JD')