Jump to content

YouTube Search


Recommended Posts

YouTube Search

alfred-youtube.svg 68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f78696c6f7061696e742f616c667265642d796f75747562652f746f74616c2e737667 alfred-youtube

 

FmB19yL.png

An Alfred workflow to search YouTube.


Setup


The workflow requires an API key, which can be requested and set up by following the steps 1–3 that you can find here.


Usage

 

Search videos via the yt keyword, channels via the ytc keyword, and zplaylists via the ytp keyword.

 

When displaying channels, select one of them and use the modifier key to show its description.

Contribute


To report a bug or request a feature, please create an issue or submit a pull request.

 

Edited by xilopaint
Link to comment
  • 1 month later...

The workflow is no longer available in Alfred Gallery and will be updated in the future through OneUpdater. I requested its removal because the Gallery doesn't accept non-notarized binaries. Using uncompiled code has performance and development limitations. Good news is that the workflow will be faster from now on (~40% faster).

 

If you downloaded the workflow from Gallery I suggest you to download v0.2.0 from GitHub. Future updates will be automatic.

Edited by xilopaint
Link to comment
  • 2 weeks later...

Hi @xilopaint, I'm getting this error on Monterey 12.6.5 / Alfred 5.1:

 

[11:16:05.288] ERROR: YouTube Search[Script Filter] Code 134: dyld[26843]: Symbol not found: (_$s10Foundation12URLQueryItemV4name5valueACSSh_SSSghtcfC)
  Referenced from: '~/Documents/Alfred Backup/Alfred.alfredpreferences/workflows/user.workflow.8175CB29-AB63-4B61-A929-A1377FF7F02A/ytsearch'
  Expected in: '/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation'

 

Link to comment
1 hour ago, dood said:

Hi @xilopaint, I'm getting this error on Monterey 12.6.5 / Alfred 5.1:

 

[11:16:05.288] ERROR: YouTube Search[Script Filter] Code 134: dyld[26843]: Symbol not found: (_$s10Foundation12URLQueryItemV4name5valueACSSh_SSSghtcfC)
  Referenced from: '~/Documents/Alfred Backup/Alfred.alfredpreferences/workflows/user.workflow.8175CB29-AB63-4B61-A929-A1377FF7F02A/ytsearch'
  Expected in: '/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation'

 

 

This suggests the Foundation framework version present in Monterey lacks a symbol needed to run the workflow. If you can't upgrade your system, I'm afraid there's nothing we can do.

Link to comment
  • 2 weeks later...
On 5/18/2023 at 7:01 PM, xilopaint said:

Update v0.3.0

 

New Features (ENH)

 

  • ENH: add playlist search (#3)

 

Full Changelog:

https://github.com/xilopaint/alfred-youtube/compare/v0.2.0…v0.3.0

 

Hi Xilopaint,

Kindly, the first attached screenshot shows the results that appear after attempting to search for a video on YouTube, the second shows the results before I write any thing. Where could the expected error be? I have done everything required; I obtained the YouTube API key from Google and placed it in its designated location. The workflow is supposed to work, but unfortunately, I don't know where the problem lies. I would greatly appreciate your help. Thank you very much.

 

Screen Shot 2023-06-14 at 2.00.12 AM.png

Screen Shot 2023-06-14 at 2.13.15 AM.png

Edited by Faris Najem
Link to comment
12 hours ago, xilopaint said:

@Faris Najem

 

You need to post the Workflow Debugger output.

This is the results:

[02:28:08.359] Logging Started...
[02:28:24.159] YouTube Search[Script Filter] Queuing argument 'm'
[02:28:24.185] YouTube Search[Script Filter] Script with argv 'm' finished
[02:28:24.190] ERROR: YouTube Search[Script Filter] Code 134: dyld: Symbol not found: _$s10Foundation12URLQueryItemV4name5valueACSSh_SSSghtcfC
  Referenced from: /Users/myname/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.B9A7A6EE-6772-47C0-B355-7B4995469646/./ytsearch (which was built for Mac OS X 13.3)
  Expected in: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation

Edited by Faris Najem
Link to comment
47 minutes ago, Faris Najem said:

This is the results:

[02:28:08.359] Logging Started...
[02:28:24.159] YouTube Search[Script Filter] Queuing argument 'm'
[02:28:24.185] YouTube Search[Script Filter] Script with argv 'm' finished
[02:28:24.190] ERROR: YouTube Search[Script Filter] Code 134: dyld: Symbol not found: _$s10Foundation12URLQueryItemV4name5valueACSSh_SSSghtcfC
  Referenced from: /Users/farisal-mawwashi/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.B9A7A6EE-6772-47C0-B355-7B4995469646/./ytsearch (which was built for Mac OS X 13.3)
  Expected in: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation

 

What version of macOS are you running?

Link to comment
10 minutes ago, Faris Najem said:

MacOs Catalina 10.15.7 

 

You need macOS Ventura to run the latest workflow version. It seems v0.1.0 might work with some older versions of macOS according to this post:
 

On 6/2/2023 at 4:49 PM, dood said:

I actually discovered that v0.1.0 still works for me, so I'll stick with that

Edited by xilopaint
Link to comment
  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...