mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 06:59:52 +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
|
# get metadata
|
||||||
if wb_url.mod == 'vi_':
|
if wb_url.mod == 'vi_':
|
||||||
# matching metadata explicitly with special scheme
|
# matching metadata explicitly with special scheme
|
||||||
params['url'] = wb_url.url.replace('http:/', 'metadata:/')
|
schema, rest = wb_url.url.split('://')
|
||||||
params['url'] = wb_url.url.replace('https:/', 'metadata:/')
|
params['url'] = 'metadata://' + rest
|
||||||
params['filter'].append('~original:metadata://')
|
params['filter'].append('~original:metadata://')
|
||||||
|
|
||||||
cdx_iter = self.load_cdx(wbrequest, params)
|
cdx_iter = self.load_cdx(wbrequest, params)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user