this post was submitted on 19 Sep 2023
36 points (89.1% liked)

Programmer Humor

19471 readers
1294 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 

Original title: "Misunderstanding Your Job Description - Delivery" by Viva La Dirt League

Delivery man Byron learns some really important information about his job... that he probably should have learnt 6 years ago...

For those who don't know the show: It's important to understand that Byron is a very, very dedicated employee, who accepts any challenge, and takes great pride in his work. His colleagues sometimes don't remember him after working with him for years.

top 10 comments
sorted by: hot top controversial new old
[–] BorgDrone@lemmy.one 14 points 1 year ago (3 children)

Original youtube link?

Can someone make a bot that converts these piped links into real youtube links, because they are highly annoying.

[–] provomeister@lemmy.ca 4 points 1 year ago (1 children)

It use the same path logic as YouTube. You only need to replace "piped.video" with "youtube.com".

[–] Esca@lemmy.one 7 points 1 year ago (1 children)

That only works if you're using the website. I'm in sync and just want it to open in the YouTube app.

[–] provomeister@lemmy.ca 1 points 1 year ago* (last edited 1 year ago)

It's still possible but that requires a few steps to works.

If you're using the official YouTube app, you can press the three vertical dots button on the website, you should have an option called "Open app".

If you're using ReVanced/Vanced, and because Google has made poor design choices about handling links, you can go into the app settings to tell it to handle every YouTube URL. This should works when clicking a YouTube link from Sync. However, for links that you changed manually from Piped to YouTube, Chrome doesn't provide a way to open in app. Firefox can do that, but if it's not your default browser, this option requires you to change browser every time you want to see a video inside the app.

The best option is to use "Open Link With..." which provide an easy way to open apps from your browser. It's as simple as sharing the website to "Open Link With..." and select your app eg. YouTube/ReVanced/Vanced/etc. You can also set it as your browser which should do that automatically but I haven't tested it so YMMV.

I hope this was useful!

[–] Spzi@lemm.ee 3 points 1 year ago (1 children)

Oh, sorry! In the last 30 or so posts, I always included both. This time, for some reason, I thought no one would care. Thanks for your feedback, I'll make sure to include both in the future.

[–] amanaftermidnight@lemmy.world 17 points 1 year ago* (last edited 1 year ago)

IMHO video links should always be YouTube first, then third party mirror second, in the body or comments. Here are the reasons:

  1. YouTube is the primary source. Always prioritize the primary source when you're sourcing.
  2. Think of the URL being shared as the primary key to a database record. Lemmy can use it to detect dupes. With YouTube URL there's like 3 forms, discounting timestamps. With piped links the possibility expanded to 3+(number of piped instances on the web). This massively increases the likelihood of accidental reposts.
  3. Give people a choice of whether they want to watch on the original site, or on a piped instance of their own choosing. When you link to a piped instance link you rob people of that choice.
  4. A piped instance can choke or go offline at any time. YouTube is close to 100% uptime.
  5. Userscript wise, it's trivial to map YouTube URLs to a user's piped instance of choice, but it's so much more tedious to detect and map every single piped instance.
[–] BeanCounter@sh.itjust.works 3 points 1 year ago* (last edited 1 year ago) (2 children)
const pipedPath = window.location.pathname;

const ytUrl = "https://youtube.com" + pipedPath;

window.location.replace(ytUrl)

Use Tampermonkey. Although I don't understand what makes Piped annoying. It's just different front-end that isn't bombarded with JS.

[–] BorgDrone@lemmy.one 6 points 1 year ago (1 children)

It’s annoying because it’s slow. It’s constantly buffering where the real youtube just instantly starst playing.

[–] 30p87@feddit.de 4 points 1 year ago

Then our experiences differ, though I must agree some instances (which you can switch in the settings - maybe there's one closer to you or less stressed), including the official ones, have a meager uptime (compared to YouTube, ofc). Sometimes they're offline for a few minutes and very rarely they're broken for longer due to YouTube changing something.

[–] Chreutz@lemmy.world 5 points 1 year ago

It doesn't always work. And I think it might be related to where you are in the world. For the first month when piped links started showing up, it straight up never started playing for me. It works alright now.