Jump to content
vitor

DownMedia — Download media from popular sources

Recommended Posts

14 hours ago, vitor said:

 

Because you’ve installed the Services (:downmediaservices in Alfred).

 

 

What program?

  Enabling it addressed that issue thank you!

 

 

Sorry I used the word Program but I meant workflow. Thanks for your help!

Share this post


Link to post

I have a similar kind of problem with using the da command. It keeps saving it as OPUS.

 

OS ver: 10.15.4

Alfred ver: 4.09

Workflow ver: 20.2

Youtube-dl ver: 2020.05.03 (installed via brew)

ffmpeg ver: 4.2.2

 

Workflow env vars

image.png.50b01f51a93486f403abd6843f3d8108.png

 

Log cap

[17:40:39.098] DownMedia[Script Filter] Queuing argument ''
[17:40:39.800] DownMedia[Script Filter] Script with argv '' finished
[17:40:39.804] DownMedia[Script Filter] {"items":[{"uid":"downmedia audio","subtitle":"Add to WatchList (⌥): true 𐄁 Full Playlist (⌘): false","valid":true,"variables":{"media_type":"audio","add_to_watchlist":true,"full_playlist":false},"mods":{"cmd":{"subtitle":"Add to WatchList (⌥): true 𐄁 Full Playlist (⌘): true","variables":{"media_type":"audio","Add_to_watchlist":true,"full_playlist":true}},"alt":{"subtitle":"Add to WatchList (⌥): false 𐄁 Full Playlist (⌘): false","variables":{"media_type":"audio","add_to_watchlist":false,"full_playlist":false}},"cmd+alt":{"subtitle":"Add to WatchList (⌥): false 𐄁 Full Playlist (⌘): true","variables":{"media_type":"audio","add_to_watchlist":false,"full_playlist":true}}},"title":"Act On Instinct - YouTube Music","arg":"https://music.youtube.com/watch?v=tWwoyxHl7X8&list=RDAMVMtWwoyxHl7X8"}]}
[17:40:40.493] DownMedia[Script Filter] Processing complete
[17:40:40.496] DownMedia[Script Filter] Passing output 'https://music.youtube.com/watch?v=tWwoyxHl7X8&list=RDAMVMtWwoyxHl7X8' to Run Script
[17:40:49.448] STDERR: DownMedia[Run Script] xattr: No such file: /Users/xyz/Downloads/Act On Instinct.webm
55:194: execution error: Alfred 4 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
[17:40:49.457] DownMedia[Run Script] Processing complete
[17:40:49.458] DownMedia[Run Script] Passing output '' to Run Script

 

If you need any additional information or need me to try out anything, please let me know.

 

Regardless, thank you for this awesome workflow! 😁

Share this post


Link to post
Posted (edited)

Hi, I'm really struggling to get it work. I'm completely new to Alfred and Workflows.

OS ver: 10.15.5

Alfred ver: 4.09

Workflow ver: 20.2

 

I downloaded the latest version of your workflow but when i enter the keyword "dv" with a youtube tab open and running nothing happens. Could you tell me what i'm missing? Thank you very much in advance!

Edited by wardepauw

Share this post


Link to post

Hi @wardepauw, welcome to the forum.

 

23 minutes ago, wardepauw said:

with a youtube tab open and running nothing happens

 

In which browser?

 

BTW, it’s basically impossible to help you with a description like “nothing happens”. If you’re having a problem with a workflow, please always check Alfred’s debugger and post what you see in there (making sure to remove any personal info like email addresses or passwords, first).

Share this post


Link to post

Hi @deanishe thanks for your quick reply! i'm sorry. I'm using Opera browser, but i also tried the workflow in Safari. I didn't give more info because i simply downloaded the workflow and started testing it. I don't know if i have to add something to the script or install additional software. Like I said, I'm really a newbie.

Share this post


Link to post
1 minute ago, wardepauw said:

I don't know if i have to add something to the script or install additional software.

 

No, you don't.

 

What does Alfred's debugger say when you run the workflow?

Share this post


Link to post

Pretty sure that just means the workflow didn't log anything. Try changing the "Show" option from "Interesting information" to "All information".

Share this post


Link to post

The logging started at last:

[23:57:18.792] Logging Started...

[00:05:09.228] DownMedia[Hotkey] Processing complete

[00:05:09.232] DownMedia[Hotkey] Passing output '' to Run Script

[00:05:10.225] DownMedia[Run Script] Processing complete

[00:05:10.229] DownMedia[Run Script] Passing output 'https://www.youtube.com/watch?v=AMkIcGYuA14

' to Play Sound

[00:05:10.252] DownMedia[Play Sound] Processing complete

[00:05:10.257] DownMedia[Play Sound] Passing output 'https://www.youtube.com/watch?v=AMkIcGYuA14

' to Arg and Vars

[00:05:10.258] DownMedia[Arg and Vars] Processing complete

[00:05:10.259] DownMedia[Arg and Vars] Passing output 'https://www.youtube.com/watch?v=AMkIcGYuA14

' to Arg and Vars

[00:05:10.260] DownMedia[Arg and Vars] Processing complete

[00:05:10.261] DownMedia[Arg and Vars] Passing output 'https://www.youtube.com/watch?v=AMkIcGYuA14

' to Run Script

[00:05:10.684] ERROR: DownMedia[Run Script] Could not download resource.

/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open3.rb:213:in `spawn': No such file or directory - youtube-dl (Errno::ENOENT)

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open3.rb:213:in `popen_run'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open3.rb:159:in `popen2'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open3.rb:342:in `capture2'

from /Users/wardepauw/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.9E596EAF-4B6F-4853-A21E-5F2447102B41/downmedia_functions.rb:177:in `download_url'

from /Users/wardepauw/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/003BECA1-9ADC-40A9-A822-3FBFFE0FDD64:5:in `<main>'

[00:05:10.693] DownMedia[Run Script] Processing complete

[00:05:10.695] DownMedia[Run Script] Passing output '' to Run Script

[00:05:13.903] DownMedia[Script Filter] Queuing argument ''

[00:05:14.347] DownMedia[Script Filter] Script with argv '' finished

[00:05:14.357] ERROR: DownMedia[Script Filter] Code 1: Could not download resource.

/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open3.rb:213:in `spawn': No such file or directory - pbpaste (Errno::ENOENT)

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open3.rb:213:in `popen_run'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open3.rb:159:in `popen2'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open3.rb:342:in `capture2'

from /Users/wardepauw/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.9E596EAF-4B6F-4853-A21E-5F2447102B41/downmedia_functions.rb:19:in `show_options'

from /Users/wardepauw/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/5C692A4D-3011-4AEB-9DB0-23678B2E3493:3:in `<main>'

[00:05:19.391] DownMedia[Script Filter] Queuing argument ''

[00:05:19.808] DownMedia[Script Filter] Script with argv '' finished

[00:05:19.818] ERROR: DownMedia[Script Filter] Code 1: Could not download resource.

/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open3.rb:213:in `spawn': No such file or directory - pbpaste (Errno::ENOENT)

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open3.rb:213:in `popen_run'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open3.rb:159:in `popen2'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open3.rb:342:in `capture2'

from /Users/wardepauw/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.9E596EAF-4B6F-4853-A21E-5F2447102B41/downmedia_functions.rb:19:in `show_options'

from /Users/wardepauw/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/FD57D642-1E05-4BD7-9E8B-41CD2490CF11:3:in `<main>'

[00:05:22.937] DownMedia[Script Filter] Queuing argument ''

[00:05:23.336] DownMedia[Script Filter] Script with argv '' finished

[00:05:23.347] ERROR: DownMedia[Script Filter] Code 1: Could not download resource.

/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open3.rb:213:in `spawn': No such file or directory - pbpaste (Errno::ENOENT)

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open3.rb:213:in `popen_run'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open3.rb:159:in `popen2'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open3.rb:342:in `capture2'

from /Users/wardepauw/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.9E596EAF-4B6F-4853-A21E-5F2447102B41/downmedia_functions.rb:19:in `show_options'

from /Users/wardepauw/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/828B65E7-6E76-427D-80E7-1B8C6E9F5EA2:3:in `<main>'

[00:05:25.188] DownMedia[Script Filter] Queuing argument ''

[00:05:25.551] DownMedia[Script Filter] Script with argv '' finished

[00:05:25.562] ERROR: DownMedia[Script Filter] Code 1: Could not download resource.

/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open3.rb:213:in `spawn': No such file or directory - pbpaste (Errno::ENOENT)

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open3.rb:213:in `popen_run'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open3.rb:159:in `popen2'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open3.rb:342:in `capture2'

from /Users/wardepauw/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.9E596EAF-4B6F-4853-A21E-5F2447102B41/downmedia_functions.rb:19:in `show_options'

from /Users/wardepauw/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/E1F01458-0F2F-4F0C-AA42-9D16A822606E:3:in `<main>'

Share this post


Link to post

Update.


Added support for more browsers.


To update, download the latest version (same URL) or wait a few days and it’ll prompt you to on next usage, since it uses OneUpdater.

Share this post


Link to post

@vitor

 

This is the output I get from the command:

-bash: /Users/wardepauw/Library/Application Support/Alfred/Workflow Data/com.vitorgalvao.alfred._sharedresources/bin/youtube-dl: No such file or directory

Wars-Mac-mini-2:~ wardepauw$ 

OS ver: 10.15.5

Alfred ver: 4.09

Workflow ver: 20.2

 

I don't know what's going wrong.

 

Thank you very much in advance for your help!

 

Share this post


Link to post

@wardepauw If you have Homebrew, you can install youtube-dl with brew install youtube-dl. If not, why don’t you try downloading youtube-dl from the URL Vítor posted earlier, and manually putting it where the workflow is looking for it?

 

One possible cause of the issue might be a firewall. Do you have Little Snitch or similar installed that's preventing the workflow from contacting the Internet?

Share this post


Link to post

Simply this workflow is incredible!

 

Is there a way to split a single audio into tracks? Like a complete album to songs.

 

Thank you

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...