Compare commits

...

2 commits

Author SHA1 Message Date
j
9e0df969e9 pass video source to download selection 2020-02-02 15:33:56 +01:00
j
6b82d7bbf7 use db-ip mmdb 2020-02-02 15:31:32 +01:00
2 changed files with 4 additions and 2 deletions

View file

@ -397,8 +397,9 @@ def update_geoip(force=False):
path = os.path.join(settings.GEOIP_PATH, 'GeoLite2-City.mmdb')
if not os.path.exists(path) or force:
url = 'http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz'
url = 'https://download.db-ip.com/free/dbip-city-lite-2020-01.mmdb.gz'
print('download', url)
ox.net.save_url(url, "%s.gz"%path)
ox.net.save_url(url, "%s.gz" % path)
if os.path.exists(path):
os.unlink(path)
os.system('gunzip "%s.gz"' % path)

View file

@ -200,7 +200,8 @@ pandora.ui.editor = function(data) {
'in': selection['in'],
out: selection.out,
rightsLevel: rightsLevel,
title: data.title
title: data.title,
video: data.video
}).open();
},
editannotation: function(data) {