yt-dlp / yt-dlp

A feature-rich command-line audio/video downloader
https://discord.gg/H5MNcFW63r
The Unlicense
89.01k stars 6.9k forks source link

[Feature Request] #294

Closed hbtalha closed 3 years ago

hbtalha commented 3 years ago

Checklist

Description

WRITE DESCRIPTION HERE

When calling youtube-dl from C++ I want to be able to list all the videos in a playlist and having the playlist title in the output. For example, to be able to run youtube-dl with the following args:

youtube-dl.exe --flat-playlist --get-filename --get-playlist-title https://www.youtube.com/playlist?list=PLSPw4ASQYyymu3PfG9gxywSPghnSMiOAW

and having the following output:

[download] playlist: Advanced C++/Graphics Tutorials
Advanced C++_Graphics Tutorial 0 - Installing SDL!-FxCC9Ces1Yg.NA
Advanced C++_Graphics Tutorial 0.5 - Installing SDL on CodeBlocks-bmjcZv-Itlg.NA
Advanced C++_Graphics Tutorial 1 - Installing GLEW (Windows)-u_NI7KOzyFM.NA
Advanced C++_Graphics Tutorial 2 - Opening a window!-7hF5BiPhP8Q.NA
Advanced C++_Graphics Tutorial 3 - Input Processing!-Bk74hW9KJmc.NA
Advanced C++_Graphics Tutorial 4 - First OpenGL Triangle!-8t3m2mRH7qs.NA
Advanced C++_Graphics Tutorial 5 - Bitwise Operations and Bitfields!-fJ-MXaa7tcU.NA
Advanced C++_Graphics Tutorial 6 - VBO, Sprite, and NDC!-W_OctRsu754.NA
Advanced C++_Graphics Tutorial 7 - Shader Intro!-j91xhXPJezg.NA
Advanced C++_Graphics Tutorial 8 - GLSLProgram, Initialization Lists, extern!-LLUtSE2osfI.NA
Advanced C++_Graphics Tutorial 9 - Interleaved Vertex Data, composition, offsetof-mU80e0eMLjc.NA
Advanced C++_Graphics Tutorial 10 - Uniform Variables!-gsqrBx8CI0o.NA
Advanced C++_Graphics Tutorial 11 - IOManager, more ifstream-h3DglGL7l0I.NA
Advanced C++_Graphics Tutorial 12 - lodePNG, GLTexture-I4az5VDpxVw.NA
Advanced C++_Graphics Tutorial 13 - First Texture, UV, sampler2D!-UBxB8H4e_5I.NA
Advanced C++_Graphics Tutorial 14 - Maps, Binary Search, Caching!-NlsbnToicLk.NA
Advanced C++_Graphics Tutorial 15 - ResourceManager, TextureCache!-HBpmfrQINlo.NA
Advanced C++_Graphics Tutorial 16 - FPS Counter and Limiter!-4cwpXJIHaMo.NA
Advanced C++_Graphics Tutorial 17 - VSYNC, GL_VERSION-KoYPif6ko1w.NA
Advanced C++_Graphics Tutorial 18 - Custom Library, Bengine-dNNXeMeF6yk.NA
Advanced C++_Graphics Tutorial 19 - Namespaces, Window-jGpFfYiKwhY.NA
Advanced C++_Graphics Tutorial 20 - Installing GLM-Sh1_PGh1gCI.NA
Advanced C++_Graphics Tutorial 21 - Camera2D-Rycaqr3tDRA.NA
Advanced C++_Graphics Tutorial 22 pt.1 - SpriteBatch, VAO, std - -sort-jXKMfsiVkLA.NA
Advanced C++_Graphics Tutorial 22 pt 2 - Finished SpriteBatch, emplace_back-2xWCvn9MZlg.NA
Advanced C++_Graphics Tutorial 23 - InputManager, Timing.h, unordered_map-Epyih-LEbig.NA
Advanced C++_Graphics Tutorial 24 - Basic Transparency!-KsQUtLj_NM0.NA
Advanced C++_Graphics Tutorial 25 - Getting Click Position!-vhL3WCLFK2I.NA
Advanced C++_Graphics Tutorial 26 - Vectors and Projectiles!-d3wvwZwsZsw.NA
Bengine Game Challenge 1 - Zombie Game! Pt. 1-81AcHa15H9c.NA
Bengine Game Challenge 1 - Zombie Game! Pt. 2-20nNmkNF3RE.NA
Bengine Game Challenge 1 - Zombie Game! Pt. 3-s_q8pLqFrPU.NA
Bengine Game Challenge 1 - Zombie Game! Pt. 4-nAbkKoOGVFA.NA
Advanced C++_Graphics Tutorial 27 - Debug vs Release mode-uNWaW4q1l3M.NA
Advanced C++_Graphics Tutorial 28 - isKeyPressed, ColorRGBA8-Vin6Ew8X6Ho.NA
Advanced C++_Graphics Tutorial 29 - Timestep!-6eSjPz5k278.NA
Advanced C++_Graphics Tutorial 30 - Optimized Spritebatch!-KT6-nZZ3SO4.NA
Advanced C++_Graphics Tutorial 31 - Camera Culling 2D!-zCaurIC49I4.NA
Advanced C++_Graphics Tutorial 32 - SDL_ttf, SpriteFont!-CZPZ7pgPT4E.NA
Advanced C++_Graphics Tutorial 33 - Header Initialization, Naming Convention!-XPXRoGrC_wM.NA
Advanced C++_Graphics Tutorial 34 - Audio, friend keyword-vKwDGQXL29U.NA
Advanced C++_Graphics Tutorial 35 - for each loop-08QXUU1ty9g.NA
Advanced C++_Graphics Tutorial 36 - Cache-Friendliness-Mxy-Vb7v3gQ.NA
Advanced C++_Graphics Tutorial 37 - ParticleEngine2D!-Pfk9X8iRqEo.NA
Advanced C++_Graphics Tutorial 38 - Function Pointers, Lambdas-5ps5_aKfTt0.NA
Advanced C++_Graphics Tutorial 39 - 2D Rotations!-AFCHEE8NWEk.NA
Advanced C++_Graphics Tutorial 40 - BallGame, Variadic Macros, SRP-B2x5OFKlQpQ.NA
Advanced C++_Graphics Tutorial 41 - Spatial Partition Pt. 1-WG3Sl3m4rNs.NA
Advanced C++_Graphics Tutorial 42 - Spatial Partition Pt. 2-RN1GRX2ByLM.NA
Advanced C++_Graphics Tutorial 43 - Multiple Renderers, Lazy Init-PQ3iBUysWQU.NA
Advanced C++_Graphics Tutorial 44 - IMainGame + IGameScreen architecture-X5XHG_oo_7w.NA
Advanced C++_Graphics Tutorial 45 - Finished IMainGame + IGameScreen-y2ZEtYJHwf8.NA
Advanced C++_Graphics Tutorial 46 - Box2D Physics-kEClRFKyGkw.NA
Advanced C++_Graphics Tutorial 47 - Platformer Player Control-NzUZ0CJoWBQ.NA
Advanced C++_Graphics Tutorial 48 - glDrawElements, DebugRenderer-Vc0jFIQAaQU.NA
Advanced C++_Graphics Tutorial 49 - Capsule Collision-RAo2et8RT0k.NA
Advanced C++_Graphics Tutorial 50 - 2D Animation-6ziRy9TP8K8.NA
Advanced C++_Graphics Tutorial 51 - Basic 2D Lighting, Additive Blending-waLU-LwLUMs.NA
Advanced C++_Graphics Tutorial 52 - Installing CEGUI (Windows)-mwf_gDVudsE.NA
Advanced C++_Graphics Tutorial 53 - GUI class and static_cast-OkARp0d2mpA.NA
Advanced C++_Graphics Tutorial 54 - CEGUI Input Injection (SDL), Bit Shifting, Unicode-ysWFFytI1NE.NA
Advanced C++_Graphics Tutorial 55 - CEGUI Event Handling, Basic Main Menu-5-L_icC7344.NA
Advanced C++_Graphics Tutorial 56 - CEGUI Event Handling review, new widgets.-6ERHtimRE7U.NA
Advanced C++_Graphics Tutorial 57 - Level Editor-nMKrBLgpY5A.NA
Advanced C++_Graphics Tutorial 58 - LevelReaderWriter-roBSwo2sksg.NA

Having this in the outputu : [download] playlist: Advanced C++/Graphics Tutorials

pukkandan commented 3 years ago

295