archived-bot icon indicating copy to clipboard operation
archived-bot copied to clipboard

Added queue position and approx wait time. #402

Open SuhanKoh opened this issue 7 years ago • 51 comments

SuhanKoh avatar Nov 27 '17 20:11 SuhanKoh

IIRC embeds didn't look as nice. Or was it decided to do that? (Might have missed it)

Shredder121 avatar Nov 27 '17 23:11 Shredder121

We decided against embeds because they don't look as nice as the current queue

Abi45x avatar Nov 27 '17 23:11 Abi45x

I have screenshots here, #402

SuhanKoh avatar Nov 28 '17 00:11 SuhanKoh

Ok I see napster said it's okay

Shredder121 avatar Nov 28 '17 00:11 Shredder121

Is there another way to display long message without using embeds? The issue here is once I added queue position and wait timer, the message gets too long :/

SuhanKoh avatar Nov 28 '17 00:11 SuhanKoh

Without embeds there is more potential screen real estate (on desktop clients*) embeds only grow as big as they do, so yeah..

Shredder121 avatar Nov 28 '17 06:11 Shredder121

Embeds use a smaller font.

schnapster avatar Nov 28 '17 07:11 schnapster

Hi, can you provide screenshots please?

schnapster avatar Dec 12 '17 11:12 schnapster

screen shot 2017-12-17 at 9 24 48 pm screen shot 2017-12-17 at 9 25 15 pm screen shot 2017-12-17 at 9 25 40 pm

SuhanKoh avatar Dec 18 '17 05:12 SuhanKoh

Squeezed to smallest possible on a macosx. screen shot 2017-12-17 at 9 30 13 pm

SuhanKoh avatar Dec 18 '17 05:12 SuhanKoh

FredBoat shouldn't use embeds where it isn't useful. Not all users see them and it is inconsistent with our other messages.

I'd like to hear your counterproposal on displaying a lot of information without bloating the messages.

schnapster avatar Dec 21 '17 16:12 schnapster

I'd like to hear your counterproposal on displaying a lot of information without bloating the messages.

With a normal message, possibly less verbose than the current one

freyacodes avatar Dec 21 '17 16:12 freyacodes

Should I concat the music name to maybe to x characters and replace it with "..." ?

SuhanKoh avatar Jan 02 '18 05:01 SuhanKoh

How does this look?

SuhanKoh avatar Jan 02 '18 05:01 SuhanKoh

@Frederikam :eyes:

schnapster avatar Jan 08 '18 22:01 schnapster

Instead of commas I would put linebreaks

freyacodes avatar Jan 08 '18 22:01 freyacodes

I think there seem to be equivalent but shorter replacements for most strings: "has been seletected" -> "selected" "position in queue" -> "position", or maybe just "queued" "approximate wait time" -> "~ wait time", or maybe "playing in"

The last "minute" is completely wrong..can probably be replaced by single letter notation (h, m, s). We might have methods for that in TextUtils already.

schnapster avatar Jan 08 '18 22:01 schnapster

@Frederikam I think if I follow what napstr suggested, we don't need a line break. I will put up screenshots soon^tm.

SuhanKoh avatar Jan 09 '18 02:01 SuhanKoh

@napstr I looked at TextUtils, is this the method you're referring to? TextUtils#formatTime

SuhanKoh avatar Jan 09 '18 03:01 SuhanKoh

Any suggestion on how to put line break?

Maybe something like this?

Song selected #2 ~ Now playing
    HELLO! Songs Jukebox | Akhil Akkineni, Kalyani Priyadarshan | Vikram K Kumar | Anup Rubens (29:49) 

Song selected #1 ~ queued: #2, playing in: 29:49
    Adele - Hello (06:07)
test

SuhanKoh avatar Jan 09 '18 03:01 SuhanKoh

You're right, that actually looks better

I haven't reviewed the code, but I think Napster wanted to do that

freyacodes avatar Jan 09 '18 10:01 freyacodes

I like the song name on the second line too.

schnapster avatar Jan 09 '18 15:01 schnapster

I have a question. How are Livestreams handled here ?

Nanabell avatar Jan 09 '18 18:01 Nanabell

@Nanabell It will now only print once for livestream. Seems like the one in production will print twice. This PR will only change the formatting of the search/selection result. livestream test

SuhanKoh avatar Jan 10 '18 06:01 SuhanKoh

Screenshot for the current change: two lines

SuhanKoh avatar Jan 10 '18 06:01 SuhanKoh

@SuhanKoh rather meant, if there is already a live stream in the queue/playing. What does the "playing in" say when we have a live stream before it. since without a manual skip or the stream fucking up we would not play the songs after that

Nanabell avatar Jan 10 '18 07:01 Nanabell

@Nanabell I just checked, it will say Queued, but the time are not added from livestream since it's live. (let me check if there is a way to detect currently playing a live stream)

SuhanKoh avatar Jan 11 '18 01:01 SuhanKoh

live stream check

SuhanKoh avatar Jan 11 '18 02:01 SuhanKoh

Two things:

  • The "playing after livestream" message doesn't happen, when the livestream is in the queue, but not currently playing. image

  • Adding a track via link does not show any of the things done by this PR, but it should. image

schnapster avatar Jan 31 '18 17:01 schnapster

More questions which you should test: What happens when a playlist/song is added

  • as a youtube playlist
  • as a spotify playlist
  • as a hastebin link
  • via ;;split

schnapster avatar Jan 31 '18 17:01 schnapster