mirror of
https://github.com/yuliskov/SmartTube.git
synced 2026-01-05 21:40:47 -06:00
merge the same groups: create id from title
This commit is contained in:
Submodule MediaServiceCore updated: a1e0d2931b...637225b98e
@@ -93,11 +93,12 @@ public class VideoGroup {
|
||||
VideoGroup videoGroup = new VideoGroup();
|
||||
videoGroup.mSection = section;
|
||||
videoGroup.mPosition = groupPosition;
|
||||
videoGroup.mId = videoGroup.hashCode();
|
||||
videoGroup.mVideos = new ArrayList<>();
|
||||
videoGroup.mMediaGroup = mediaGroup;
|
||||
videoGroup.mTitle = mediaGroup != null && mediaGroup.getTitle() != null ?
|
||||
mediaGroup.getTitle() : section != null ? section.getTitle() : null;
|
||||
// Fix duplicated rows e.g. Shorts
|
||||
videoGroup.mId = videoGroup.mTitle != null ? videoGroup.mTitle.hashCode() : videoGroup.hashCode();
|
||||
|
||||
if (mediaGroup == null) {
|
||||
return videoGroup;
|
||||
|
||||
Reference in New Issue
Block a user