mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2026-01-11 13:46:17 +00:00
chore: Remove spoof stream data migration since iPadOS can cause 1 minute playback failure for users in some regions
This commit is contained in:
@@ -5,7 +5,6 @@ import static java.lang.Boolean.TRUE;
|
|||||||
import static app.revanced.extension.shared.settings.Setting.parent;
|
import static app.revanced.extension.shared.settings.Setting.parent;
|
||||||
import static app.revanced.extension.shared.spoof.SpoofVideoStreamsPatch.AudioStreamLanguageOverrideAvailability;
|
import static app.revanced.extension.shared.spoof.SpoofVideoStreamsPatch.AudioStreamLanguageOverrideAvailability;
|
||||||
|
|
||||||
import app.revanced.extension.shared.Logger;
|
|
||||||
import app.revanced.extension.shared.spoof.ClientType;
|
import app.revanced.extension.shared.spoof.ClientType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -33,11 +32,4 @@ public class BaseSettings {
|
|||||||
public static final BooleanSetting SPOOF_STREAMING_DATA_STATS_FOR_NERDS = new BooleanSetting("revanced_spoof_streaming_data_stats_for_nerds", TRUE, parent(SPOOF_VIDEO_STREAMS));
|
public static final BooleanSetting SPOOF_STREAMING_DATA_STATS_FOR_NERDS = new BooleanSetting("revanced_spoof_streaming_data_stats_for_nerds", TRUE, parent(SPOOF_VIDEO_STREAMS));
|
||||||
// Client type must be last spoof setting due to cyclic references.
|
// Client type must be last spoof setting due to cyclic references.
|
||||||
public static final EnumSetting<ClientType> SPOOF_VIDEO_STREAMS_CLIENT_TYPE = new EnumSetting<>("revanced_spoof_video_streams_client_type", ClientType.ANDROID_VR_1_61_48, 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_VR_1_61_48, true, parent(SPOOF_VIDEO_STREAMS));
|
||||||
|
|
||||||
static {
|
|
||||||
if (SPOOF_VIDEO_STREAMS_CLIENT_TYPE.get() == ClientType.IOS_UNPLUGGED) {
|
|
||||||
Logger.printInfo(() -> "Migrating from iOS Unplugged to iPadOS");
|
|
||||||
SPOOF_VIDEO_STREAMS_CLIENT_TYPE.save(ClientType.IPADOS);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -113,23 +113,6 @@ public enum ClientType {
|
|||||||
false,
|
false,
|
||||||
false,
|
false,
|
||||||
"iPadOS"
|
"iPadOS"
|
||||||
),
|
|
||||||
/**
|
|
||||||
* Obsolete and broken client. Here only to migrate data.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
IOS_UNPLUGGED(
|
|
||||||
33,
|
|
||||||
"IOS_UNPLUGGED",
|
|
||||||
"Apple",
|
|
||||||
"iPhone16,2",
|
|
||||||
"iOS",
|
|
||||||
"18.2.22C152",
|
|
||||||
"8.49",
|
|
||||||
"dummy user-agent",
|
|
||||||
true,
|
|
||||||
true,
|
|
||||||
"iOS TV"
|
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user