mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-12-01 00:02:55 +01:00
fix: untangle RYD from SB. fixes #79
This commit is contained in:
parent
9a5ed589d8
commit
56eaef0670
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user