Menu ▾ ▴

#3407 Uploading a post breaks when embedding video code

v1.0_(example)
open
nobody
None
5
2013-01-03
2007-05-07
No

LJ only allows video uploads by use of a special tag, according to this: http://www.livejournal.com/support/faqbrowse.bml?faqid=268&view=full

Currently if you embed a video code from some website (for instance Youtube) and then upload the post with SeMagic, the post will end where the embedded code begins.

As far as I can figure out, this is simply a matter of adding: <lj-embed> (normal embedded code) </lj-embed>
But I might be wrong. When looking at the finished post, it seems like LJ does some hocus pocus by rearranging the <param> tags as well, but I don't know if that makes a difference or not.

Also, if you click 'Edit Last Entry' to get (a successful) post back, the entire embedded code has been replaced with something like this:
<lj-embed id="21" />

This appears to work fine on the next upload, however. LJ must be doing some internal enumeration of all your embedded video.

Semagic needs to check that the <embed> tag is not used in a post BEFORE uploading it. If it's just a matter of putting the <lj-embed> tag around it, I suggest Semagic does this automatically before uploading.

Or semagic could at the very least notify the user that the post is going to break if the tags are not added, and then a new button similar to the 'Make link/image' could be made that says 'Make Media'. Or something.

Discussion