Closed (fixed)
Project:
Media entity embeddable video
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Nov 2015 at 12:58 UTC
Updated:
15 Dec 2015 at 19:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mikgreen commentedComment #3
mikgreen commentedComment #4
slashrsm commentedCan we assume this thumbnail file exists for every video on YouTube? I remember searching docs and looking for any information about that, but I wasn't able to find anything useful.
Comment #5
mikgreen commentedIt's undocumented. So we can't rely on it fully.
But seems to work on all videos. From latest to very first video no YouTube.
There's no good alternative. Using official API v3 requires getting an API key from YouTube. Which I believe is too much of a hastle for most module users.
Comment #6
slashrsm commentedI'd say we implement API v3.0 support and fall back to this thumbnail file if it is not configured properly.
Comment #7
slashrsm commentedComment #8
phenaproximaFixed by https://github.com/drupal-media/media_entity_embeddable_video/pull/18.
Comment #9
luksakI tested your patch with and without an YouTube api key. Works perfectly. I only face one issue: First I used a Browser api key instead of a Server api key. When fetching a thumbnail, I got a WSOD. Shouldn't we catch that? This is the response from YouTube:
Except for that RTBC.
Comment #10
slashrsm commentedComment #11
phenaproximaCorrected: https://github.com/phenaproxima/media_entity_embeddable_video/commit/d47...
Comment #12
slashrsm commentedMerged. Thanks!
Comment #13
luksakThe fallback image is not working. I created a PR for this: https://github.com/drupal-media/media_entity_embeddable_video/pull/19
Comment #15
phenaproximaThat PR has been merged as well, so this is well and truly fixed.