Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
fix(YouTube/Overlay button) Fix Time Ordered Playlist open directly i…
Browse files Browse the repository at this point in the history
…n the app
  • Loading branch information
anddea committed Feb 22, 2024
1 parent cacbb69 commit 4c9551e
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,7 @@ public static void startDownloaderActivity(@NonNull Context context, @NonNull St
}

public static void playlistFromChannelVideosListener(@NonNull Context context, boolean activated) {
// This patches require Open links directly to be worked
if (!SettingsEnum.ENABLE_OPEN_LINKS_DIRECTLY.getBoolean()) {
SettingsEnum.ENABLE_OPEN_LINKS_DIRECTLY.saveBoolean(true);
ReVancedUtils.runOnMainThreadDelayed(() -> SettingsEnum.ENABLE_OPEN_LINKS_DIRECTLY.saveBoolean(false), 1000L);
}
String baseUri = "https://youtu.be/" + VideoInformation.getVideoId() + "?t=" + VideoInformation.getVideoTime() / 1000;
String baseUri = "vnd.youtube://" + VideoInformation.getVideoId() + "?start=" + VideoInformation.getVideoTime() / 1000;
if (activated) {
baseUri += "&list=UL" + VideoInformation.getVideoId();
}
Expand Down

0 comments on commit 4c9551e

Please sign in to comment.