|
@@ -16,18 +16,31 @@
|
|
return self;
|
|
return self;
|
|
}
|
|
}
|
|
|
|
|
|
-+ (instancetype)tempChannelM3UModelWithSongs:(NSArray <id <MKRRadioResorce>> *)songs
|
|
|
|
- startIndex:(NSInteger)startIndex {
|
|
|
|
|
|
+//+ (instancetype)tempChannelM3UModelWithSongs:(NSArray <id <MKRRadioResorce>> *)songs
|
|
|
|
+// startIndex:(NSInteger)startIndex {
|
|
|
|
+// MKRM3UListModel *model = [[MKRM3UListModel alloc] init];
|
|
|
|
+// [model selectTempChannelTargetSongsForM3u:songs startIndex:startIndex];
|
|
|
|
+// model.startIndex = 0;
|
|
|
|
+// model.endIndex = (int)(songs.count > 50 ? 49 : songs.count - 1);
|
|
|
|
+// model.channelNO = @"12";
|
|
|
|
+// model.m3uSize = (int)(songs.count >= 50 ? 50 : songs.count);
|
|
|
|
+// model.channelPure = @"NO";
|
|
|
|
+// model.channelAlbumID = @"FREESTYLE";
|
|
|
|
+// model.channelInfoString = @"3//NULL//NULL//NULL";
|
|
|
|
+// model.timeString = [NSString stringWithFormat:@"%.0f", [[NSDate date] timeIntervalSince1970]];
|
|
|
|
+// return model;
|
|
|
|
+//}
|
|
|
|
+
|
|
|
|
++ (instancetype)tempChannelM3UModelWithSongs:(NSArray<id<MKRRadioResorce>> *)songs startIndex:(NSInteger)startIndex{
|
|
MKRM3UListModel *model = [[MKRM3UListModel alloc] init];
|
|
MKRM3UListModel *model = [[MKRM3UListModel alloc] init];
|
|
[model selectTempChannelTargetSongsForM3u:songs startIndex:startIndex];
|
|
[model selectTempChannelTargetSongsForM3u:songs startIndex:startIndex];
|
|
|
|
+ model.channelNO = @"13";
|
|
|
|
+ model.timeString = [NSString stringWithFormat:@"%.0f", [[NSDate date] timeIntervalSince1970]];
|
|
model.startIndex = 0;
|
|
model.startIndex = 0;
|
|
model.endIndex = (int)(songs.count > 50 ? 49 : songs.count - 1);
|
|
model.endIndex = (int)(songs.count > 50 ? 49 : songs.count - 1);
|
|
- model.channelNO = @"12";
|
|
|
|
model.m3uSize = (int)(songs.count >= 50 ? 50 : songs.count);
|
|
model.m3uSize = (int)(songs.count >= 50 ? 50 : songs.count);
|
|
- model.channelPure = @"NO";
|
|
|
|
- model.channelAlbumID = @"FREESTYLE";
|
|
|
|
- model.channelInfoString = @"3//NULL//NULL//NULL";
|
|
|
|
- model.timeString = [NSString stringWithFormat:@"%.0f", [[NSDate date] timeIntervalSince1970]];
|
|
|
|
|
|
+ model.channelInfoString = @"NULL";
|
|
|
|
+ model.channelID = @"0";
|
|
return model;
|
|
return model;
|
|
}
|
|
}
|
|
|
|
|