diff options
author | bobzel <zzzman@gmail.com> | 2021-09-25 16:09:21 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-09-25 16:09:21 -0400 |
commit | eed7f32cda030d9ef2d8aaae168c11832460a653 (patch) | |
tree | 24cd324aaa10b4865fa946a69be374630f981ba4 /src | |
parent | e7e67ff7e3170b6eb5bf05ffe284ca08f4802459 (diff) |
fix for some youtube urls that didn't upload.
Diffstat (limited to 'src')
-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 cb8b55cb2..e662f3ddf 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?: const batch = UndoManager.StartBatch("youtube upload"); const generatedDocuments: Doc[] = []; - this.slowLoadDocuments((uriList || text).split("v=")[1], options, generatedDocuments, text, completed, e.clientX, e.clientY, addDocument).then(batch.end); + this.slowLoadDocuments((uriList || text).split("v=")[1].split("&")[0], options, generatedDocuments, text, completed, e.clientX, e.clientY, addDocument).then(batch.end); return; } |