Switched methods: firstly trying to get stream from repo and if it fails - via URL