diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2020-05-18 13:09:02 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2020-05-18 13:09:02 -0400 |
| commit | 4c4e92cf70ef475a379ca8a9368ee35dd4f197ed (patch) | |
| tree | 53d08c86b9cbcdd423653020bcc9e45f618929e5 /src/client/views/collections/CollectionSubView.tsx | |
| parent | 0aa4b3b260bc8debebe876488a87b2e3aba7b536 (diff) | |
fixes for youtube video snapshots
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionSubView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx index 33c75a274..673cce14f 100644 --- a/src/client/views/collections/CollectionSubView.tsx +++ b/src/client/views/collections/CollectionSubView.tsx @@ -356,7 +356,7 @@ export function CollectionSubView<T, X>(schemaCtor: (doc: Doc) => T, moreProps?: if (text) { if (text.includes("www.youtube.com/watch")) { - const url = text.replace("youtube.com/watch?v=", "youtube.com/embed/"); + const url = text.replace("youtube.com/watch?v=", "youtube.com/embed/").split("&")[0]; addDocument(Docs.Create.VideoDocument(url, { ...options, title: url, |
