Ok i figured out the youtube thumbnail thing and why some are not showing. Not every video I was adding had a Max Res Version.
Perhaps adding into the code some checks to see if an image exists because if a video does not have a Max Res Thumb then the media gallery gets broken.
The three image options that I see that seem to be the best are:
maxresdefault.jpg
then
hqdefault.jpg
then
0.jpg
sddefault.jpg did not work on every youtube video either. But 0.jpg always exists as far as I can tell. 0.jpg looks to be a better res anyways than sddefault.
|