Skip to content

Commit

Permalink
fix: untangle RYD from SB. fixes #79
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJeterLP committed Jul 12, 2022
1 parent 9a5ed58 commit 56eaef0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public static void onEnabledChange(boolean enabled) {
}
}

//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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

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
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -34,9 +33,6 @@ public static void setCurrentVideoId(final String videoId) {
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
Expand Down

0 comments on commit 56eaef0

Please sign in to comment.