Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

query search not working on macOS #65

Open
moonlinx opened this issue Jan 17, 2025 · 1 comment
Open

query search not working on macOS #65

moonlinx opened this issue Jan 17, 2025 · 1 comment

Comments

@moonlinx
Copy link

macOS - Sequoia 15.2
Terminal: Wezterm
ytui version: V0.2.2%

When trying to use the default search on macos, nothing comes up. Doesn't matter what the settings are.

ytui query search 'I really want to stay at your home'
Searching for videos with query: I really want to stay at your home

config.yaml

1 │ channels:
2 │ local: true
3 │ subscribed:
4 │ download_dir: /Users/$USERNAME/Movies/Youtube/
5 │ history:
6 │ enable: true
7 │ invidious:
8 │ instance: https://invidious.jing.rocks
9 │ proxy: ""
10 │ loglevel: info
11 │ youtube:
12 │ clientid: $YT_API
13 │ secretid: $YT_API

@moonlinx
Copy link
Author

I forgot to add the logs. These are from today

➜ ~/Library/Application Support/ytui ✔ tail -f ytui.log
{"level":"info","ts":1737381242.1545558,"caller":"cmd/show_suscribed.go:88","msg":"Retrieved local subscribed channels.","channel_count":2}
{"level":"info","ts":1737381243.86003,"caller":"youtube/invidious_search.go:332","msg":"Successfully fetched info for channel.","channel_id":"UCTt2AnK--mnRmICnf-CCcrw","channel_name":"Kevin Tran 陈科伟"}
{"level":"info","ts":1737381247.036093,"caller":"youtube/invidious_search.go:332","msg":"Successfully fetched info for channel.","channel_id":"UCutXfzLC5wrV3SInT_tdY0w","channel_name":"Wong Fu Productions"}
{"level":"info","ts":1737381247.0363169,"caller":"youtube/invidious_search.go:339","msg":"Completed fetching info for all channels.","total_channel_count":2}
{"level":"info","ts":1737381247.036368,"caller":"cmd/show_suscribed.go:99","msg":"Retrieved all channels information.","channel_count":2}
{"level":"info","ts":1737381310.2480152,"caller":"cmd/root.go:79","msg":"Initialized configuration."}
{"level":"info","ts":1737381310.248123,"caller":"cmd/query_search.go:36","msg":"Search command initiated.","query":"wong fu productions"}
{"level":"info","ts":1737381312.159721,"caller":"youtube/invidious_search.go:196","msg":"Successfully retrieved videos.","video_count":20}
{"level":"error","ts":1737381318.011095,"caller":"youtube/invidious_search.go:174","msg":"Received non-200 response from Invidious API.","url":"https://invidious.jing.rocks/api/v1/search?page=2&q=wong+fu+productions&region=US&type=video","status_code":502,"status":"502 Bad Gateway","stacktrace":"github.com/Banh-Canh/ytui/pkg/youtube.processResponse\n\t/home/runner/work/ytui/ytui/pkg/youtube/invidious_search.go:174\ngithub.com/Banh-Canh/ytui/pkg/youtube.searchVideos\n\t/home/runner/work/ytui/ytui/pkg/youtube/invidious_search.go:105\ngithub.com/Banh-Canh/ytui/pkg/youtube.SearchVideos\n\t/home/runner/work/ytui/ytui/pkg/youtube/invidious_search.go:66\ngithub.com/Banh-Canh/ytui/cmd.init.func2\n\t/home/runner/work/ytui/ytui/cmd/query_search.go:56\ngithub.com/spf13/cobra.(*Command).execute\n\t/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:989\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1117\ngithub.com/spf13/cobra.(*Command).Execute\n\t/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1041\ngithub.com/Banh-Canh/ytui/cmd.Execute\n\t/home/runner/work/ytui/ytui/cmd/root.go:83\nmain.main\n\t/home/runner/work/ytui/ytui/main.go:11\nruntime.main\n\t/opt/hostedtoolcache/go/1.22.6/x64/src/runtime/proc.go:271"}
{"level":"fatal","ts":1737381318.0112698,"caller":"cmd/query_search.go:58","msg":"Error searching for videos.","error":"received non-200 response: 502 502 Bad Gateway","stacktrace":"github.com/Banh-Canh/ytui/cmd.init.func2\n\t/home/runner/work/ytui/ytui/cmd/query_search.go:58\ngithub.com/spf13/cobra.(*Command).execute\n\t/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:989\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1117\ngithub.com/spf13/cobra.(*Command).Execute\n\t/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1041\ngithub.com/Banh-Canh/ytui/cmd.Execute\n\t/home/runner/work/ytui/ytui/cmd/root.go:83\nmain.main\n\t/home/runner/work/ytui/ytui/main.go:11\nruntime.main\n\t/opt/hostedtoolcache/go/1.22.6/x64/src/runtime/proc.go:271"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant