fix(YouTube - Spoof streaming data): On iOS clients, livestreams always start from the beginning

This commit is contained in:
inotia00
2024-12-16 21:54:57 +09:00
parent e8090243b1
commit d1b2fe16db
5 changed files with 31 additions and 10 deletions

View File

@ -78,6 +78,16 @@ public class SpoofStreamingDataPatch {
return SPOOF_STREAMING_DATA;
}
/**
* Injection point.
*/
public static boolean fixHLSCurrentTime(boolean original) {
if (!SPOOF_STREAMING_DATA) {
return original;
}
return false;
}
/**
* Injection point.
*/

View File

@ -64,13 +64,7 @@ public class SpoofStreamingDataSideEffectsPreference extends Preference {
private void updateUI() {
final ClientType clientType = Settings.SPOOF_STREAMING_DATA_TYPE.get();
final String summaryTextKey;
if (clientType == ClientType.IOS && Settings.SPOOF_STREAMING_DATA_IOS_SKIP_LIVESTREAM_PLAYBACK.get()) {
summaryTextKey = "revanced_spoof_streaming_data_side_effects_ios_skip_livestream_playback";
} else {
summaryTextKey = "revanced_spoof_streaming_data_side_effects_" + clientType.name().toLowerCase();
}
final String summaryTextKey = "revanced_spoof_streaming_data_side_effects_" + clientType.name().toLowerCase();
setSummary(str(summaryTextKey));
setEnabled(Settings.SPOOF_STREAMING_DATA.get());