Skip to content

Commit

Permalink
Update to the new Karp URL scheme. (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
kixelated authored Nov 27, 2024
1 parent 5a98bc1 commit 39b00dc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/contribute/broadcast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class Broadcast {
connection.publish(track.reader())
}

const track = new Transfork.Track(this.#config.path.concat("catalog.json"), 0)
const track = new Transfork.Track(this.#config.path, 0)
track.appendGroup().writeFrames(Catalog.encode(broadcast))

connection.publish(track.reader())
Expand Down
2 changes: 1 addition & 1 deletion lib/karp/catalog/broadcast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function decode(path: string[], raw: Uint8Array): Broadcast {
}

export async function fetch(connection: Transfork.Connection, path: string[]): Promise<Broadcast> {
const track = new Transfork.Track(path.concat("catalog.json"), 0)
const track = new Transfork.Track(path, 0)
const sub = await connection.subscribe(track)
try {
const segment = await sub.nextGroup()
Expand Down
4 changes: 2 additions & 2 deletions web/src/pages/watch/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ title: Watch
All **PUBLIC** broadcasts will be eventually listed here. Until then, enjoy:

<div class="grid grid-cols-[200px_1fr] items-center gap-6">
<a href="/watch/bbb"><img src="/watch/bunny.png" alt="Big Buck Bunny" /></a>
<a href="/watch/demo/bbb"><img src="/watch/bunny.png" alt="Big Buck Bunny" /></a>
<div>
<h3 class="m-0 mb-4">[Big Buck Bunny](/watch/bbb)</h3>
<h3 class="m-0 mb-4">[Big Buck Bunny](/watch/demo/bbb)</h3>
<p class="m-0 text-sm">_video_: h.264 1280x720 3.0Mb/s</p>
<p class="m-0 text-sm">_audio_: [none](/issues)</p>
</div>
Expand Down

0 comments on commit 39b00dc

Please sign in to comment.