diff --git a/pandora/archive/extract.py b/pandora/archive/extract.py index dc013b338..e903995e4 100644 --- a/pandora/archive/extract.py +++ b/pandora/archive/extract.py @@ -307,7 +307,6 @@ def resize_image(image_source, image_output, width=None, size=None): def timeline( video, prefix, modes=['antialias', 'slitscan', 'keyframes', 'audio', 'data'], - #modes=['antialias', 'slitscan', 'audio', 'data'], size=[64, 16] ): if isinstance(video, basestring): diff --git a/pandora/user/models.py b/pandora/user/models.py index 1044c5c14..c3acdf8d2 100644 --- a/pandora/user/models.py +++ b/pandora/user/models.py @@ -96,6 +96,8 @@ class SessionData(models.Model): if request.user.is_authenticated(): data.user = request.user data.ip = request.META['REMOTE_ADDR'] + if data.ip.startswith('::ffff:'): + data.ip = data.ip[len('::ffff:'):] data.useragent = request.META['HTTP_USER_AGENT'] data.info = json.loads(request.POST.get('data', '{}')) screen = data.info.get('screen', {})