vitor Posted June 5, 2016 Author Share Posted June 5, 2016 TJung: See this one. Does that work? Link to comment
TJung Posted June 6, 2016 Share Posted June 6, 2016 TJung: See this one. Does that work? Yes, it works! Thanks a lot! Link to comment
JSchmeezy Posted June 11, 2016 Share Posted June 11, 2016 (edited) 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 June 11, 2016 by JSchmeezy Link to comment
vitor Posted June 11, 2016 Author Share Posted June 11, 2016 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: 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: 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
vitor Posted July 10, 2016 Author Share Posted July 10, 2016 Update. It now uses OneUpdater, so this should be the last time you need to manually update. Link to comment
bigbadrabbit Posted August 4, 2016 Share Posted August 4, 2016 (edited) 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 August 4, 2016 by bigbadrabbit Link to comment
vitor Posted August 4, 2016 Author Share Posted August 4, 2016 (edited) Has handling notifications changed in macOS Sierra? No idea. However, I’m using terminal-notifer for the notifications, so if there’s an issue, it should be reported there soon. Since I’m not yet on Sierra, I won’t pursue the case yet. Edited September 2, 2016 by Vítor Link to comment
vitor Posted September 2, 2016 Author Share Posted September 2, 2016 Update. It now uses the new method to call external triggers (you should not notice any difference in usage, unless perhaps that it should be a tiny bit faster in those operations). Link to comment
vitor Posted October 12, 2016 Author Share Posted October 12, 2016 Updated to use the most recent version of OneUpdater. thanasut 1 Link to comment
vitor Posted November 9, 2016 Author Share Posted November 9, 2016 Update. Checking download progress now auto-refreshes. 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. Link to comment
Ying Posted March 7, 2017 Share Posted March 7, 2017 Thank you so much! It works smoothly vitor 1 Link to comment
nikivi Posted March 11, 2017 Share Posted March 11, 2017 (edited) 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 March 11, 2017 by nikivi Link to comment
nikivi Posted March 11, 2017 Share Posted March 11, 2017 Also, I am trying to make a simple trigger that will pass a url into a script filter, like this : 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
vitor Posted March 11, 2017 Author Share Posted March 11, 2017 (edited) 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 March 11, 2017 by vitor Link to comment
nikivi Posted March 11, 2017 Share Posted March 11, 2017 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 : And filter for workflows that are mine. Or search for the workflow quickly with the 'alfred workflow' : 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. Link to comment
GhostTheSavage Posted March 28, 2017 Share Posted March 28, 2017 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. Link to comment
vitor Posted March 28, 2017 Author Share Posted March 28, 2017 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
GhostTheSavage Posted March 28, 2017 Share Posted March 28, 2017 Can you try it for this URL? https://www.youtube.com/watch?v=o6rBK0BqL2w Link to comment
vitor Posted March 29, 2017 Author Share Posted March 29, 2017 (edited) 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 March 29, 2017 by vitor GhostTheSavage 1 Link to comment
GhostTheSavage Posted March 29, 2017 Share Posted March 29, 2017 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
vitor Posted March 29, 2017 Author Share Posted March 29, 2017 (edited) 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 March 29, 2017 by vitor GhostTheSavage 1 Link to comment
GhostTheSavage Posted March 29, 2017 Share Posted March 29, 2017 (edited) 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 March 29, 2017 by GhostTheSavage Link to comment
vitor Posted March 30, 2017 Author Share Posted March 30, 2017 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
JAAE Posted March 31, 2017 Share Posted March 31, 2017 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
vitor Posted March 31, 2017 Author Share Posted March 31, 2017 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
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