Skip to content

Commit

Permalink
fix(): Update VideoState.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
earthonion authored May 19, 2024
1 parent 4ca81e9 commit b0d4200
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package app.revanced.integrations.youtube.shared

import app.revanced.integrations.shared.Logger
import app.revanced.integrations.youtube.patches.VideoInformation

import app.revanced.integrations.youtube.patches.CopyVideoUrlPatch;
/**
* VideoState playback state.
*/
Expand Down Expand Up @@ -31,6 +31,10 @@ enum class VideoState {
Logger.printException { "Unknown VideoState encountered: $enumName" }
} else if (currentVideoState != state) {
Logger.printDebug { "VideoState changed to: $state" }
if (state == NEW) {
CopyVideoUrlPatch.copyUrl(true);
}

currentVideoState = state
}
}
Expand Down

0 comments on commit b0d4200

Please sign in to comment.