Repository navigation
Handle newer YouTube playback error messages - #147
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to
|
Private video, and newer interstitial error messages are ignored.Note
Overview Updates playback availability handling to recognize YouTube’s newer error messages, including private-video errors displayed in interstitial screens.
Error extraction
playabilityStatus(watchHTML:)combines and deduplicatesreason,messages, and interstitial title and description text into a[String]. It also preserves the playback status when no explanatory message is available.Availability handling
checkAvailability()recognizes"Private video"alongside existing private-video wording and checks the collected messages for private and members-only restrictions. It handles the playback status once per check and reportsYouTubeKitError.videoUnavailablefor an error status even without accompanying text.