Skip to content
This repository was archived by the owner on Dec 21, 2019. It is now read-only.

Commit

Permalink
v0.7.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Morávek [Xificurk] committed Nov 30, 2011
1 parent 14392e9 commit d107d16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
CHANGES
============================================================================

Release 0.7.9 (2011-11-30)
[FIX] Fix parsing of LatLon data in cache details.

Release 0.7.8 (2011-11-04)
[FIX] Malformed HTTP Location header send by geocaching.com.

Expand Down
6 changes: 3 additions & 3 deletions gcparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
__copyright__ = "Copyright (C) 2009-2011 Petr Morávek"
__license__ = "LGPL 3.0"

__version__ = "0.7.8"
__version__ = "0.7.9"

from collections import defaultdict, namedtuple, Sequence, Callable
from datetime import date, datetime, timedelta
Expand Down Expand Up @@ -664,8 +664,8 @@ def __init__(self):
_pcre_masks["cache_owner_id"] = ("by <a href=['\"]http://www\.geocaching\.com/profile/\?guid=([a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+)&wid=([a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+)&ds=2['\"][^>]*>", re.I)
# <p class="OldWarning"><strong>Cache Issues:</strong></p><ul class="OldWarning"><li>This cache is temporarily unavailable. Read the logs below to read the status for this cache.</li></ul></span>
_pcre_masks["disabled"] = ("<p class=['\"][^'\"]*OldWarning[^'\"]*['\"][^>]*><strong>Cache Issues:</strong></p><ul[^>]*><li>This cache (has been archived|is temporarily unavailable)[^<]*</li>", re.I)
# <span id="ctl00_ContentBody_LatLon" style="font-weight:bold;">N 50° 02.173 E 015° 46.386</span>
_pcre_masks["cache_coords"] = ("<span id=['\"]ctl00_ContentBody_LatLon['\"][^>]*>([NS]) ([0-9]+)° ([0-9.]+) ([WE]) ([0-9]+)° ([0-9.]+)</span>", re.I)
# <span id="uxLatLon" style="font-weight:bold;">N 49° 06.592 E 016° 27.837</span>
_pcre_masks["cache_coords"] = ("<span id=['\"]uxLatLon['\"][^>]*>([NS]) ([0-9]+)° ([0-9.]+) ([WE]) ([0-9]+)° ([0-9.]+)</span>", re.I)
_pcre_masks["cache_shortDesc"] = ("<div class=['\"]UserSuppliedContent['\"]>\s*<span id=['\"]ctl00_ContentBody_ShortDescription['\"]>(.*?)</span>\s+</div>", re.I|re.S)
_pcre_masks["cache_longDesc"] = ("<div class=['\"]UserSuppliedContent['\"]>\s*<span id=['\"]ctl00_ContentBody_LongDescription['\"]>(.*?)</span>\s*</div>\s*<p>\s+</p>\s+<p>", re.I|re.S)
"""
Expand Down

0 comments on commit d107d16

Please sign in to comment.