 .

1.  
2.      AIMP\Plugins
3.   >> ,      (   AIMP)
4. 

:
+      Youtube, Soundcloud, MixCloud, Yandex.Music   
+   
+  
+   

 :
.NET Framework 4.7.2 https://dotnet.microsoft.com/download/dotnet-framework/net472
Microsoft Visual C++ 2017 Redistributable (x86) https://aka.ms/vs/16/release/vc_redist.x86.exe

https://github.com/jaryn-kubik/aimp_youtubedl/releases/latest

Changelog
v2.0.4 rebuild by qwflkasf https://www.aimp.ru/forum/index.php?topic=63088.msg449493#msg449493
:
- python 3.9.13 (  )
- .net 4.8.1
- cookies.txt     ,     
 :
-      ,  yt-dlp   cookie (, firefox:c:\Users\<user name>\AppData\Roaming\Mozilla\Firefox\Profiles\<profile name>),     .  30 ,  
-   proxy (  Tor socks5h://localhost:9050/   ,  youtube -   ,      )
-   user-agent (-    )
  ,  . , soundcloud , -    .        x64.
v2.0.4
- fixed "can't find Python.Runtime.dll"
v2.0.3
- updating youtube-dl now happens in a separate thread and it should show error boxes if you try to use it before it's done downloading, this should fix troubles on first load
- fixed hang in plugin finalize, which caused the AIMP process to never fully close and you had to kill it in task manager
v2.0.2
- fixed updating current track info
- fixed error when opening Tag Editor / Audio Converter
v2.0.1
- fixed some memory leaks
- more workarounds for youtube webp thumbnails
v2.0.0
- ditched aimp_dotnet and rewrote the thing using COM interface imports (= using the AIMP SDK APIs directly)
- added Album Art support
- added caching of the info youtube-dl returns for 5min, switching between tracks back and forth should be instant
- should no longer require the installation of Microsoft Visual C++ 2017 Redistributable (x86)
v1.0.5
- add --no-check-certificate to youtube-dl
- change format to prefer protocol=m3u8(_native)
- fix youtube livestreams
v1.0.4
- 1 commit to master since this tag
v1.0.3
- potential fix for "FileNotFoundException"
- support for authorization using cookie file
v1.0.2
- fix compatibility with AIMP 4.6
v1.0.1
- fix
v1.0.0
- check for neccessary services on startup
v0.5
- authentication - optimizations
v0.2
- initial release

Made a different version of the YouTube plugin from scratch, written in C# with aimp_dotnet and using youtube-dl to download the audio.
Gives AIMP the ability to add and play audio form YouTube, SoundCloud, MixCloud and a bunch of other sites.

Requirements:
.NET Framework 4.7.2 (should be preinstalled on updated Windows 10) https://dotnet.microsoft.com/download/dotnet-framework/net472
Visual C++ Redistributable https://aka.ms/vs/16/release/vc_redist.x86.exe

Features:
- Adding and playing audio from Youtube, Soundcloud and probably other sites listed here https://ytdl-org.github.io/youtube-dl/supportedsites.html
-- should in theory be able to add anything from those sites, in practice i'm testing it with Youtube/Soundcloud, whatever else works is a bonus
- Authorization support (logging in)
-- means you should be able to play private tracks/playlists
-- you need to add your username/password in options - the credentials are stored encrypted using DPAPI, only the currently logged-in user should be able to decrypt it
- Adding whole playlists
-- when adding, it only loads some partial info of the individual tracks (url and title for youtube, only url for soundcloud), it loads the rest on first play of the track
-- there is an option to load all info about every track right away, but it takes about 1sec for each track, so playlists with hundreds of tracks would take several minutes while the ui would be blocked, which is shit
- Auto-updating
-- auto-updates the youtube-dl part on startup
-- disabled by default
-- slows down the startup a bit (might figure out some way to let it update in a background task so it doesn't slow down anything)

Options:
- Update youtube-dl on startup
- youtube-dl --format - don't change unless you know what you're doing
- youtube-dl vYYYY.MM.DD - should display current youtube-dl version and has a button to update it manually

Differences from the previous version:
- Should be able to play things from more sites, see above
- Faster
-- on my rig the old version took about 5sec (not great, not terrible) to start the song, this one is about 1-2s
-- it hosts python engine inside AIMP and only loads the youtube-dl scripts once instead of launching the whole thing (python+youtube-dl) in a separate process for every request
- What's missing
-- doesn't have the "check for new tracks" function - will add later
-- no way to manage the actual playlists on youtube - not gonna add, youtube-dl doesn't support this
-- not sure what else the old version does to be honest, only ever used it to play the songs

https://a.radikal.ru/a25/1907/4a/b87c36faab67.png