Jump to content

Download Media — Download video and audio from web pages


Recommended Posts

Stopped working completely. The video is not in Downloads.

 

[23:58:57.810] Logging Stopped.
[23:59:08.810] Logging Started...
[23:59:09.758] STDERR: Download Media[Run Script] 55:205: execution error: Alfred 5 got an error: Cannot find workflow with Id 'com.vitorgalvao.alfred.watchlist' (-2)
You do not have WatchList installed. Download it at https://github.com/vitorgalvao/alfred-workflows/tree/master/WatchList
[23:59:10.665] Download Media[Script Filter] Queuing argument ''
[23:59:11.018] Download Media[Script Filter] Script with argv '' finished
[23:59:11.023] STDERR: Download Media[Script Filter] /Users/abdulelahahmed/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.40C74967-B4D8-43B7-9A9A-24C9DCA69CBE/get_title_and_url.js: execution error: Error: Error: You need a supported browser as your frontmost app (-2700)
[23:59:11.023] Download Media[Script Filter] {"items":[{"subtitle":"Add to WatchList (⌥): true 𐄁 Full Playlist (⌘): false","valid":true,"variables":{"media_type":"video","add_to_watchlist":true,"full_playlist":false},"mods":{"cmd":{"subtitle":"Add to WatchList (⌥): true 𐄁 Full Playlist (⌘): true","variables":{"media_type":"video","Add_to_watchlist":true,"full_playlist":true}},"alt":{"subtitle":"Add to WatchList (⌥): false 𐄁 Full Playlist (⌘): false","variables":{"media_type":"video","add_to_watchlist":false,"full_playlist":false}},"cmd+alt":{"subtitle":"Add to WatchList (⌥): false 𐄁 Full Playlist (⌘): true","variables":{"media_type":"video","add_to_watchlist":false,"full_playlist":true}}},"uid":"Download video clipboard","title":"https://www.youtube.com/watch?v=Bu8MwTYqMGc","arg":"https://www.youtube.com/watch?v=Bu8MwTYqMGc"}]}
[23:59:11.524] Download Media[Script Filter] Processing complete
[23:59:11.525] Download Media[Script Filter] Passing output 'https://www.youtube.com/watch?v=Bu8MwTYqMGc' to Run Script
[23:59:18.106] STDERR: Download Media[Run Script] 55:205: execution error: Alfred 5 got an error: Cannot find workflow with Id 'com.vitorgalvao.alfred.watchlist' (-2)
You do not have WatchList installed. Download it at https://github.com/vitorgalvao/alfred-workflows/tree/master/WatchList

Link to comment
  • 1 month later...

Has something changed with Services, when i right click a youtube URL and select "DownMedia Video" I get this error:

 

"The action “Run JavaScript” encountered an error: “Error: Error: Cannot find workflow with Id 'com.vitorgalvao.alfred.downmedia'”"

 

 

The workflow works fine when being triggered by a hot key or typing "DV" into aflred. 

Link to comment

I found after not using this workflow for a a few months, downloads were initiated first time, then disappeared. The log shows a couple of errors:

 

[14:03:46.259] Download Media[Script Filter] Passing output 'https://youtu.be/FEyVqA-DVwg?si=WuUSr5LWuC6cpnt5' to Run Script
[14:03:57.095] STDERR: Download Media[Run Script] WARNING: You have requested merging of multiple formats but ffmpeg is not installed. The formats won't be merged
xattr: No such file: /Users/ian/Downloads/Girl in China reasons with dad for more play time.mp4
55:228: execution error: Alfred 5 got an error: Cannot find workflow with Id 'com.vitorgalvao.alfred.watchlist' (-2)
You do not have WatchList installed. Download it at https://github.com/vitorgalvao/alfred-workflows/tree/master/WatchList

 

I assume the ffmpeg error is the important one, though I didn't know we also needed to install another (WatchList) workflow (I see there is a setting in Download Vid to disable this, but it was enabled for me, my memory is fuzzy but I don't remember activating it, but I probably trust you more than I trust myself 😆).

 

I install ffmpeg myself to my ~/bin folder which is on my shell path, but perhaps that is not picked up by Alfred? How can I symlink so DV can find my ffmpeg?

 

EDIT: Using yt-dlp in the shell works fine...

Edited by iandol
Link to comment
2 hours ago, iandol said:

I didn't know we also needed to install another (WatchList) workflow


You don’t. That’s optional. There’s no problem with having the option on but not having the workflow installed.

 

2 hours ago, iandol said:

I install ffmpeg myself to my ~/bin folder which is on my shell path, but perhaps that is not picked up by Alfred?


See Understanding the Scripting Environment.

 

Install ffmpeg with Homebrew. The workflow’s Gallery page has the information you need, on the box right at the top.

Link to comment

Thanks for link to the (well-written) documentation, that is helpful! I'll symlink to one of those paths as the static builds from https://ffmpeg.martin-riedl.de are more up-to-date, contain some optimisation patches and homebrew's ffmpeg pulls in too many dependencies for my tastes. I realise I am swimming against the recommendations 🤪

 

EDIT: I can confirm symlinking allowed yt-dlp to use my own ffmpeg builds.

Edited by iandol
confirm symlinking works
Link to comment

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...