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:
parent
87d791eba8
commit
7a14e167e1
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user