-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(YouTube - Video playback): Applying default video quality to Shor…
…ts causes the beginning of the shorts to get stuck in a loop
- Loading branch information
Showing
2 changed files
with
19 additions
and
10 deletions.
There are no files selected for viewing
19 changes: 13 additions & 6 deletions
19
...hes/src/main/kotlin/app/revanced/patches/youtube/utils/fix/shortsplayback/Fingerprints.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
package app.revanced.patches.youtube.utils.fix.shortsplayback | ||
|
||
import app.revanced.util.fingerprint.legacyFingerprint | ||
import app.revanced.util.or | ||
import com.android.tools.smali.dexlib2.AccessFlags | ||
|
||
internal val shortsPlaybackFingerprint = legacyFingerprint( | ||
name = "shortsPlaybackFingerprint", | ||
internal const val SHORTS_PLAYBACK_PRIMARY_FEATURE_FLAG = 45387052L | ||
|
||
internal val shortsPlaybackPrimaryFingerprint = legacyFingerprint( | ||
name = "shortsPlaybackPrimaryFingerprint", | ||
returnType = "Z", | ||
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL, | ||
literals = listOf(45387052L), | ||
literals = listOf(SHORTS_PLAYBACK_PRIMARY_FEATURE_FLAG), | ||
) | ||
|
||
internal const val SHORTS_PLAYBACK_SECONDARY_FEATURE_FLAG = 45378771L | ||
|
||
internal val shortsPlaybackSecondaryFingerprint = legacyFingerprint( | ||
name = "shortsPlaybackSecondaryFingerprint", | ||
returnType = "L", | ||
literals = listOf(SHORTS_PLAYBACK_SECONDARY_FEATURE_FLAG), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters