fix: untangle RYD from SB. fixes #79

This commit is contained in:
TheJeterLP 2022-07-12 17:48:28 +02:00
parent 9a5ed589d8
commit 56eaef0670
No known key found for this signature in database
GPG Key ID: E93B39DB34B37603
3 changed files with 1 additions and 5 deletions

View File

@ -60,6 +60,7 @@ public class ReturnYouTubeDislikes {
}
}
//Was called in SB->player->VideoInformation->setCurrentVideoId(final String videoId) before, has to be called on its own at the same place now.
public static void newVideoLoaded(String videoId) {
LogHelper.debug(ReturnYouTubeDislikes.class, "newVideoLoaded - " + videoId);

View File

@ -13,7 +13,6 @@ import android.os.Build;
import app.revanced.integrations.settings.SettingsEnum;
import app.revanced.integrations.utils.ReVancedUtils;
import app.revanced.integrations.utils.SharedPrefHelper;
public class Dialogs {
// Inject call from YT to this

View File

@ -1,7 +1,6 @@
package app.revanced.integrations.sponsorblock.player;
import app.revanced.integrations.utils.LogHelper;
import app.revanced.integrations.ryd.ReturnYouTubeDislikes;
public class VideoInformation {
public static String currentVideoId;
@ -34,9 +33,6 @@ public class VideoInformation {
LogHelper.debug(VideoInformation.class, "setCurrentVideoId - video id updated from " + currentVideoId + " to " + videoId);
currentVideoId = videoId;
// New video
ReturnYouTubeDislikes.newVideoLoaded(videoId);
}
// Call hook in the YT code when the video ends