mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-06-02 19:36:30 +02:00
fix(YouTube - Return YouTube Dislike): Do not load Shorts dislikes if dislike button is hidden
This commit is contained in:
parent
a33516bf4f
commit
7ec945d8d9
|
@ -235,7 +235,7 @@ public class ReturnYouTubeDislikePatch {
|
||||||
true, isRollingNumber);
|
true, isRollingNumber);
|
||||||
} else if (!isRollingNumber && conversionContextString.contains("|shorts_dislike_button.eml|")) {
|
} else if (!isRollingNumber && conversionContextString.contains("|shorts_dislike_button.eml|")) {
|
||||||
// Litho Shorts player.
|
// Litho Shorts player.
|
||||||
if (!Settings.RYD_SHORTS.get()) {
|
if (!Settings.RYD_SHORTS.get() || Settings.HIDE_SHORTS_DISLIKE_BUTTON.get()) {
|
||||||
// Must clear the current video here, otherwise if the user opens a regular video
|
// Must clear the current video here, otherwise if the user opens a regular video
|
||||||
// then opens a litho short (while keeping the regular video on screen), then closes the short,
|
// then opens a litho short (while keeping the regular video on screen), then closes the short,
|
||||||
// the original video may show the incorrect dislike value.
|
// the original video may show the incorrect dislike value.
|
||||||
|
@ -451,7 +451,7 @@ public class ReturnYouTubeDislikePatch {
|
||||||
if (!Settings.RYD_ENABLED.get()) {
|
if (!Settings.RYD_ENABLED.get()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!Settings.RYD_SHORTS.get()) {
|
if (!Settings.RYD_SHORTS.get() || Settings.HIDE_SHORTS_DISLIKE_BUTTON.get()) {
|
||||||
// Must clear the data here, in case a new video was loaded while PlayerType
|
// Must clear the data here, in case a new video was loaded while PlayerType
|
||||||
// suggested the video was not a short (can happen when spoofing to an old app version).
|
// suggested the video was not a short (can happen when spoofing to an old app version).
|
||||||
clearData();
|
clearData();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user