Jump to content

Download Media — Download video and audio from web pages


Recommended Posts

Is there any way I can modify your workflow to add additional keywords that can funnel the download locations to different folders based on the URL or content?

 

Essentially, I would like to have the env variables act as defaults, and while I understand that Alfred 3 makes it easy to make global change to the workflow environment variables, but can you help guide me about how I can might update these variables individually based on the provided keywords/arguments?  

Edited by JSchmeezy
Link to comment

Is there any way I can modify your workflow to add additional keywords that can funnel the download locations to different folders based on the URL or content?

I can tell you how to easily add new keywords to change the default variables:

8O7qMOJ.png

In that example, I’ve simply copied the dv Script Filter and changed it to dvm. I then added an Arg and Vars node with this:

m3TFHhm.png

It then connects to the same nodes as dv. In that example, both actions will download to your ~/Movies directory.

As to changing the download location depending on URL, I won’t do that. You’re free to tinker with the script inside the workflow, but that requires a level of complexity I won’t introduce as I don’t see it as worth for the number of people that would use it (and I wouldn’t be one of them).

Link to comment
  • 4 weeks later...
  • 4 weeks later...

I'm on Alfred 3 and macOS Sierra public beta 3.

 

Video download is working as expected but I do not get any notification popup's. They do show up in Notification Center but not as popup.

 

Has handling notifications changed in macOS Sierra?

Edited by bigbadrabbit
Link to comment
  • 4 weeks later...
  • 4 weeks later...
  • 3 months later...

Is it possible to start downloading a youtube video on desktop and immediately start watching it as it downloads the rest of it so that you don't have to wait fully for it to load to then watch? I remember in Transmission as it downloads torrent files in chuncks, you can start watching the video before it fully loads, would be amazing if you could the same here and prioritise the beginning parts of the video to load first.

Edited by nikivi
Link to comment

Also, I am trying to make a simple trigger that will pass a url into a script filter, like this : 

 

 

ykjDNn3.png 

 

But I really dislike that I have to confirm on my action as I pass into the script filter. I wish I can just pipe my url into the script filter and it would instantly start downloading in my chosen folder.

Link to comment
59 minutes ago, nikivi said:

Is it possible to start downloading a youtube video on desktop and immediately start watching it as it downloads the rest of it so that you don't have to wait fully for it to load to then watch?

 

Might be, with some trickery, but I don’t think it’s something youtube-dl (which this uses) specifically allows. I also don’t think it’s something common to do. If I want to stream a video, I’ll add it to WatchList and view from there.

 

59 minutes ago, nikivi said:

would be amazing if you could the same here and prioritise the beginning parts of the video to load first.

 

The video is already downloaded in order. Since it’s not a torrent, but downloaded from a single server, there’s no reason not to. That said, this workflow downloads the best version possible, meaning that sometimes, especially for youtube, it might actually download two files (one for video, another for audio), and join them (youtube-dl is truly capable).

 

46 minutes ago, nikivi said:

I wish I can just pipe my url into the script filter and it would instantly start downloading in my chosen folder.

 

Why don’t you just change the target in the Workflow Environment Variables? That’s why they’re there.

 

Two extra and unrelated questions. Why do you space the nodes so wildly? I have a hard time navigating that. What’s the t: ? I’ve noticed you add different letters to the start of Workflow names. What do they represent?

Edited by vitor
Link to comment
59 minutes ago, vitor said:

Two extra and unrelated questions. Why do you space the nodes so wildly? I have a hard time navigating that. What’s the t: ? I’ve noticed you add different letters to the start of Workflow names. What do they represent?

 

For the spacing, I actually like spacing it out a little just as preference, I get a better idea of what is going on. 

 

And 't:' is a prefix that I use which stands for 'tools'. I find prefixing workflows a lot nicer for organisation than alfred's native 'Category' feature.

 

This way I can quickly search for what I am looking for. For example, one of my prefixes is 'a:' which stands for 'my workflows. I can then do this : 

 

1.thumb.png.c034c018fd86bb0e37734f8310f30fa7.png

 

And filter for workflows that are mine. Or search for the workflow quickly with the 'alfred workflow' : 

 

2.png.179853e7fc232d527b3ade1139f23009.png

 

It's mostly because I have a lot of workflows and I wish to find the workflow I am looking for very fast. 

 

I document my prefixes here (https://my.mindnode.com/H1ejGz58APafNWf3s9MiD9E3CSpkxPTKapJSiNkA) amongst other things. I know it's a bit hard to follow currently but I hope to make it more clear in the future. For example here are hotkeys and prefixes that I use for Alfred Preferences. The prefixes are indicated by the pointing arrow. 

 

 

3.png.77431e891099c0d680cc45313047ae0c.png

 

 

Link to comment
  • 3 weeks later...
38 minutes ago, GhostTheSavage said:

When I tested out the services, it said invalid URL. But when I pick download to watchlist through Alfred it works. Something I'm doing wrong? I like to right click instead of opening Alfred.

 

I’ll need more details, such as where you tested this on. The service only works if you select text that is itself a URL, i.e. it won’t work if you do it on other text that is a link. This works → http://example.com/ but this does not → hyperlink_example.

 

That’s a limitation of services, and not something I can fix.

Link to comment

Update.


Fixed macOS Services. At some point I made a change to how URLs are added for download, and forgot to update the Services accordingly (thank you @GhostTheSavage for the notice). Also made a small change as to how to install the Services. Now run :downvidservices instead, and it’ll detect if they’re already installed, offering to uninstall them if they are.


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

Edited by vitor
Link to comment
12 minutes ago, vitor said:

Update.


Fixed macOS Services. At some point I made a change to how URLs are added for download, and forgot to update the Services accordingly (thank you @GhostTheSavage for the notice). Also made a small change as to how to install the Services. Now run :downvidservices instead, and it’ll detect if they’re already installed, offering to uninstall them if they are.


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

6

 

So should I redownload the workflow? If so, should I delete my current version? Also, if I have already installed downvidservices the old way, should I uninstall and reinstall? Thanks for this update! @vitor

Link to comment
3 minutes ago, GhostTheSavage said:

So should I redownload the workflow?

 

That’s the fastest way to get the new version.

 

3 minutes ago, GhostTheSavage said:

If so, should I delete my current version?

 

No need. Try installing the new one, and the old one will be overwritten.

 

3 minutes ago, GhostTheSavage said:

Also, if I have already installed downvidservices the old way, should I uninstall and reinstall?

 

Yes. Simply :downvidservices twice in Alfred. The first will offer to uninstall the ones you already have, and the second will install the updated ones.

 

3 minutes ago, GhostTheSavage said:

Thanks for this update! @vitor

 

You’re welcome!

Edited by vitor
Link to comment
42 minutes ago, vitor said:

 

That’s the fastest way to get the new version.

 

 

No need. Try installing the new one, and the old one will be overwritten.

 

 

Yes. Simply :downvidservices twice in Alfred. The first will offer to uninstall the ones you already have, and the second will install the updated ones.

 

 

You’re welcome!

 
 
 

 

Thank you for your detailed response. Very professional. I appreciate your time as this workflow has many uses. I haven't tried, but I assume I could download audio from a link? For example, a music link from SoundCloud.

 

I need to research how to make workflows. I am currently learning python and I am wondering if I could practice the language by creating some workflows. Thanks again for everything, @vitor! Your hardwork is appreciated. The update works beautiful!

 

Edit: There are applications out there that do exactly this but they cost an unnecessary amount of $$$. Yours is robust and gets the job done.

Edited by GhostTheSavage
Link to comment
6 hours ago, GhostTheSavage said:

Thank you for your detailed response. Very professional. I appreciate your time as this workflow has many uses.

 

(…)

 

Thanks again for everything, @vitor! Your hardwork is appreciated. The update works beautiful!

 

Thank you for the kind words.

 

6 hours ago, GhostTheSavage said:

I haven't tried, but I assume I could download audio from a link? For example, a music link from SoundCloud.

 

(…)

 

Edit: There are applications out there that do exactly this but they cost an unnecessary amount of $$$. Yours is robust and gets the job done.

 

This workflow uses youtube-dl to do the heavy lifting, so every website it supports (and there are a ton of them) this Workflow supports as well. And you can bet that most if not all of those applications that cost money also use youtube-dl under the hood — it’s that good.

 

7 hours ago, GhostTheSavage said:

I need to research how to make workflows. I am currently learning python and I am wondering if I could practice the language by creating some workflows.

 

Workflows are a great to run your scripts. So while they won’t give you direct python experience, they might make it easier to just make something simple that will prove immensely useful to you due to being so easy to call from Alfred. That in turn is a great incentive to keep at it and learn more.


To learn Workflows themselves, start with the official documentation. If you have specific questions (more Workflow-related than python-related), I’m thinking about having open hours to answer those doubts. I still have no set date as so far I have too few interested.

Link to comment

Hello Vitor

 

I downloaded and installed your workflow, and I agree it's awesome. I managed to tinker with it to change the default download location, and to prevent downloading videos larger than 720p Height. All of these Alfred workflows are great for learning about scripting and the inner workings of OS X.

 

I have a question though. I 'm not using watchlist, and so I was wondering were the download queue is saved when you select multiple video's to download.

 

Thanks

Link to comment
3 hours ago, JAAE said:

I 'm not using watchlist, and so I was wondering were the download queue is saved when you select multiple video's to download.

 

It isn’t. Alfred handles the queueing for downloading.

 

If you’re not using WatchList, the videos are just downloaded in the sequence you added them to your download location.

Link to comment
  • 2 weeks later...

Am I missing something or does the download playlist function not work when holding down the command key? I've copied a youtube video link that is a part of a playlist and hold down the command key. However, only the main video downloads, it does not download the other videos in the playlist.

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