Jump to content
vitor

DownMedia — Download media from popular sources

Recommended Posts

On 6/19/2017 at 11:11 PM, Karl Klammer said:

Using Alfred for years I only just found this workflow and I'm impressed how easy and great it works. But - and read the whole thread - all my youtube test downloads were downloaded in 720p and I have no idea why. Example: Big Buck Bunny in 4k

 

I found this comment but have no idea where I how I might need to modify something.

 

Thanks in advance and best regards!

 

Dear Vitor,

 

Thanks for a killer workflow. It has been a great companion in my online life.

 

I am facing this issue as well, but ONLY when trying to download a video that is private (ie. everybody with the URL can see it).

 

Here is my log:

[06:15:14.374] DownVid[Script Filter] Queuing argument ''
[06:15:14.560] DownVid[Script Filter] Script with argv '' finished
[06:15:14.564] DownVid[Script Filter] {"items":[{"uid":"dv","title":"Download Video","subtitle":"Downloads the video to ~/Desktop","arg":"https://www.youtube.com/watch?v=Cyiro3AnCkg& video watchlist_false playlist_false","mods":{"cmd":{"subtitle":"Download full playlist","arg":"https://www.youtube.com/watch?v=Cyiro3AnCkg& video watchlist_false playlist_true"}}},{"uid":"da","title":"Download Audio","subtitle":"Downloads the audio to ~/Desktop","arg":"https://www.youtube.com/watch?v=Cyiro3AnCkg& audio watchlist_false playlist_false","mods":{"cmd":{"subtitle":"Download full playlist","arg":"https://www.youtube.com/watch?v=Cyiro3AnCkg& audio watchlist_false playlist_true"}}}]}
[06:15:15.006] DownVid[Script Filter] Processing complete
[06:15:15.009] DownVid[Script Filter] Passing output 'https://www.youtube.com/watch?v=Cyiro3AnCkg& video watchlist_false playlist_false' to Run Script
[06:15:33.871] STDERR: DownVid[Run Script] WARNING: video doesn't have subtitles
[06:15:33.877] DownVid[Run Script] Processing complete
[06:15:33.877] DownVid[Run Script] Passing output '' to Run Script

Is this a known issue? I searched the issues of youtube-dl on Github, but I have not found a similar issue.

 

Thank you for your time.

N

Share this post


Link to post
13 hours ago, Northern said:

Thanks for a killer workflow.

 

Thank you for the kind words, and welcome to the forums.

 

13 hours ago, Northern said:

but ONLY when trying to download a video that is private (ie. everybody with the URL can see it)

 

That’s an unlisted video, not a private one.

 

13 hours ago, Northern said:

Is this a known issue?

 

Yes, as you can see from the posts after the one you quoted. It might be a bug or might be a configuration you have on your machine. Either way, it’s a youtube-dl matter, not related to the Workflow.

Share this post


Link to post

Major Update.

  • Changed name to DownMedia.
  • Instead of a single dv option for video and audio, now there are separate dv and da.
  • In addition to downloading the clipboard URL, added an option to download the URL from the frontmost browser tab.
  • Enhanced checks: if no URL is available, even in the clipboard, download can’t be actioned.
  • dvp to see the progress has been changed to dp.
  • Interface has received modifications in general, regarding how information is presented.
  • There’s no longer a separate DownVid + WatchList option. There is instead a add_to_watchlist Workflow Environment Variable that controls the default behaviour (toggle on a case-by-case basis with ⌥).
  • External Triggers have been modified to only take a URL as argument.
  • External Triggers have more descriptive names.
  • Added a Hotkey to auto-download the URL from the frontmost tab.
  • Services have been updated to reflect the new options.
  • Removed watchlist_download_dir Workflow Environment Variable, since that can be handled by the latter’s move_on_add.

Check the top post for a streamlined view (with screenshots) of the new behaviour.


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

 

If after a week an update hasn’t triggered, please let me know.

Share this post


Link to post

Hey man, getting that invalid URL error after installing the new version. Can you remind me where the files are I need to delete for a fresh install?

Share this post


Link to post

@eluxmaxel @roccitman To bring youtube-dl up to date, try:

"${HOME}/Library/Application Support/Alfred/Workflow Data/com.vitorgalvao.alfred._sharedresources/bin/youtube-dl" --update || /usr/local/bin/youtube-dl --update

 

Share this post


Link to post
1 hour ago, vitor said:

@eluxmaxel @roccitman To bring youtube-dl up to date, try:


"${HOME}/Library/Application Support/Alfred/Workflow Data/com.vitorgalvao.alfred._sharedresources/bin/youtube-dl" --update || /usr/local/bin/youtube-dl --update

 

Thanks V! Is this two separate commands or can you dump the whole thing into Terminal at once? And how long does it take to run?

Share this post


Link to post
24 minutes ago, roccitman said:

Thanks V! Is this two separate commands or can you dump the whole thing into Terminal at once? And how long does it take to run?

 

It's one command. How long it takes to run depends on how fast your Internet connection is, but it shouldn't take very long at all. Less than a minute, most likely.

Share this post


Link to post

Hmm, something's wrong then. I left it for almost an hour and it doesn't seem to complete..

:~ ra$ /ra/Library/Application Support/Alfred/Workflow Data/com.vitorgalvao.alfred._sharedresources/bin/youtube-dl" --update

>

Share this post


Link to post
18 minutes ago, roccitman said:

Hmm, something's wrong then. I left it for almost an hour and it doesn't seem to complete..

:~ ra$ /ra/Library/Application Support/Alfred/Workflow Data/com.vitorgalvao.alfred._sharedresources/bin/youtube-dl" --update

>

 

That's not a valid command. You have one double quote, and the shell is waiting for you to add a second, closing one.

 

Copy and paste the command exactly as Vítor posted it above.

Edited by deanishe

Share this post


Link to post

when i did that it gave an error

image.thumb.png.509323a6af057ef137299ca99b60edb1.png

the youtube video audio downloaded as and .opus file but by f(x) is set to .mp3 image.thumb.png.5eb61038332ed55aa20f94b6577b502e.png

Edited by eluxmaxel

Share this post


Link to post
33 minutes ago, eluxmaxel said:

when i did that it gave an error

 

It looks like the command you entered was incorrect. I can't say for sure because I can't see the command.

Share this post


Link to post
1 hour ago, deanishe said:

 

It looks like the command you entered was incorrect. I can't say for sure because I can't see the command.

I did the same thing just copied and pasted it and added in the quote 
"{HOME}/Library/Application Support/Alfred/Workflow Data/com.vitorgalvao.alfred._sharedresources/bin/youtube-dl" --update || /usr/local/bin/youtube-dl --update

Share this post


Link to post

Here's the output if it helps...

[20:35:34.404] DownMedia[Script Filter] Queuing argument ''
[20:35:35.148] DownMedia[Script Filter] Script with argv '' finished
[20:35:35.152] DownMedia[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}}},"title":"(27) Ends & Odds: DIY Bandsaw Guides & More! - YouTube","arg":"https://www.youtube.com/watch?v=XIAC1zyYGrc"}]}
[20:35:37.042] DownMedia[Script Filter] Processing complete
[20:35:37.054] DownMedia[Script Filter] Passing output 'https://www.youtube.com/watch?v=XIAC1zyYGrc' to Run Script
[20:35:43.469] ERROR: DownMedia[Run Script] WARNING: Unable to extract video title
ERROR: This video is unavailable.
[20:35:43.475] DownMedia[Run Script] Processing complete
[20:35:43.476] DownMedia[Run Script] Passing output '' to Run Script

 

Share this post


Link to post
4 hours ago, eluxmaxel said:

"{HOME}/Library/Application Support/Alfred/Workflow Data/com.vitorgalvao.alfred._sharedresources/bin/youtube-dl" --update || /usr/local/bin/youtube-dl --update

 

That's not correct. it should be:

"${HOME}/Library/Application Support/Alfred/Workflow Data/com.vitorgalvao.alfred._sharedresources/bin/youtube-dl" --update || /usr/local/bin/youtube-dl --update

 

You are missing the $

 

Share this post


Link to post
9 hours ago, deanishe said:

 

That's not correct. it should be:

 


"${HOME}/Library/Application Support/Alfred/Workflow Data/com.vitorgalvao.alfred._sharedresources/bin/youtube-dl" --update || /usr/local/bin/youtube-dl --update

 

 

You are missing the $

 

it said its up to date

Share this post


Link to post
2 minutes ago, deanishe said:

 

Have you checked whether youtube-dl can download the video?

it can but the audio comes out as opus with downmedia 

Share this post


Link to post
11 hours ago, eluxmaxel said:

it can but the audio comes out as opus with downmedia 

 

That's a question for @vitor, then. It's likely due to the settings he's chosen or perhaps because you have a required tool (e.g. ffmpeg) missing on your machine.

Share this post


Link to post
On 1/23/2020 at 9:02 AM, vitor said:

@eluxmaxel @roccitman To bring youtube-dl up to date, try:


"${HOME}/Library/Application Support/Alfred/Workflow Data/com.vitorgalvao.alfred._sharedresources/bin/youtube-dl" --update || /usr/local/bin/youtube-dl --update

 

Hey Vitor. youtube-dl is updated. but still getting the url failed. Here's the debugging output if it helps.

 

[08:35:51.138] Logging Started...
[08:36:02.624] DownMedia[Script Filter] Queuing argument ''
[08:36:03.129] DownMedia[Script Filter] Script with argv '' finished
[08:36:03.133] DownMedia[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}}},"title":"(29) 15 Scary Moments of Strange Things Found On the Road! - YouTube","arg":"https://www.youtube.com/watch?v=6yDDmGua5c8"}]}
[08:36:04.711] DownMedia[Script Filter] Processing complete
[08:36:04.770] DownMedia[Script Filter] Passing output 'https://www.youtube.com/watch?v=6yDDmGua5c8' to Run Script
[08:36:09.906] ERROR: DownMedia[Run Script] WARNING: Unable to extract video title
ERROR: This video is unavailable.
[08:36:09.951] DownMedia[Run Script] Processing complete
[08:36:09.952] DownMedia[Run Script] Passing output '' to Run Script

Can't extract title? Do I have a funky setting done wrong?

Share this post


Link to post

Thank you for fielding the questions, @deanishe. I was away this weekend, so it’s a big help to come back and have some of the problems already resolved.

 

On 2/4/2020 at 7:36 AM, deanishe said:

perhaps because you have a required tool (e.g. ffmpeg) missing on your machine.

 

That shouldn’t be an issue because I’m using the same method to ensure youtube-dl and ffmpeg are in the machine (i.e. if they’re not, get them).

 

@eluxmaxel Your youtube-dl didn’t update. Try brew upgrade youtube-dl. If that doesn’t work, I don’t know how you installed youtube-dl on your machine (that’s the one being used) and you’ll have to figure that out yourself.


Also, you haven’t given the link that’s failing, so there’s no way I can test.

 

@roccitman No idea what’s wrong in your case and I can’t reproduce. For me to be look further into it, you’ll have to figure out what’s different in your setup.

 

Share this post


Link to post
46 minutes ago, vitor said:

Thank you for fielding the questions, @deanishe. I was away this weekend, so it’s a big help to come back and have some of the problems already resolved.

 

@roccitman No idea what’s wrong in your case and I can’t reproduce. For me to be look further into it, you’ll have to figure out what’s different in your setup.

 

Yes, thanks to @deanishe for helping out!

 

@vitor I upgraded youtube-dl again and I'm getting farther in the process now. Gathering more data for you.

Share this post


Link to post
12 hours ago, vitor said:

@eluxmaxel Your youtube-dl didn’t update. Try brew upgrade youtube-dl. If that doesn’t work, I don’t know how you installed youtube-dl on your machine (that’s the one being used) and you’ll have to figure that out yourself.

its good now image.png.b1e5357514e9b997aae809e710f9834d.png

Share this post


Link to post

Hi Vitor,  

I am in the same situation as others here.  
youtube-dl updated... Yet every single youtube link is declined as invalid...  

Any idea / advice ?  

Many thanks in advance for you help.  
Cheers 

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