Skip to content

Commit

Permalink
add id to youtube migration
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBrax committed Nov 9, 2023
1 parent 52b7e51 commit 24d4875
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/Core/LiveStreamDVR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,12 @@ export class LiveStreamDVR {
);
needsSave = true;
}
if (!channel.internalName) {
if (!channel.internalName || !channel.internalId) {
if (channel.provider == "twitch") {
channel.internalName = channel.login || "";
} else if (channel.provider == "youtube") {
channel.internalName = channel.channel_id || "";
channel.internalId = channel.channel_id || "";
} else if (channel.provider == "kick") {
channel.internalName = channel.slug || "";
} else {
Expand Down

0 comments on commit 24d4875

Please sign in to comment.