Adapt fuzzy_rules

Now we store entry in zim without `http://`.
So there is no `//` to search for at beginning.
This commit is contained in:
Matthieu Gautier 2023-05-27 10:14:28 +02:00
parent e1acac2bc7
commit be6bdb66ea

View File

@ -1158,22 +1158,22 @@ const FuzzyRules FUZZY_RULES{
/*.args:*/ {}, /*.args:*/ {},
}, },
{ {
/*match:*/ "//(?:www\\.)?youtube(?:-nocookie)?\\.com/(get_video_info)", /*match:*/ "(?:www\\.)?youtube(?:-nocookie)?\\.com/(get_video_info)",
/*fuzzyCanonReplace": */"//youtube.fuzzy.replayweb.page/$1", /*fuzzyCanonReplace": */"youtube.fuzzy.replayweb.page/$1",
/*split:*/ "", /*split:*/ "",
/*slpitlast:*/ false, /*slpitlast:*/ false,
/*args:*/ {{"video_id"}}, /*args:*/ {{"video_id"}},
}, },
{ {
/*match:*/ "//(?:www\\.)?youtube(?:-nocookie)?\\.com/(youtubei/v1/[^?]+\\?).*(videoId[^&]+).*", /*match:*/ "(?:www\\.)?youtube(?:-nocookie)?\\.com/(youtubei/v1/[^?]+\\?).*(videoId[^&]+).*",
/*fuzzyCanonReplace: */ "//youtube.fuzzy.replayweb.page/$1$2", /*fuzzyCanonReplace: */ "youtube.fuzzy.replayweb.page/$1$2",
/*.split:*/ "", /*.split:*/ "",
/*.splitlast:*/ false, /*.splitlast:*/ false,
/*"args: */ {{"videoId"}}, /*"args: */ {{"videoId"}},
}, },
{ {
/*"match":*/ "//.*googlevideo.com/(videoplayback)", /*"match":*/ ".*googlevideo.com/(videoplayback)",
/*fuzzyCanonReplace": */"//youtube.fuzzy.replayweb.page/$1", /*fuzzyCanonReplace": */"youtube.fuzzy.replayweb.page/$1",
/*.split:*/ "", /*.split:*/ "",
/*.splitlast:*/ false, /*.splitlast:*/ false,
/*"args": */ { /*"args": */ {