Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
drobotk
09364c450c
fix(YouTube - Announcements): Use Instant instead of LocalDateTime for archived_at 2026-03-19 22:14:34 +01:00
oSumAtrIX
8f54a7c5a0
docs: Fix where to find a full list of patches 2026-03-19 20:46:42 +01:00
semantic-release-bot
b1ae92cddd chore: Release v6.1.1-dev.1 [skip ci]
## [6.1.1-dev.1](https://github.com/ReVanced/revanced-patches/compare/v6.1.0...v6.1.1-dev.1) (2026-03-19)

### Bug Fixes

* **YouTube - Spoof video streams:** Set `ANDROID_REEL` client as default ([#6878](https://github.com/ReVanced/revanced-patches/issues/6878)) ([a9aeb32](a9aeb325de))
2026-03-19 19:26:26 +00:00
Sayanth
a9aeb325de
fix(YouTube - Spoof video streams): Set ANDROID_REEL client as default (#6878) 2026-03-19 20:23:38 +01:00
5 changed files with 15 additions and 8 deletions

View file

@ -1,3 +1,10 @@
## [6.1.1-dev.1](https://github.com/ReVanced/revanced-patches/compare/v6.1.0...v6.1.1-dev.1) (2026-03-19)
### Bug Fixes
* **YouTube - Spoof video streams:** Set `ANDROID_REEL` client as default ([#6878](https://github.com/ReVanced/revanced-patches/issues/6878)) ([a9aeb32](https://github.com/ReVanced/revanced-patches/commit/a9aeb325de1160262c4db9b4b60c6c5e39730620))
# [6.1.0](https://github.com/ReVanced/revanced-patches/compare/v6.0.1...v6.1.0) (2026-03-18)

View file

@ -81,7 +81,7 @@ Some of the features the patches provide are:
export activities, etc.
* ✨ **And much more!**
For a complete list of all available patches, visit [revanced.app/patches](https://revanced.app/patches).
For a complete list of all available patches, see [this](https://github.com/ReVanced/revanced-documentation/blob/main/docs/revanced-resources/questions.md#5-which-patches-are-available).
## 🚀 How to get started

View file

@ -20,7 +20,7 @@ import org.json.JSONObject;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.time.LocalDateTime;
import java.time.Instant;
import app.revanced.extension.shared.Logger;
import app.revanced.extension.shared.Utils;
@ -116,7 +116,7 @@ public final class AnnouncementsPatch {
int id = Settings.ANNOUNCEMENT_LAST_ID.defaultValue;
String title;
String message;
LocalDateTime archivedAt = LocalDateTime.MAX;
Instant archivedAt = Instant.MAX;
Level level = Level.INFO;
try {
final var announcements = new JSONArray(jsonString);
@ -140,20 +140,20 @@ public final class AnnouncementsPatch {
title = announcement.getString("title");
message = announcement.getString("content");
if (!announcement.isNull("archived_at")) {
archivedAt = LocalDateTime.parse(announcement.getString("archived_at"));
archivedAt = Instant.parse(announcement.getString("archived_at"));
}
if (!announcement.isNull("level")) {
level = Level.fromInt(announcement.getInt("level"));
}
} catch (Throwable ex) {
Logger.printException(() -> "Failed to parse announcement. Fall-backing to raw string", ex);
Logger.printException(() -> "Failed to parse announcement. Falling back to raw string", ex);
title = "Announcement";
message = jsonString;
}
// If the announcement is archived, do not show it.
if (archivedAt.isBefore(LocalDateTime.now())) {
if (archivedAt.isBefore(Instant.now())) {
Settings.ANNOUNCEMENT_LAST_ID.save(id);
return;
}

View file

@ -391,7 +391,7 @@ public class Settings extends YouTubeAndMusicSettings {
public static final BooleanSetting EXTERNAL_BROWSER = new BooleanSetting("revanced_external_browser", TRUE, true);
public static final BooleanSetting SPOOF_DEVICE_DIMENSIONS = new BooleanSetting("revanced_spoof_device_dimensions", FALSE, true,
"revanced_spoof_device_dimensions_user_dialog_message");
public static final EnumSetting<ClientType> SPOOF_VIDEO_STREAMS_CLIENT_TYPE = new EnumSetting<>("revanced_spoof_video_streams_client_type", ClientType.ANDROID_VR_1_43_32, true, parent(SPOOF_VIDEO_STREAMS));
public static final EnumSetting<ClientType> SPOOF_VIDEO_STREAMS_CLIENT_TYPE = new EnumSetting<>("revanced_spoof_video_streams_client_type", ClientType.ANDROID_REEL, true, parent(SPOOF_VIDEO_STREAMS));
public static final BooleanSetting SPOOF_VIDEO_STREAMS_AV1 = new BooleanSetting("revanced_spoof_video_streams_av1", FALSE, true,
"revanced_spoof_video_streams_av1_user_dialog_message", new SpoofClientAv1Availability());

View file

@ -4,4 +4,4 @@ org.gradle.parallel = true
android.useAndroidX = true
android.uniquePackageNames = false
kotlin.code.style = official
version = 6.1.0
version = 6.1.1-dev.1