Jump to content

DownMedia — Download media from popular sources


Recommended Posts

Ok, sorry. Here there are:

 

1) Output:

Updating Homebrew...

==> Updated Casks

epichrome                   protonmail-bridge           sequel-ace                  swish                       toolreleases

Warning: youtube-dl 2020.11.1.1 already installed

 

2) Workflow version: 20.10

3)Alfred version 4.2[1180]

4)Catalina 10.15.7

5) URL tested: https://www.youtube.com/watch?v=t8PcvrovE7k 

5)Debugger:

 

 

[15:56:35.733] DownMedia[Script Filter] Queuing argument ''

[15:56:36.478] DownMedia[Script Filter] Script with argv '' finished

[15:56:36.480] STDERR: DownMedia[Script Filter] /Applications/Alfred.alfredpreferences/workflows/user.workflow.8B093E4E-55DD-4A57-96B2-1773642F9F36/get_title_and_url.js: execution error: Error: Error: You need a supported browser as your frontmost app (-2700)

[15:56:36.480] DownMedia[Script Filter] {"items":[{"uid":"downmedia audio","subtitle":"Add to WatchList (⌥): true 𐄁 Full Playlist (⌘): false","valid":true,"variables":{"media_type":"audio","add_to_watchlist":true,"full_playlist":false},"mods":{"cmd":{"subtitle":"Add to WatchList (⌥): true 𐄁 Full Playlist (⌘): true","variables":{"media_type":"audio","Add_to_watchlist":true,"full_playlist":true}},"alt":{"subtitle":"Add to WatchList (⌥): false 𐄁 Full Playlist (⌘): false","variables":{"media_type":"audio","add_to_watchlist":false,"full_playlist":false}},"cmd+alt":{"subtitle":"Add to WatchList (⌥): false 𐄁 Full Playlist (⌘): true","variables":{"media_type":"audio","add_to_watchlist":false,"full_playlist":true}}},"title":"https://www.youtube.com/watch?v=t8PcvrovE7k","arg":"https://www.youtube.com/watch?v=t8PcvrovE7k"}]}

[15:56:40.398] DownMedia[Script Filter] Processing complete

[15:56:40.400] DownMedia[Script Filter] Passing output 'https://www.youtube.com/watch?v=t8PcvrovE7k' to Run Script

[15:56:43.588] ERROR: DownMedia[Run Script] ERROR: Unable to extract JS player URL; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

[15:56:43.594] DownMedia[Run Script] Processing complete

[15:56:43.594] DownMedia[Run Script] Passing output '' to Run Script

 

 

 

Thank you 🙂

 

 

Link to post
  • Replies 355
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Download media from a plethora of sources, even when embedded in other pages. The main commands are dv to download video and da to download audio (often extracted from a video source). Bot

Update. Added support to download audio. It also works with downloading a full playlist as audio, but it does not include and option to add to WatchList automatically due to a limitation in yo

It by default downloads the best quality version available, so it will download different formats for different videos.   That said, yes, it’s very easy to do what you want. On the workflow, double‐

Posted Images

5 hours ago, Daniele said:

[15:56:43.588] ERROR: DownMedia[Run Script] ERROR: Unable to extract JS player URL; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

 

youtube-dl is failing to grab that download, but the Workflow is working fine. We’ll have to wait for them to fix that (if they can).

Link to post
13 hours ago, vitor said:

 

youtube-dl is failing to grab that download, but the Workflow is working fine. We’ll have to wait for them to fix that (if they can).

 

Just deleted youtube-dl forcing with:

 

brew uninstall --ignore-dependencies youtube-dl

 

and install again.

 

It works now.

 

Thank you

 

Link to post

Hello Vitor
This is low priority but I thought I would ask. Getting URL invalid when trying to extract the audio. I tried to change the audio format to m4a (changed it back to mp3) but I fear I messed something else up (judging by the debug warning).
 
1) Terminal output:
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
Updated 2 formulae.

Warning: youtube-dl 2020.11.19 already installed

2) Workflow version is v20.11
3) Alfred version is 4.2.1 [1187]
4) macOS version is 10.14.6 (Mojave)
5) Failing link: https://www.youtube.com/watch?v=ISDa3-rHgds
6) Debug output:
[09:16:37.460] Logging Started...
[09:16:43.373] DownMedia[Script Filter] Queuing argument ''
[09:16:43.889] DownMedia[Script Filter] Script with argv '' finished
[09:16:43.892] DownMedia[Script Filter] {"items":[{"uid":"downmedia audio","subtitle":"Add to WatchList (⌥): true 𐄁 Full Playlist (⌘): false","valid":true,"variables":{"media_type":"audio","add_to_watchlist":true,"full_playlist":false},"mods":{"cmd":{"subtitle":"Add to WatchList (⌥): true 𐄁 Full Playlist (⌘): true","variables":{"media_type":"audio","Add_to_watchlist":true,"full_playlist":true}},"alt":{"subtitle":"Add to WatchList (⌥): false 𐄁 Full Playlist (⌘): false","variables":{"media_type":"audio","add_to_watchlist":false,"full_playlist":false}},"cmd+alt":{"subtitle":"Add to WatchList (⌥): false 𐄁 Full Playlist (⌘): true","variables":{"media_type":"audio","add_to_watchlist":false,"full_playlist":true}}},"title":"How-to Install Thunder Products TPI Torque Wings - YouTube","arg":"https://www.youtube.com/watch?v=ISDa3-rHgds"}]}
[09:16:45.057] DownMedia[Script Filter] Processing complete
[09:16:45.063] DownMedia[Script Filter] Passing output 'https://www.youtube.com/watch?v=ISDa3-rHgds' to Run Script
[09:16:46.176] ERROR: DownMedia[Run Script] Usage: youtube-dl [OPTIONS] URL [URL...]

youtube-dl: error: invalid audio format specified
[09:16:46.183] DownMedia[Run Script] Processing complete
[09:16:46.184] DownMedia[Run Script] Passing output '' to Run Script
[09:20:18.579] DownMedia[Script Filter] Queuing argument ''
[09:20:19.132] DownMedia[Script Filter] Script with argv '' finished
[09:20:19.144] DownMedia[Script Filter] {"items":[{"uid":"downmedia audio","subtitle":"Add to WatchList (⌥): true 𐄁 Full Playlist (⌘): false","valid":true,"variables":{"media_type":"audio","add_to_watchlist":true,"full_playlist":false},"mods":{"cmd":{"subtitle":"Add to WatchList (⌥): true 𐄁 Full Playlist (⌘): true","variables":{"media_type":"audio","Add_to_watchlist":true,"full_playlist":true}},"alt":{"subtitle":"Add to WatchList (⌥): false 𐄁 Full Playlist (⌘): false","variables":{"media_type":"audio","add_to_watchlist":false,"full_playlist":false}},"cmd+alt":{"subtitle":"Add to WatchList (⌥): false 𐄁 Full Playlist (⌘): true","variables":{"media_type":"audio","add_to_watchlist":false,"full_playlist":true}}},"title":"How-to Install Thunder Products TPI Torque Wings - YouTube","arg":"https://www.youtube.com/watch?v=ISDa3-rHgds"}]}
[09:20:20.137] DownMedia[Script Filter] Processing complete
[09:20:20.154] DownMedia[Script Filter] Passing output 'https://www.youtube.com/watch?v=ISDa3-rHgds' to Run Script
[09:20:22.541] ERROR: DownMedia[Run Script] Usage: youtube-dl [OPTIONS] URL [URL...]

youtube-dl: error: invalid audio format specified
[09:20:22.558] DownMedia[Run Script] Processing complete
[09:20:22.559] DownMedia[Run Script] Passing output '' to Run Script

Link to post
17 hours ago, roccitman said:

Getting URL invalid when trying to extract the audio. I tried to change the audio format to m4a (changed it back to mp3)

 

Can’t reproduce. Delete the Workflow and readd it, if you want it reset.

Link to post
5 hours ago, vitor said:

Can’t reproduce. Delete the Workflow and readd it, if you want it reset.

 

Easy and done! Like when your modem doesn't work. Unplug, wait 30 seconds and plug back in. :)

 

Have a nice weekend my man!

Link to post

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