vitor Posted May 15, 2022 Author Share Posted May 15, 2022 Welcome @donkdonk, I need the information requested on the top post. Link to comment
alfredpanda Posted June 8, 2022 Share Posted June 8, 2022 Should this work with Frame.io links? I can't seem to get it to work. Thanks! Link to comment
vitor Posted June 8, 2022 Author Share Posted June 8, 2022 56 minutes ago, alfredpanda said: Should this work with Frame.io links? It works with sites supported by yt-dlp. alfredpanda 1 Link to comment
Orij Posted July 20, 2022 Share Posted July 20, 2022 Hi Vitor, Can't get the workflow to work, I keep on getting "The URL is invalid". 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
vitor Posted July 20, 2022 Author Share Posted July 20, 2022 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. Orij 1 Link to comment
Orij Posted July 22, 2022 Share Posted July 22, 2022 Thank you Vitor, that did the trick. Link to comment
jstncwlcx Posted December 14, 2022 Share Posted December 14, 2022 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
vitor Posted December 14, 2022 Author Share Posted December 14, 2022 @jstncwlcx Open the debugger, set the log output to “All Information”, perform the failing action, and post the output. Link to comment
jstncwlcx Posted December 14, 2022 Share Posted December 14, 2022 (edited) 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 December 14, 2022 by jstncwlcx Link to comment
jstncwlcx Posted December 14, 2022 Share Posted December 14, 2022 I figured it out! Now my second question, is there a way to force it to include subtitles? I've used the Downie app before, and that always asks about subtitles. Link to comment
vitor Posted December 14, 2022 Author Share Posted December 14, 2022 Just now, jstncwlcx said: I figured it out! Great! 1 minute ago, jstncwlcx said: is there a way to force it to include subtitles? It already does. If it’s able to download them, it embeds them in the file. Link to comment
vitor Posted December 19, 2022 Author Share Posted December 19, 2022 Updated to 2022.5. Workflow is now distributed via the Alfred Gallery. Download the new version from there or update directly from Alfred.New repository.New icon.New About.Add configurable keywords.Add advanced configuration for download format.Add multiple other workflow configuration options.Remove services.Remove OneUpdater in favour of Gallery updating. iandol 1 Link to comment
iandol Posted December 20, 2022 Share Posted December 20, 2022 Thank you vitor for your super useful workflows (I am happy to see most of the important ones now moved across), and indeed all the work on helping to make the gallery so totally awesome!!!😍 vitor 1 Link to comment
peace57 Posted February 6 Share Posted February 6 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 installedWorkflow Version: 2022.05Alfred Version: 5.0.6MacOS: 13.2Failing Link Example: https://www.angel.com/watch/the-chosen/episode/76331538-ff46-4ef9-b96b-8e20c30ac00e/season-3/episode-7/ears-to-hearDebugger 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
vitor Posted February 6 Author Share Posted February 6 Welcome @peace57, If you run yt-dlp 'https://www.angel.com/watch/the-chosen/episode/76331538-ff46-4ef9-b96b-8e20c30ac00e/season-3/episode-7/ears-to-hear' in a Terminal you’ll get the same message. In other words, the error is not related to the Workflow but to yt-dlp and needs to be reported in their bug tracker instead. peace57 1 Link to comment
peace57 Posted February 6 Share Posted February 6 Thanks @vitor, I appreciate that! 👍 Link to comment
nammin Posted February 12 Share Posted February 12 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
vitor Posted February 12 Author Share Posted February 12 You haven’t installed the necessary dependencies, as linked at the top of the Gallery page. Link to comment
Daniele Posted February 20 Share Posted February 20 Hello dear Vitor, sorry I posted on the old topic. I use this version. And it cames out with opus file instead of mp3. Why? Thank you dear Link to comment
vitor Posted February 20 Author Share Posted February 20 Opus is probably the “best” format available for what you’re getting. You can force it to be MP3 in the Workflow’s Configuration Link to comment
Daniele Posted February 20 Share Posted February 20 4 minutes ago, vitor said: Opus is probably the “best” format available for what you’re getting. You can force it to be MP3 in the Workflow’s Configuration Solved. Thank you for your work. this is probably the best alfred workflow ever. Thank you Thank you Thank you vitor 1 Link to comment
AnotherJason Posted February 27 Share Posted February 27 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
vitor Posted February 27 Author Share Posted February 27 Welcome @AnotherJason, You’re missing yt-dlp, as per the message at the top of the Gallery page. You can install it easily from Alfred. Link to comment
AnotherJason Posted February 27 Share Posted February 27 Oh man... basic reading skills. It works! Thanks, Vitor! Link to comment
MMScript Posted March 2 Share Posted March 2 Probably a pretty simple answer, but I'm trying to download below 1080p (720p and under). Tried `bestvideo[res<=720][ext=mp4]+bestaudio[ext=m4a]/best` to no success. Any tips on the correct format to achieve this result? ThanksA Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now