mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-12 10:00:05 -04:00
Rename to id.js
This commit is contained in:
parent
09c4947ac6
commit
442916d130
3 changed files with 6 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
const { db, file, parser, store, logger, cid } = require('../core')
|
||||
const { db, file, parser, store, logger, id } = require('../core')
|
||||
const { program } = require('commander')
|
||||
const _ = require('lodash')
|
||||
|
||||
|
@ -62,7 +62,7 @@ async function saveToDatabase(streams = []) {
|
|||
stream.set('cluster_id', { cluster_id: i + 1 })
|
||||
|
||||
if (!stream.get('channel_id')) {
|
||||
const channel_id = cid.generate(item.name, item.filepath)
|
||||
const channel_id = id.generate(item.name, item.filepath)
|
||||
|
||||
stream.set('channel_id', { channel_id })
|
||||
stream.set('updated', { updated: true })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue