# Have links to YouTube been disabled?

**URL:** <https://boards.straightdope.com/t/have-links-to-youtube-been-disabled/981958>\
**Category:** Site Feedback\
**Created:** [April 1, 2023, 1:35am UTC](https://boards.straightdope.com/t/have-links-to-youtube-been-disabled/981958 "2023-04-01T01:35:29Z")\
**Posts on this page:** 20\
**Page:** 8

<div class="post-metadata">

**Author:** ![wolfpup](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/wolfpup/32/10618_2.png) [@wolfpup](https://boards.straightdope.com/u/wolfpup)\
**Post date:** [April 30, 2023, 8:47pm UTC](https://boards.straightdope.com/t/have-links-to-youtube-been-disabled/981958/143 "2023-04-30T20:47:34Z")

</div>

Well damn, there goes that theory – I didn’t expect it to work, and it did – and this time, didn’t even have the (usually necessary) trailing slash at the end of the URL. I swear it must be an entirely random process specifically designed to drive us mad!

---

<div class="post-metadata">

**Author:** ![Dr.Strangelove](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dr.strangelove/32/6613_2.png) [@Dr.Strangelove](https://boards.straightdope.com/u/Dr.Strangelove)\
**Post date:** [April 30, 2023, 8:51pm UTC](https://boards.straightdope.com/t/have-links-to-youtube-been-disabled/981958/144 "2023-04-30T20:51:38Z")

</div>

Race conditions drive us programmers mad, tool.

Experiment for everyone:  
If you want to post something with a video, do not insert the YouTube link immediately. Finish the text part of the post, and when you’re ready, paste the YouTube link (in whatever format) into the appropriate place. _Immediately_ (within a second–do not wait for the link to reformat into a video box), hit “reply”.

---

<div class="post-metadata">

**Author:** ![wolfpup](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/wolfpup/32/10618_2.png) [@wolfpup](https://boards.straightdope.com/u/wolfpup)\
**Post date:** [April 30, 2023, 8:56pm UTC](https://boards.straightdope.com/t/have-links-to-youtube-been-disabled/981958/145 "2023-04-30T20:56:02Z")

</div>

Worth a try, but as I said, in the above post I intentionally waited a few seconds after inserting the video link before posting, and it still worked. Madness, I tells ya! 😃

---

<div class="post-metadata">

**Author:** ![Dr.Strangelove](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dr.strangelove/32/6613_2.png) [@Dr.Strangelove](https://boards.straightdope.com/u/Dr.Strangelove)\
**Post date:** [April 30, 2023, 9:03pm UTC](https://boards.straightdope.com/t/have-links-to-youtube-been-disabled/981958/146 "2023-04-30T21:03:05Z")

</div>

It may take longer than a few seconds in some cases.

I tried some of my links above again, and it failed. One thing I noticed: it was impossible to get the preview window to _not_ show the thumbnail immediately. It seems that Discourse has already cached it–which may be related to the problem. Normally, it takes a short while for the bare link to convert. In the meantime, it just shows up as a plain URL.

---

<div class="post-metadata">

**Author:** ![Dr.Strangelove](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dr.strangelove/32/6613_2.png) [@Dr.Strangelove](https://boards.straightdope.com/u/Dr.Strangelove)\
**Post date:** [April 30, 2023, 9:03pm UTC](https://boards.straightdope.com/t/have-links-to-youtube-been-disabled/981958/147 "2023-04-30T21:03:20Z")

</div>

Once more, with a tweak:

[![](https://img.youtube.com/vi/ZeyUP4g3oAY/hqdefault.jpg "The Simpsons - Homer Appears From Bushes") ](https://www.youtube.com/watch?v=ZeyUP4g3oAY)

---

<div class="post-metadata">

**Author:** ![Dr.Strangelove](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dr.strangelove/32/6613_2.png) [@Dr.Strangelove](https://boards.straightdope.com/u/Dr.Strangelove)\
**Post date:** [April 30, 2023, 9:06pm UTC](https://boards.straightdope.com/t/have-links-to-youtube-been-disabled/981958/148 "2023-04-30T21:06:09Z")

</div>

Ok, that worked again, because I tweaked the URL slightly (added a t=1 parameter). Discourse presumably could not fetch the preview from its cache, and had to fetch it from YouTube again–but I posted before that process finished, and so it worked.

The different hostnames, slashes, etc. aren’t really doing anything directly, but they break the Discourse cache, and so give the user a small chance of it working again.

---

<div class="post-metadata">

**Author:** ![wolfpup](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/wolfpup/32/10618_2.png) [@wolfpup](https://boards.straightdope.com/u/wolfpup)\
**Post date:** [April 30, 2023, 9:08pm UTC](https://boards.straightdope.com/t/have-links-to-youtube-been-disabled/981958/149 "2023-04-30T21:08:10Z")

</div>

Makes sense. Yet more knowledge added to the bag-o-tricks! Sure wish they would fix this, though.

---

<div class="post-metadata">

**Author:** ![pjd](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/pjd/32/3009_2.png) [@pjd](https://boards.straightdope.com/u/pjd)\
**Post date:** [April 30, 2023, 9:11pm UTC](https://boards.straightdope.com/t/have-links-to-youtube-been-disabled/981958/150 "2023-04-30T21:11:31Z")

</div>



---

<div class="post-metadata">

**Author:** ![pjd](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/pjd/32/3009_2.png) [@pjd](https://boards.straightdope.com/u/pjd)\
**Post date:** [April 30, 2023, 9:12pm UTC](https://boards.straightdope.com/t/have-links-to-youtube-been-disabled/981958/151 "2023-04-30T21:12:49Z")

</div>

I just copied the “embed code” ^, and i got no error !  
I also didn’t get a preview or anything.  
Or anything in the post !

---

<div class="post-metadata">

**Author:** ![Atamasama](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/atamasama/32/12961_2.png) [@Atamasama](https://boards.straightdope.com/u/Atamasama)\
**Post date:** [April 30, 2023, 9:13pm UTC](https://boards.straightdope.com/t/have-links-to-youtube-been-disabled/981958/152 "2023-04-30T21:13:55Z")

</div>

> [@Dr.Strangelove](#):
>
> It seems that Discourse has already cached it–which may be related to the problem.

I think that’s the problem. It looks definitively like a Discourse bug.

We aren’t allowed to locally store images and videos, any media really. Because the SDMB doesn’t want to become a file storage site. Fair enough.

Discourse is set up to display images, videos, and so on hosted on other sites.

Recently, there is a bug where if Discourse caches a video for you (not hosting, just caching) it mistakenly thinks that the cache it created is a video being uploaded to the site. Since that’s not allowed, it won’t let you do it. You have to post a bare link.

I suspect youtu.be works better because the redirect delays the caching process, and increases the chance of submitting your post before it finishes the cache.

In the past I’ve tried to post multiple videos and failed because I’ll put one, then grab another, paste it, and so on. It has plenty of time to cache the videos before I post, and then stops me.

This also explains why you can sometimes post a video but can’t edit it. It has already cached by the time you edit your post, and stops you from submitting the update. Also, posting a link that never makes a preview always works (such as a link on the same line as other text), but then readers must click to another page to view it.

Honestly, this explains **everything**. I really wish we knew if TPTB at Discourse (@codinghorror and so on) are aware of the issue and are working on it.

---

<div class="post-metadata">

**Author:** ![Dr.Strangelove](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dr.strangelove/32/6613_2.png) [@Dr.Strangelove](https://boards.straightdope.com/u/Dr.Strangelove)\
**Post date:** [April 30, 2023, 9:21pm UTC](https://boards.straightdope.com/t/have-links-to-youtube-been-disabled/981958/153 "2023-04-30T21:21:15Z")

</div>

> [@Atamasama](#):
>
> Recently, there is a bug where if Discourse caches a video for you (not hosting, just caching) it mistakenly thinks that the cache it created is a video being uploaded to the site. Since that’s not allowed, it won’t let you do it. You have to post a bare link.

Agreed. Something about the preview generation is flagged as a media item, and not… whatever else these things get classified as in the system. Discourse sites without the restriction don’t have the issue at all, which may be why this doesn’t seem to be a high priority bug.

> [@Atamasama](#):
>
> suspect youtu.be works better because the redirect delays the caching process, and increases the chance of submitting your post before it finishes the cache.

Quite possibly. But I suspect it’s more often a case of the user trying a normal link, failing because the caching happened, then trying a new URL format (which could have been anything, even just adding a trailing slash), and then seeing it work because they probably hit the reply button immediately after (instead of continuing to work on the post).

---

<div class="post-metadata">

**Author:** ![Dr.Strangelove](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dr.strangelove/32/6613_2.png) [@Dr.Strangelove](https://boards.straightdope.com/u/Dr.Strangelove)\
**Post date:** [April 30, 2023, 9:23pm UTC](https://boards.straightdope.com/t/have-links-to-youtube-been-disabled/981958/154 "2023-04-30T21:23:34Z")

</div>

> [@pjd](#):
>
> I just copied the “embed code” ^, and i got no error !

I don’t think the embedded method works at all–one of the many HTML codes that aren’t supported in posts. But you do seem to have discovered a method of producing zero-length posts 🙂 .

---

<div class="post-metadata">

**Author:** ![Atamasama](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/atamasama/32/12961_2.png) [@Atamasama](https://boards.straightdope.com/u/Atamasama)\
**Post date:** [April 30, 2023, 9:25pm UTC](https://boards.straightdope.com/t/have-links-to-youtube-been-disabled/981958/155 "2023-04-30T21:25:14Z")

</div>

> [@Dr.Strangelove](#):
>
> But I suspect it’s more often a case of the user trying a normal link, failing because the caching happened, then trying a new URL format (which could have been anything, even just adding a trailing slash), and then seeing it work because they probably hit the reply button immediately after (instead of continuing to work on the post).

I can say that’s not the case for me. Once I learned that youtu.be worked better, I stopped doing it any other way and never posted the regular link anymore. My behavior was the same as before, only the url format changed. But I found that regular YouTube links never worked, and youtu.be did at least most of the time.

---

<div class="post-metadata">

**Author:** ![Atamasama](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/atamasama/32/12961_2.png) [@Atamasama](https://boards.straightdope.com/u/Atamasama)\
**Post date:** [May 6, 2023, 8:19pm UTC](https://boards.straightdope.com/t/have-links-to-youtube-been-disabled/981958/156 "2023-05-06T20:19:31Z")

</div>

Just wanted to post an update… I’ve gotten in the habit of putting my post together in another format (like a text file), then copying-and-pasting into a post, then submitting immediately. So far, no issues.

I mean, it still sucks that I have to jump through these hoops, but at least it works.

---

<div class="post-metadata">

**Author:** ![LSLGuy](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lslguy/32/5813_2.png) [@LSLGuy](https://boards.straightdope.com/u/LSLGuy)\
**Post date:** [May 6, 2023, 10:19pm UTC](https://boards.straightdope.com/t/have-links-to-youtube-been-disabled/981958/157 "2023-05-06T22:19:42Z")

</div>

Back in the day of the no-edit or even the short-edit window I used to write / edit / proof most of my posts in Word, then copy/paste them into vBulletin. A PITA, but a necessity in the no-edit no-spellcheck Darkye Olde Dayes of Yore for anything longer than a couple of sentences.

As a temporary workaround for the current YouTube glitch that’s certainly a good suggestion.

---

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [May 6, 2023, 10:29pm UTC](https://boards.straightdope.com/t/have-links-to-youtube-been-disabled/981958/158 "2023-05-06T22:29:12Z")

</div>

My current strategy is just to write the post, then make a separate post for the video, which I submit quickly.

---

<div class="post-metadata">

**Author:** ![Dr.Strangelove](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dr.strangelove/32/6613_2.png) [@Dr.Strangelove](https://boards.straightdope.com/u/Dr.Strangelove)\
**Post date:** [May 6, 2023, 10:30pm UTC](https://boards.straightdope.com/t/have-links-to-youtube-been-disabled/981958/159 "2023-05-06T22:30:31Z")

</div>

Or just write the post, leaving a spot open for the video link, then paste the link in just before submitting.

---

<div class="post-metadata">

**Author:** ![LSLGuy](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lslguy/32/5813_2.png) [@LSLGuy](https://boards.straightdope.com/u/LSLGuy)\
**Post date:** [May 6, 2023, 10:41pm UTC](https://boards.straightdope.com/t/have-links-to-youtube-been-disabled/981958/160 "2023-05-06T22:41:20Z")

</div>

Have we gotten any kind of consensus about speed having any actual effect? Or is that just an occasional coincidence?

My primary issue is my typical multi-paragraph post is posted then edited 4 or 6 more times before I’m done with it. There’s always one more tyop to spot or one more word order out of.

Therefore I can’t put the vid link in the first time and I also can’t edit it in the last time. Yes, as mentioned just above I could run through all e.g. 6 versions in Word then post the final no kidding final version just once with the vids in place.

---

<div class="post-metadata">

**Author:** ![Dr.Strangelove](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dr.strangelove/32/6613_2.png) [@Dr.Strangelove](https://boards.straightdope.com/u/Dr.Strangelove)\
**Post date:** [May 6, 2023, 10:50pm UTC](https://boards.straightdope.com/t/have-links-to-youtube-been-disabled/981958/161 "2023-05-06T22:50:34Z")

</div>

> [@LSLGuy](#):
>
> Have we gotten any kind of consensus about speed having any actual effect?

I’m about 95% certain that the problem arises due to the detection/conversion/thumbnail step (and the fact that we disallow embedded media here). Speed is only important in that it’s an asynchronous process and if you paste a link quickly and then submit, it’s likely that the process has not finished yet.

I’m also about 95% certain that if you post, and the asynchronous process completes (which you can see happening dynamically), and then edit your post, it will then _not_ succeed, because the once the thumbnail gets cached, the converted URL comes up immediately rather than after a second or two.

If you need to edit your post, you can try one of the alternate URLs, like youtu.be. You can also put a “&t=0” at the end of the URL. Discourse isn’t that smart and it caches based on the exact text of the URL. In fact you can probably just append “&blah=blah” or whatever to confuse Discourse (haven’t tried it, but I think it’ll work). Just change it to something else every time you edit.

---

<div class="post-metadata">

**Author:** ![Dr.Strangelove](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dr.strangelove/32/6613_2.png) [@Dr.Strangelove](https://boards.straightdope.com/u/Dr.Strangelove)\
**Post date:** [May 6, 2023, 10:52pm UTC](https://boards.straightdope.com/t/have-links-to-youtube-been-disabled/981958/162 "2023-05-06T22:52:49Z")

</div>

[![](https://img.youtube.com/vi/WJq4jWSQNd8/hqdefault.jpg "Go ! Bwaaah !") ](https://www.youtube.com/watch?v=WJq4jWSQNd8)

Yeah, after a few experiments: just append a “&1” to the end of the URL. If you need to edit or aren’t quick enough, change to “&2”, “&3”, etc. Just make sure you submit before the thumbnail pops up.

[Previous page](https://boards.straightdope.com/t/have-links-to-youtube-been-disabled/981958.md?page=7)

[Next page](https://boards.straightdope.com/t/have-links-to-youtube-been-disabled/981958.md?page=9)
