diff --git a/src/userscript.ts b/src/userscript.ts index bf4d5c60..a0b8c41a 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -23475,16 +23475,16 @@ var $$IMU_EXPORT$$; videos[i].corrected_height = get_corrected_height(img, videos[i]); var size = videos[i].width * videos[i].corrected_height; - // >= because for some reason, in stories, type 102==103, but higher quality than 101 (all same dimensions) - // thanks to remlap on discord for reporting - if (size >= maxsize) { - maxsize = size; - maxobj = videos[i]; - } - // 104 > 101, but 104/_ptProgressive.mp4 is HEVC if (string_indexof(videos[i].url, "_ptProgressive.mp4") >= 0) { video_hevc = videos[i]; + } else { + // >= because for some reason, in stories, type 102==103, but higher quality than 101 (all same dimensions) + // thanks to remlap on discord for reporting + if (size >= maxsize) { + maxsize = size; + maxobj = videos[i]; + } } } diff --git a/userscript.user.js b/userscript.user.js index 89ed5846..90d6fa65 100644 --- a/userscript.user.js +++ b/userscript.user.js @@ -21769,15 +21769,16 @@ var $$IMU_EXPORT$$; for (var i = 0; i < videos.length; i++) { videos[i].corrected_height = get_corrected_height(img, videos[i]); var size = videos[i].width * videos[i].corrected_height; - // >= because for some reason, in stories, type 102==103, but higher quality than 101 (all same dimensions) - // thanks to remlap on discord for reporting - if (size >= maxsize) { - maxsize = size; - maxobj = videos[i]; - } // 104 > 101, but 104/_ptProgressive.mp4 is HEVC if (string_indexof(videos[i].url, "_ptProgressive.mp4") >= 0) { video_hevc = videos[i]; + } else { + // >= because for some reason, in stories, type 102==103, but higher quality than 101 (all same dimensions) + // thanks to remlap on discord for reporting + if (size >= maxsize) { + maxsize = size; + maxobj = videos[i]; + } } } if (maxobj !== null) {