From efc690ec97db5de527cff1e9db25a2f77fd07b88 Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Mon, 14 Sep 2015 19:25:32 -0700 Subject: [PATCH] rules: improve yt rules! disable dash directly html5player --- pywb/rules.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pywb/rules.yaml b/pywb/rules.yaml index 4a4fb4b5..b6e93703 100644 --- a/pywb/rules.yaml +++ b/pywb/rules.yaml @@ -258,18 +258,19 @@ rules: - url_prefix: 'com,googleapis,plus)/u/0/_/widget/render/comments' rewrite: - js_rewrite_location: location + js_rewrite_location: location fuzzy_lookup: - href - stream_id - substream_id - - url_prefix: 'com,ytimg,s)/yts/jsbin/' + - url_prefix: 'com,ytimg,s)/yts/jsbin/html5player-new' rewrite: - js_rewrite_location: location - + js_regexs: + - match: '\"0\"\=\=c\.dash' + replace: 'c.dash="0";c.dashmpd="";{0}' # watch and embed config changes - url_prefix: ['com,youtube)/', 'com,youtube-nocookie)/']