If you view this webm >>1719848 at full resolution and inspect the video <source> elements, you’ll note the one that’s supposed to point to the mp4 version instead shows src="//derpicdn.net/img/view/2018/4/29/1719848__safe_screencap_twilight+sparkle_horse+play_spoiler-colon-s08e07_alicorn_animated_sound_twilight+sparkle+%28alicorn%29_mp4.webm"
.
This happens because the function handling image scaling uses replace('webm', 'mp4')
on the webm source to derive the mp4 version, and the substring ‘webm’ already exists as part of the filename for this particular video (..._twilight+sparkle+%28alicorn%29_webm.webm
).
While this should not affect the majority of the users under most circumstances, the bug will manifest and cause display issues when these conditions are met:
replace(/webm$/, 'mp4')
should ensure that only the file extension gets replaced.(twilight sparkle OR rainbow dash) AND canterlot
, then view an image, then hit the Random Image button (the one that gives you a random image based on your current search), your search will be misinterpreted as *
and the next image will be completely random.* AND
, so that would make my example become * AND (twilight sparkle OR rainbow dash) AND canterlot
. The other solution (only applies if your search contains a tag that isn’t wrapped in brackets) is to put an unbracketed tag at the start of your search.* AND (twilight sparkle OR rainbow dash) AND canterlot
. While this isn’t the exact search I’m using because NSFW reasons, the search I am using (if put in sfw equivilent) is being interpreted as * AND twilight sparkle AND rainbow dash AND canterlot
because when I have a window with this search on my other monitor, and randomize in the window with the original search, the images I’m randomly getting are all in the search on my other monitor.When you search something like (twilight sparkle OR rainbow dash) AND canterlot, then view an image, then hit the Random Image button (the one that gives you a random image based on your current search), your search will be misinterpreted as * and the next image will be completely random.
rd || ts
— works (rd)
— nope -rd
— works rd || ts && fs
— worksHelp fund the $15 daily operational cost of Derpibooru - support us financially!