mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-09 01:16:15 -08:00
refactor: generate IDs for channels
This commit is contained in:
1 parent
6a82e60adc
commit
7973b84bfd
1 file changed
+7
-1
@@ -122,7 +122,13 @@ export class Api {
|
||||
filename: name,
|
||||
title: name,
|
||||
count: playlist.items.length,
|
||||
playlist,
|
||||
playlist: {
|
||||
...playlist,
|
||||
items: playlist.items.map((item) => ({
|
||||
id: guid(),
|
||||
...item,
|
||||
})),
|
||||
},
|
||||
importDate: new Date().toISOString(),
|
||||
lastUsage: new Date().toISOString(),
|
||||
favorites: [],
|
||||
|
||||
Reference in new issue
Block a user