diff options
-rwxr-xr-x | modules/tracking.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/tracking.py b/modules/tracking.py index e7f9c9d..2b0ddd7 100755 --- a/modules/tracking.py +++ b/modules/tracking.py @@ -359,6 +359,16 @@ class DHLModule(TrackingModule, EasypostModule): url += code return url +class DHLGMModule(TrackingModule, EasypostModule): + name = 'dhlgm' + easypost_carrier = 'DHLGlobalMail' + + def get_url(self, code = None): + url = 'http://webtrack.dhlglobalmail.com/?trackingnumber=' + if code: + url += code + return url + def code_split(code): if ':' in code: return code.split(':') |