much simpler, "uploader" will never change on a playlist

This commit is contained in:
Peter Hindes 2019-10-14 14:56:04 -06:00
parent bd2b32bfbc
commit 3794002c7b
1 changed files with 2 additions and 11 deletions

View File

@ -74,18 +74,9 @@ public class PlaylistRemoteEntity implements PlaylistLocalItem {
@Ignore
public boolean isIdenticalTo(final PlaylistInfo info) {
boolean returnMe;
if (!TextUtils.isEmpty(getUploader())) { // If the playlist has an uploader
returnMe = getServiceId() == info.getServiceId() && getName().equals(info.getName()) &&
return getServiceId() == info.getServiceId() && getName().equals(info.getName()) &&
getStreamCount() == info.getStreamCount() && getUrl().equals(info.getUrl()) &&
getThumbnailUrl().equals(info.getThumbnailUrl()) &&
getUploader().equals(info.getUploaderName());
} else { // Else ignore uploader
returnMe = getServiceId() == info.getServiceId() && getName().equals(info.getName()) &&
getStreamCount() == info.getStreamCount() && getUrl().equals(info.getUrl()) &&
getThumbnailUrl().equals(info.getThumbnailUrl());
}
return returnMe;
getThumbnailUrl().equals(info.getThumbnailUrl());
}
public long getUid() {