Read music with Youtube fallback and last.fm recommandation

Hello!
I would like to use Plex as the core of my media because I am very sick of the Youtube Music recommandation system.
I need to write a plugin to achieve what I want thought, and I am looking for direction on how to get started (doc online is not super extensive and some people speak about plugins being retired).

Essentially what I want to achieve is :

  • Use the Plex pass and the standalone Plex music app
  • When I search, serve music from the plugin (so I can list any music rather than the music on the file system)
  • When I start a music, try to read it from the FS, if it fails, read it from Youtube
  • When I want to play recommandation, use the Last.FM API for recommandations rather than internal Plex recommandations.
  • Server only (for compat)

Any chances I can implement this in Plex by writting a plugin? If no, any recommandation moving forward?