leedo / noembed

oEmbed gateway service with additional non-oEmbed sources
http://www.noembed.com
481 stars 90 forks source link

Width restriction not applied to Apple Trailers #27

Open audreyt opened 11 years ago

audreyt commented 11 years ago

e.g. http://trailers.apple.com/trailers/independent/rampart displays at 800px wide regardless of width settings...

Is there a convenient way to reach into the html and tweak the tag's dimensions?

leedo commented 11 years ago

The template for the Apple trailers can be found here: https://github.com/leedo/noembed/blob/master/share/templates/AppleTrailers.html

It is indeed hardcoded to 800px. I think the best solution would be to look for maxwidth/height params in AppleTrailers.pm and pass the proper dimensions to the template in the render call.