parent
645d04cd5c
commit
f23c97fa0e
@ -71,7 +71,7 @@ export function StreamEditor({ ev, onFinish, options }: StreamEditorProps) {
|
|||||||
} else if (gameId) {
|
} else if (gameId) {
|
||||||
new GameDatabase().getGame(gameId).then(setGame);
|
new GameDatabase().getGame(gameId).then(setGame);
|
||||||
}
|
}
|
||||||
}, [ev?.id]);
|
}, []);
|
||||||
|
|
||||||
const validate = useCallback(() => {
|
const validate = useCallback(() => {
|
||||||
if (title.length < 2) {
|
if (title.length < 2) {
|
||||||
|
@ -101,6 +101,7 @@ export interface StreamInfo {
|
|||||||
title?: string;
|
title?: string;
|
||||||
summary?: string;
|
summary?: string;
|
||||||
image?: string;
|
image?: string;
|
||||||
|
thumbnail?: string;
|
||||||
status?: StreamState;
|
status?: StreamState;
|
||||||
stream?: string;
|
stream?: string;
|
||||||
recording?: string;
|
recording?: string;
|
||||||
@ -132,6 +133,7 @@ export function extractStreamInfo(ev?: NostrEvent) {
|
|||||||
matchTag(t, "title", v => (ret.title = v));
|
matchTag(t, "title", v => (ret.title = v));
|
||||||
matchTag(t, "summary", v => (ret.summary = v));
|
matchTag(t, "summary", v => (ret.summary = v));
|
||||||
matchTag(t, "image", v => (ret.image = v));
|
matchTag(t, "image", v => (ret.image = v));
|
||||||
|
matchTag(t, "thumbnail", v => (ret.thumbnail = v));
|
||||||
matchTag(t, "status", v => (ret.status = v as StreamState));
|
matchTag(t, "status", v => (ret.status = v as StreamState));
|
||||||
if (t[0] === "streaming" && t[1].startsWith("http")) {
|
if (t[0] === "streaming" && t[1].startsWith("http")) {
|
||||||
matchTag(t, "streaming", v => (ret.stream = v));
|
matchTag(t, "streaming", v => (ret.stream = v));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user