youpipe: searching a video url opens the video
- Commit
834e0752b868f6e1b31021fcd40920dae3f269e8- Author
- Vayun <[email protected]>
- When
- 2026-01-30 04:02 UTC (10 months ago)
- Parents
c535025
Diff
youpipe/src/main/java/com/vayunmathur/youpipe/ui/SearchPage.kt
diff --git a/youpipe/src/main/java/com/vayunmathur/youpipe/ui/SearchPage.kt b/youpipe/src/main/java/com/vayunmathur/youpipe/ui/SearchPage.ktindex 36196e04f9..ff738caf13 100644--- a/youpipe/src/main/java/com/vayunmathur/youpipe/ui/SearchPage.kt+++ b/youpipe/src/main/java/com/vayunmathur/youpipe/ui/SearchPage.kt@@ -51,6 +51,10 @@ fun SearchPage(backStack: NavBackStack<Route>) { val scope = rememberCoroutineScope() fun search() {+ if(searchQuery.contains("/watch?v=")) {+ backStack.add(Route.VideoPage(searchQuery))+ return+ } scope.launch { withContext(Dispatchers.IO) { try {