mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
Rewriting Rules Update (#610)
* rules: updated rule to fix replay of latest youtube watch and embed pages include youtube-nocookie variant fixes #607 part of fix for webrecorder/browsertrix-crawler#4 * rules: additional rules fix for vimeo
This commit is contained in:
parent
4683d95580
commit
04d0586244
@ -344,7 +344,7 @@ rules:
|
||||
- videoFileId
|
||||
- signature
|
||||
|
||||
- url_prefix: ['net,akamaized,gcs-vimeo)/', 'net,akamaized,vod)/']
|
||||
- url_prefix: ['net,akamaized,gcs-vimeo)/', 'net,akamaized,vod)/', 'net,akamaized,vod-progressive)/']
|
||||
|
||||
fuzzy_lookup:
|
||||
match: '([/\d]+\.mp4)$'
|
||||
@ -410,6 +410,10 @@ rules:
|
||||
- action_load_comments
|
||||
- filter
|
||||
|
||||
- url_prefix: ['com,youtube)/youtubei', 'com,youtube-nocookie)/youtubei']
|
||||
|
||||
fuzzy_lookup:
|
||||
match: '()'
|
||||
|
||||
- url_prefix: 'com,googlevideo,'
|
||||
|
||||
@ -456,9 +460,15 @@ rules:
|
||||
- match: 'yt\.setConfig.*PLAYER_CONFIG.*args":\s*{'
|
||||
replace: '{0} "dash": "0", dashmpd: "", '
|
||||
|
||||
- match: 'yt\.setConfig.*PLAYER_VARS.*?{'
|
||||
replace: '{0}"dash":"0","dashmpd":"",'
|
||||
|
||||
- match: '(?:"player":|ytplayer\.config).*"args":\s*{'
|
||||
replace: '{0}"dash":"0","dashmpd":"",'
|
||||
|
||||
- match: '"0"==\w+\.dash\&\&'
|
||||
replace: '1&&'
|
||||
|
||||
|
||||
# testing rules -- not for valid domain
|
||||
#=================================================================
|
||||
|
Loading…
x
Reference in New Issue
Block a user