You can upload local music to Spotify by going through the desktop app, but you'll need to sync it with your phone to listen ...
If you want to download a YouTube video, you can use the VLC media player or YouTube's own Premium features. Here's how.