Comments (2)
you could try this:
-- Try executing youtube-dl command
local file = execute_command('youtube-dl -j --flat-playlist "' .. url .. '"')
if not file then
-- If youtube-dl fails, try yt-dlp as a fallback
- file = assert(execute_command('yt-dlp -j --flat-playlist "' .. url .. '"'),
+ file = assert(execute_command('yt-dlp -j --flat-playlist -S res:720 "' .. url .. '"'),
"Both youtube-dl and yt-dlp failed to execute.")
end
of course change 720
to whatever your desired resolution is
from yt-dlp.
Works! Thank you very much!
from yt-dlp.
Related Issues (20)
- Are there any ways to download from Crunchyroll in an iPhone with yt-dlp & a-shell mini HOT 2
- Modification time HOT 3
- How does yt-dlp handle tracking links like `?utm=` and `?si=` ? Is user privacy preserved? HOT 10
- [YouTube] `--wait-for-video` should be able to stop retrying without access when a `Private video` is available
- [YouTube] Unable to download video HOT 7
- command line option to tell yt-dlp which videos to download from multiple playlists HOT 1
- Compiling yt-dlp to WebAssembly ¿Any attempts? HOT 3
- ERROR: [Beatport] 18843262 HOT 1
- yt-dlp-git AUR package fails to install: test_search_nextjs_data FAILED HOT 4
- [cbc.ca] "unable to extract OpenGraph description" HOT 1
- closed
- [SRGSSR] the only audio track downloaded is the audio description track, instead of the default HOT 4
- Compiling yt-dlp to Android ¿Any attempts? HOT 2
- [youtube] Upload date being wrong by one day HOT 15
- Unable to download links from mypikpak.com HOT 2
- Request add support for pmvhaven.com HOT 1
- ytdlp scrape comments and replies no longer work , whats the fixed code now? HOT 4
- Populate fields for match-filter and in the json output HOT 4
- The current yt-dlp code does not know the maximum resolutions of "oar", "maxres" thumbnails for youtube shorts and albums (thumbnails with side stripes).
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yt-dlp.