Jump to content

Download Media — Download video and audio from web pages


Recommended Posts

  • 1 month later...

Hi Vitor,

Can't get the workflow to work, I keep on getting "The URL is invalid".

  • 1182384811_Screenshot2022-07-20om14_15_23.png.7a3b94454061ff8085cb458e63b7df94.png
  • DownMedia v2022.2
  • Alfred 5.0
  • macOS Monterey 12.4 (Macbook Pro 2019 Intel)
  • https://www.youtube.com/watch?v=nFeatPLXgxg
  • [14:19:47.850] Logging Started...

    [14:19:57.464] DownMedia[Script Filter] Queuing argument ''

    [14:19:58.122] DownMedia[Script Filter] Script with argv '' finished

    [14:19:58.124] DownMedia[Script Filter] {"items":[{"uid":"downmedia video","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}}},"title":"Zoek een leuke vriendin | LUCKYTV - YouTube","arg":"https://www.youtube.com/watch?v=nFeatPLXgxg"},{"uid":"downmedia video","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}}},"title":"https://www.youtube.com/watch?v=nFeatPLXgxg","arg":"https://www.youtube.com/watch?v=nFeatPLXgxg"}]}

    [14:19:59.301] DownMedia[Script Filter] Processing complete

    [14:19:59.308] DownMedia[Script Filter] Passing output 'https://www.youtube.com/watch?v=nFeatPLXgxg' to Run Script

    [14:20:02.962] ERROR: DownMedia[Run Script] WARNING: [youtube] Unable to download webpage: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)>

    WARNING: [youtube] <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)>. Retrying ...

    WARNING: [youtube] <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)>. Retrying ...

    WARNING: [youtube] <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)>. Retrying ...

    WARNING: [youtube] Unable to download webpage: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)>

    WARNING: [youtube] <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)>. Retrying ...

    WARNING: [youtube] <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)>. Retrying ...

    WARNING: [youtube] <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)>. Retrying ...

    WARNING: [youtube] Unable to download API page: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)> (caused by URLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')))

    ERROR: [youtube] nFeatPLXgxg: Unable to download API page: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)> (caused by URLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')))

    [14:20:02.972] DownMedia[Run Script] Processing complete

    [14:20:02.973] DownMedia[Run Script] Passing output '' to Run Script

Appreciate your efforts.

 

 

 

Link to comment

Welcome @Orij,

 

Thank you for the complete report. The issue is outside the Workflow, this is an error you can find more about online:

 

Quote

<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate

 

Did you install Python yourself, instead of using e.g. the Homebrew version? If so, you may need to install the certificates yourself too.

Link to comment
  • vitor changed the title to Download Media — Download video and audio from web pages

Hi There,

 

I just downloaded this workflow from the new Alfred Gallery. I don't have much experience with the command line, but I think I installed home-brew,ffpmeg, and yt-dl stuff correctly.

 

From YouTube tab in Safari, I invoke the dv command, and it starts downloading, but when it is done the video and audio are separate files. The video is silent, and the audio has no image.

 

What am I doing wrong?

 

Any help is appreciated!

Link to comment

Hi Vitor,

 

It is saying ffmpeg isn't installed. And now terminal is saying: zsh: command not found: brew

 

I am doing something wrong, but like I said, I don't know my way around this stuff, so I don't expect anyone to help me fix it. Thanks though!

 

[13:58:35.746] Logging Started...

[13:58:56.832] Download Media[Script Filter] Queuing argument ''

[13:58:57.343] Download Media[Script Filter] Script with argv '' finished

[13:58:57.345] Download Media[Script Filter] {"items":[{"subtitle":"Add to WatchList (⌥): false 𐄁 Full Playlist (⌘): false","valid":true,"variables":{"media_type":"video","add_to_watchlist":false,"full_playlist":false},"mods":{"cmd":{"subtitle":"Add to WatchList (⌥): false 𐄁 Full Playlist (⌘): true","variables":{"media_type":"video","Add_to_watchlist":false,"full_playlist":true}},"alt":{"subtitle":"Add to WatchList (⌥): true 𐄁 Full Playlist (⌘): false","variables":{"media_type":"video","add_to_watchlist":true,"full_playlist":false}},"cmd+alt":{"subtitle":"Add to WatchList (⌥): true 𐄁 Full Playlist (⌘): true","variables":{"media_type":"video","add_to_watchlist":true,"full_playlist":true}}},"uid":"Download video tab","title":"(82) Nick Cave & The Bad Seeds - Jubilee Street - Live in Copenhagen - YouTube","arg":"https://www.youtube.com/watch?v=kf_zVzvYWuw"}]}

[13:58:58.524] Download Media[Script Filter] Processing complete

[13:58:58.535] Download Media[Script Filter] Passing output 'https://www.youtube.com/watch?v=kf_zVzvYWuw' to Run Script

[13:59:22.937] Download Media[Script Filter] Queuing argument ''

[13:59:23.105] Download Media[Script Filter] Script with argv '' finished

[13:59:23.108] Download Media[Script Filter] {"rerun":1,"items":[{"uid":"downmedia progress","title":"19.9% of 114.22MiB at    1.11MiB/s ETA 01:22","subtitle":"Nick Cave & The Bad Seeds - Jubilee Street - Live in Copenhagen.f137.mp4","valid":false,"mods":{"cmd":{"subtitle":"Restart download at bottom of queue","valid":true,"variables":{"after_kill":"restart"}},"ctrl":{"arg":"abort","subtitle":"Abort download","valid":true,"variables":{"after_kill":"nothing"}}}}]}

[13:59:24.110] Download Media[Script Filter] Queuing argument ''

[13:59:24.286] Download Media[Script Filter] Script with argv '' finished

[13:59:24.292] Download Media[Script Filter] {"rerun":1,"items":[{"uid":"downmedia progress","title":"21.9% of 114.22MiB at    1.41MiB/s ETA 01:03","subtitle":"Nick Cave & The Bad Seeds - Jubilee Street - Live in Copenhagen.f137.mp4","valid":false,"mods":{"cmd":{"subtitle":"Restart download at bottom of queue","valid":true,"variables":{"after_kill":"restart"}},"ctrl":{"arg":"abort","subtitle":"Abort download","valid":true,"variables":{"after_kill":"nothing"}}}}]}

[14:00:11.645] Download Media[Script Filter] Queuing argument ''

[14:00:11.793] Download Media[Script Filter] Script with argv '' finished

[14:00:11.799] Download Media[Script Filter] {"rerun":1,"items":[{"uid":"downmedia progress","title":"95.4% of 114.22MiB at  744.79KiB/s ETA 00:07","subtitle":"Nick Cave & The Bad Seeds - Jubilee Street - Live in Copenhagen.f137.mp4","valid":false,"mods":{"cmd":{"subtitle":"Restart download at bottom of queue","valid":true,"variables":{"after_kill":"restart"}},"ctrl":{"arg":"abort","subtitle":"Abort download","valid":true,"variables":{"after_kill":"nothing"}}}}]}

[14:00:12.798] Download Media[Script Filter] Queuing argument ''

[14:00:12.983] Download Media[Script Filter] Script with argv '' finished

[14:00:12.990] Download Media[Script Filter] {"rerun":1,"items":[{"uid":"downmedia progress","title":"100% of 114.22MiB in 01:05 at 1.73MiB/s","subtitle":"Nick Cave & The Bad Seeds - Jubilee Street - Live in Copenhagen.f137.mp4","valid":false,"mods":{"cmd":{"subtitle":"Restart download at bottom of queue","valid":true,"variables":{"after_kill":"restart"}},"ctrl":{"arg":"abort","subtitle":"Abort download","valid":true,"variables":{"after_kill":"nothing"}}}}]}

[14:00:17.328] 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/Justin*****/Downloads/Nick Cave & The Bad Seeds - Jubilee Street - Live in Copenhagen.mp4

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

Thank you for the incredible Download Media workflow. I've recently run into an issue that seems to be related to a "Request URI Too Long" error. Any advice would be greatly appreciated.

 

Terminal Output: Warning: yt-dlp 2023.1.6 already installed
Workflow Version: 2022.05
Alfred Version: 5.0.6
MacOS: 13.2
Failing Link Example: https://www.angel.com/watch/the-chosen/episode/76331538-ff46-4ef9-b96b-8e20c30ac00e/season-3/episode-7/ears-to-hear
Debugger Output:

[21:18:10.360] Download Media -W[Hotkey] Processing complete
[21:18:10.369] Download Media -W[Hotkey] Passing output '' to Run Script
[21:18:10.712] Download Media -W[Run Script] Processing complete
[21:18:10.721] Download Media -W[Run Script] Passing output 'https://www.angel.com/watch/the-chosen/episode/76331538-ff46-4ef9-b96b-8e20c30ac00e/season-3/episode-7/ears-to-hear
' to Arg and Vars
[21:18:10.723] Download Media -W[Arg and Vars] Processing complete
[21:18:10.724] Download Media -W[Arg and Vars] Passing output 'https://www.angel.com/watch/the-chosen/episode/76331538-ff46-4ef9-b96b-8e20c30ac00e/season-3/episode-7/ears-to-hear
' to Arg and Vars
[21:18:10.726] Download Media -W[Arg and Vars] Processing complete
[21:18:10.727] Download Media -W[Arg and Vars] Passing output 'https://www.angel.com/watch/the-chosen/episode/76331538-ff46-4ef9-b96b-8e20c30ac00e/season-3/episode-7/ears-to-hear
' to Run Script
[21:18:13.199] ERROR: Download Media -W[Run Script] ERROR: unable to download video data: HTTP Error 414: Request URI Too Long
Link to comment

was trying to download a video but got an error did the debug

 

[20:30:38.216] Logging Started...
[20:30:39.863] Download Media[Script Filter] Queuing argument ''
[20:30:40.310] Download Media[Script Filter] Script with argv '' finished
[20:30:40.315] STDERR: Download Media[Script Filter] /Users/bangtan/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D7D5BD4F-6C64-429C-BE22-9982EF6680C8/get_title_and_url.js: execution error: Error: Error: You need a supported browser as your frontmost app (-2700)
[20:30:40.316] 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://twitter.com/allabaomar/status/1624526541286936577?s=20","arg":"https://twitter.com/allabaomar/status/1624526541286936577?s=20"}]}
[20:30:41.401] Download Media[Script Filter] Processing complete
[20:30:41.403] Download Media[Script Filter] Passing output 'https://twitter.com/allabaomar/status/1624526541286936577?s=20' to Run Script
[20:30:41.629] ERROR: Download Media[Run Script] /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open3.rb:213:in `spawn': No such file or directory - yt-dlp (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/bangtan/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.D7D5BD4F-6C64-429C-BE22-9982EF6680C8/downmedia_functions.rb:153:in `download_url'
	from /Users/bangtan/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/CE72169F-CA3A-47DF-AB89-44AFCD337DEE:5:in `<main>'

 

Link to comment
  • 2 weeks later...

I am attempting to use Download Media for the first time and getting the following error message:

 

[12:49:11.570] ERROR: Download Media[Run Script] /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open3.rb:213:in `spawn': No such file or directory - yt-dlp (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/myname/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.3DE5CDC4-DD5E-45F8-9395-F0129D8C4CBA/downmedia_functions.rb:153:in `download_url'

from /Users/myname/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/36984C27-5C4F-46BB-8B26-8A5D7175C8EC:5:in `<main>'

 

Any idea what I'm doing wrong?

 

(also, when you sign up for an account on the Alfred forum it asks what the main color is, which is not very colorblind friendly lol. I had to look up the hex code)

Link to comment

Welcome @hollaneer,

 

That version no longer exists. The workflow depends on other tools that evolve constantly so the last Alfred 4 version may not even work correctly anymore and the current instructions and configuration no longer apply. Plus, some of the Alfred 5 additions (including the Gallery) help with installing and managing those tools which greatly helps with setup and support. You can try the latest available old version but please keep in mind it won’t get fixes.

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