diff --git a/app/src/main/java/app/revanced/integrations/youtube/shared/VideoInformation.java b/app/src/main/java/app/revanced/integrations/youtube/shared/VideoInformation.java index 954e68f0bb..2a1615e567 100644 --- a/app/src/main/java/app/revanced/integrations/youtube/shared/VideoInformation.java +++ b/app/src/main/java/app/revanced/integrations/youtube/shared/VideoInformation.java @@ -167,6 +167,18 @@ public static void setVideoInformation(@NonNull String newlyLoadedChannelId, @No ); } + /** + * Injection point. + * + * @param newlyLoadedVideoId id of the current video + */ + public static void setVideoId(@NonNull String newlyLoadedVideoId) { + if (videoId.equals(newlyLoadedVideoId)) + return; + + videoId = newlyLoadedVideoId; + } + /** * Id of the last video opened. Includes Shorts. *