1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 08:04:49 +01:00

replay: vi_ handling: properly replace any protocol with metadata:// for

video info lookup
This commit is contained in:
Ilya Kreymer 2014-11-29 11:03:40 -08:00
parent 87d791eba8
commit 7a14e167e1

View File

@ -73,8 +73,8 @@ class QueryHandler(object):
# get metadata
if wb_url.mod == 'vi_':
# matching metadata explicitly with special scheme
params['url'] = wb_url.url.replace('http:/', 'metadata:/')
params['url'] = wb_url.url.replace('https:/', 'metadata:/')
schema, rest = wb_url.url.split('://')
params['url'] = 'metadata://' + rest
params['filter'].append('~original:metadata://')
cdx_iter = self.load_cdx(wbrequest, params)