Skip to content

Commit

Permalink
fix: use our own demo content for demo playlist auto-scheduler bootst…
Browse files Browse the repository at this point in the history
…rap (#19)
  • Loading branch information
birme authored Mar 6, 2023
1 parent c680a2f commit ef96f0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/auto_scheduler/playlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,16 +138,15 @@ export class PlaylistAutoScheduler {
id: "eyevinn",
tenant: demoTenant,
channelId: "playlist",
url: "https://testcontent.eyevinn.technology/fast/svtdemo.txt",
url: "https://testcontent.eyevinn.technology/fast-demo/eyevinn.txt",
});
const demoChannel = await this.channelsDb.getChannelById("playlist");
if (!demoChannel) {
debug("Creating demo channel");
await this.channelsDb.add(new Channel({
id: "playlist",
tenant: demoTenant,
title: "Demo Channel",
audioTracks: [ { language: "en", name: "English", default: true }]
title: "Demo Channel"
}));
}
await this.playlistsDb.add(demoPlaylist);
Expand Down
2 changes: 1 addition & 1 deletion src/models/playlistModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class Playlist {
this.position = 0;
}
if (entries.length !== this.cache.assets.length) {
this.cache.assets = [];
this.cache.assets = [];
let i = 0;
for (const entry of entries) {
this.cache.assets.push({ title: `Entry ${i+1}`, url: entry.toString(), duration: -1 });
Expand Down

0 comments on commit ef96f0a

Please sign in to comment.