[ Home ] [ wiz / dep / hob / lounge / jp / meta / games / music ] [ all ] [  Rules ] [  FAQ ] [  Search /  History ] [  Textboard ] [  Wiki ]

/meta/ - Meta

Suggestions and Feedback

Password (For file deletion.)

  [Go to bottom]   [Catalog]   [Return]   [Archive]

File: 1655510623874.jpg (127.26 KB, 978x768, 163:128, 1552173936911.jpg) ImgOps iqdb

f3466 No.62306

1. you know how images have the metadata?
>File (hide): 1419366981856.png (70.72 KB, 300x100, 3:1, wizzy2.png) ImgOps iqdb
why not youtube videos. can give some indication as to wtf the video is without having to click it. for example:
>Youtube (hide): https://youtube.com/YGEJKHGJEQRGH (10:53, 1920x1080, 16:9, How to embed a youtube video)

2. why not also add (hide) feature. currently you have to hide the entire post?

3. we should also be able to spoiler a youtube embed

4bde3 No.62311

it'd involve reaching out to youtube (and the other places wizchon supports embedding from), which exposes you to a bunch of problems from how the internet is currently structured. if youtube doesn't respond do you simply permit a post without youtube metadata, or do you add it to a queue for later retrieval? the post could be deleted or the server could blow up in the meantime, so what sounds simple at first would add a degree of complexity to implement robustly

f3466 No.62312

ok so you're saying the metadata cant just be obtained locally as with images. you need to communicate with youtube, either via their api or something like https://github.com/yt-dlp/yt-dlp#modifying-metadata and that could potentially fail or take longer than it normally takes to make a post. youtube might even be down entirely. and this makes it tricky

i dont know php so i can't really talk about how hard it would be. but the rest seems trivial, spoilering and (hide) options for youtube embeds

4bde3 No.62317

File: 1655753843396.png (264.77 KB, 500x500, 1:1, ok.png) ImgOps iqdb

yes, that's my understanding (i could be completely wrong) the alternative is to embed every video so you can see the title, but that will make pages with tens or hundreds of embeds super slow. we can do this ourselves by going to options -> user js at the top right of the page and adding something like this (modified from https://wizchan.org/main.js:907):

$('div.video-container a').each(function() {
  var id = $(this.parentNode).data('video');

    '<iframe style="float:left;margin:10px 20px" type="text/html" ' +
    'width="360" height="270" src="//www.youtube.com/embed/' + id +
    '?autoplay=0&html5=1" allowfullscreen frameborder="0"/>'

you could do something similar for hiding embeds, but to add spoilers would need a change on the php side like you say

[Go to top] [Catalog] [Return][Post a Reply]
Delete Post [ ]
[ Home ] [ wiz / dep / hob / lounge / jp / meta / games / music ] [ all ] [  Rules ] [  FAQ ] [  Search /  History ] [  Textboard ] [  Wiki ]