Skip to content

Commit

Permalink
Rewriting Rules Update (#610)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
ikreymer committed Jan 26, 2021
1 parent 4683d95 commit 04d0586
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pywb/rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)$'
Expand Down Expand Up @@ -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,'

Expand Down Expand Up @@ -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
#=================================================================
Expand Down

0 comments on commit 04d0586

Please sign in to comment.