TeamNewPipe / NewPipe

A libre lightweight streaming front-end for Android.
https://newpipe.net
GNU General Public License v3.0
31.46k stars 3.06k forks source link

Enqueuing/playing a video from history should not queue the whole playlist #5586

Open GeluOltean opened 3 years ago

GeluOltean commented 3 years ago

Checklist

Describe the feature you want

Hi everyone. This might be a pet peeve of mine, but I think that when enqueuing a particular video from the history, having the whole history playlist queued is a bit strange; I think it would be quite helpful to either treat the history playlist as "special" in this regard, or have the option of toggling this on or off (perhaps not just for the history playlist?).

Is your feature request related to a problem? Please describe it

Additional context

How will you/everyone benefit from this feature?

The reason I ask for this is that I often "compose" playlists with different videos, but if I do it starting from the history playlist and I'm not paying enough attention, the whole of my history gets queued and any videos I add will be shot down all the way to the end, which is a bit unexpected.

MD77MD commented 3 years ago

yeah, this is really Annoying !

btw, this is only happening with pop-up and background playback. regular video playback is fine.

Wessl commented 3 years ago

Is anyone working on this? The way I personally use newpipe is to have on big playlist of all my music on youtube that I then queue songs from, which has been impossible for a while now. Surely this has to be one of the most important bugs in the app at this point? I have no idea what language newpipe is even written in but at this point I'm going to start to try and fix this myself.

Krysaczek commented 3 years ago

Reproduction steps:

Workaround I do is to start playing whatever video in background, pause and then enqueue several videos from history or even from search that I want to listen to. Then I go to the near end of the queue and pick the first one I enqueued. This way I circumvent whole enqued history and listen only to the newly added.

Solution could be:

codyit commented 1 month ago

Was going to submit an new issue and I found this. @SameenAhnaf Should it be flagged as a bug instead of feature request?

  1. When I hold press a video and choose "Start playing in the background" my expectation is to action upon that particular video instead of the whole list. I'd think it's a common expectation.
  2. Personally I would never enqueue my whole watch history in the background. Similarly I'd expect no one does it.

I'll try to see if I have bandwidth to help fix it.

SameenAhnaf commented 5 days ago

@codyit An issue is marked as bug if the existing code doesn't work as expected. A feature request is for adding completely new code. So, feature requests and bugs are separated by intended behavior of code, NOT the usual behavior

codyit commented 2 days ago

@codyit An issue is marked as bug if the existing code doesn't work as expected. A feature request is for adding completely new code. So, feature requests and bugs are separated by intended behavior of code, NOT the usual behavior

I'm indeed making a case that this was not the intended behavior. If we substitute this to a shopping cart and the action is removal that would be more obvious, i.e. clicking remove on a single item clears your shopping cart.

Without looking at the code my guess is that instead of working on individual object the code is pulling the parent collection of history instead. Even if there were extensive test cases for this I would suspect it was misinterpretation during implementation.

Those are just semantics.. anyway, the only relevant bit for me is whether a PR for this would be accepted? Since according to your dev.md it wont unless it's categorized as a bug.