internet4000 / radio4000

(deprecated) Radio4000 (v1); public media library system, calm, non-intrusive
https://v1.radio4000.com
GNU General Public License v3.0
46 stars 19 forks source link

Broken add track when pasting URL on mobile #262

Open 4www opened 6 years ago

4www commented 6 years ago

To reproduce, on mobile, paste in a youtube URL, in the URL field of adding a new track.

It should normally fetch the title, but it does not.

To fetch the title, adding a space at the end of the URL, will make the automatic title work.

Expected behavior would be that pasting a URL from mobile fetch the title.

I'm wondering if it is not the paste event that has issues on mobile, need to investigate the issue deeper.

oskarrough commented 6 years ago

Is it on /add or via the modal window?

I just looked, and we're not using the paste even any more. We have an {{input-paste}} component, which is only used in {{track-add-inline}}, which is not used anywhere.

Maybe it is something here https://github.com/internet4000/radio4000/blob/4086e6bfda99a0ef162b83cde33ea4d475bac37d/app/components/track-form/component.js#L22-L59