podlove-subscribe-button icon indicating copy to clipboard operation
podlove-subscribe-button copied to clipboard

Need to encode URLs for schemes that use query parameters

Open quinncomendant opened this issue 7 years ago • 0 comments

For a podcasts with a URL such as:

http://example.com/feed?id=123

This is fine when used with a simple app scheme, like this:

podcast://example.com/feed?id=123

However, if the app uses a scheme with query parameters such as overcast://x-callback-url/add?url= the URL doesn't work. In the following example, it does not invoke the Overcast subscribe callback, I think because of the double ?, so part of the query is ignored:

overcast://x-callback-url/add?url=http://example.com/feed?id=123

To fix this case, the podcast URL should be encoded at least as much as this:

overcast://x-callback-url/add?url=http://example.com/feed%3Fid=123

Or probably safer to encode the entire URL:

overcast://x-callback-url/add?url=http%3A%2F%2Fexample.com%2Ffeed%3Fid%3D123

This needs to be done in clients_panel.coffee to determine if the URL needs encoding or not (because if a simple scheme is used, e.g., podcast://, URL encoding shouldn't be done).

quinncomendant avatar Apr 16 '18 04:04 quinncomendant

Wow these are cool! How would these look with the dark theme though?

colinkiama avatar Jul 23 '22 11:07 colinkiama

Wow these are cool! How would these look with the dark theme though?

Screenshot 2022-07-24 at 00 05 58

These are not final, the colour has to be changed to match with the Vala palette.

Also, maybe we can make the shadows darker in dark mode? 🤔

Suzie97 avatar Jul 23 '22 18:07 Suzie97

I would also increase transparency of the background gradient, it's too much distinctive in my opinion.

pervoj avatar Jul 23 '22 18:07 pervoj

I loved the semi transparent icons on bottom right. Not a big fan of emojis though.

rakshit087 avatar Jul 24 '22 08:07 rakshit087

Not a big fan of emojis though.

Maybe we could switch to a different, more detailed icon set instead?

colinkiama avatar Aug 01 '22 14:08 colinkiama

,

That would work 👍

rakshit087 avatar Aug 03 '22 13:08 rakshit087

Any updates happened on this? Looks really good in my opinion

lw64 avatar Oct 11 '23 15:10 lw64