mirror of https://github.com/calzoneman/sync.git
Fix random playlist death bug
This commit is contained in:
parent
b37893176f
commit
54102863ac
|
@ -291,7 +291,7 @@ module.exports = {
|
|||
// Note that before this line, chan.name might have a different capitalization
|
||||
// than the database has stored. Update accordingly.
|
||||
chan.name = res[0].name;
|
||||
chan.canonical_name = chan.name.toLowerCase();
|
||||
chan.uniqueName = chan.name.toLowerCase();
|
||||
chan.registered = true;
|
||||
chan.logger.log("[init] Loaded channel from database");
|
||||
callback(null, true);
|
||||
|
|
|
@ -36,7 +36,7 @@ PlaylistItem.prototype.pack = function() {
|
|||
}
|
||||
|
||||
function Playlist(chan) {
|
||||
var name = chan.canonical_name;
|
||||
var name = chan.uniqueName;
|
||||
if(name in AllPlaylists && AllPlaylists[name]) {
|
||||
var pl = AllPlaylists[name];
|
||||
if(!pl.dead)
|
||||
|
|
Loading…
Reference in New Issue