mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2024-11-25 04:22:30 +01:00
Added serviceId check while comparing PlayQueues
This commit is contained in:
parent
835c5e9d43
commit
01e0dd50ad
@ -532,8 +532,11 @@ public abstract class PlayQueue implements Serializable {
|
||||
return false;
|
||||
}
|
||||
for (int i = 0; i < size(); i++) {
|
||||
// Check is based on URL
|
||||
if (!streams.get(i).getUrl().equals(other.streams.get(i).getUrl())) {
|
||||
final PlayQueueItem stream = streams.get(i);
|
||||
final PlayQueueItem otherStream = other.streams.get(i);
|
||||
// Check is based on serviceId and URL
|
||||
if (stream.getServiceId() != otherStream.getServiceId()
|
||||
|| !stream.getUrl().equals(otherStream.getUrl())) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user