Plugin

Archived
Forum
(read-only)

Antenna

ExpressionEngine 1.x, ExpressionEngine 2, ExpressionEngine 3, ExpressionEngine 4

Back to this add-on's main page
View Other Add-ons From Vector Media Group

     

Getting a strange closing parentheses for Youtube videos

Bug Report

soopafly
soopafly

Like the title says, we’re getting a strange closing parentheses “)” after each Youtube video (see attached screenshot).  Vimeo videos seem fine however. I combed through the template and nothing seems out of the ordinary. Wondering if there’s something strange going on with Youtube? We’re running EE 2.7.3 and Antenna 1.2.5

Here is the relevant code block for our videos:

{exp:antenna url='{video_url}' max_width="1080" cache_minutes="120" wmode="transparent|opaque|window"}
    {if embed_code}
        {embed_code}
    {if
:else}
        
<p>Oopsno video to display here.</p>
    
{/if}
    
<header>
    <
h1 class="headline" itemprop="name">{title}</h1>
    <
div class="videodetails">
        <
h2>Title: <em itemprop="description">{video_title}</em> <span>Author{video_author}</span></h2>
    </
div>{!-- #videodetails --}
    
<div class="byline">
        <
time datetime="{entry_date format='%Y-%m-%d'}" title="{entry_date format='%F %d, %Y'}">{entry_date format='%F %d, %Y'}</time><a href="{current_url}#disqus_thread" class="comments" title="Comments" data-disqus-identifier="oursite_{entry_id}">Comments</a>
        
{exp:low_variables:parse var='lv_author' preparse:article_author_id="{author_id}" preparse:article_author="{author}"}
        
<div class="social">
            <
p>Share this</p>
            
{lv_sharethis}
        
</div>
    </
div>
    <
meta itemprop="thumbnail" content="{video_mediumres}" />
    </
header>
{/exp:antenna} 
soopafly
# 1
soopafly

Looks like I’m not alone.  I did a search on anyone using the Assets plugin, and it looks like all their websites have the closing parentheses appended just after their videos as well.

See here:
http://www.tokyoblade.com/
http://www.chewvalleytrees.co.uk/index.php/guides/article/fitting-trees-into-your-car
http://www.rockoutschool.com/news

Matt Weinberg
# 2
Developer
Matt Weinberg

Thanks for the email. I haven’t received a bug report about this before, and Antenna and Assets is a very widely used combination, so I don’t think this is happening universally.

What version of Assets are you using? And can you look at the minimum amount of template code necessary to recreate the issue? I think we need to remove the actual HTML markup so it’s just whatever EE tags reflect the issue.

soopafly
# 3
soopafly

Thanks Matt, we’re on Assets 2.2.2.  I’ll see if i can create a new template with minimum code

soopafly
# 4
soopafly

Ok, so I stripped down the template to it’s very bare minimum, so the only thing that is being outputted is the Youtube iframe.  See below:

<iframe width="1080" height="608" src="http://www.youtube.com/embed/JLFDOT9sOpY?feature=oembed" frameborder="0" allowfullscreen></iframe>) 

The closing parentheses is still being appended just after the </iframe>

Here is everything that’s in my template:

{exp:channel:entries
    channel
="videos"
    
disable="categories|category_fields|member_data|pagination|trackbacks"
    
dynamic="on"
    
require_entry="yes"
    
limit="1"
}

    {exp
:antenna url='{video_url}' max_width="1080" cache_minutes="120" wmode="transparent|opaque|window"}
        {if embed_code}
            {embed_code}
        {if
:else}
            
<p>Oopsno video to display here.</p>
        
{/if}            
    {
/exp:antenna}

{
/exp:channel:entries} 
Matt Weinberg
# 5
Developer
Matt Weinberg

Thanks! Do you mind emailing me (S)FTP where I can take a look? matt [at] vectormediagroup [dot] com.

soopafly
# 6
soopafly

Looks like it’s Youtube’s fault!!! You will find tons of people complaining about this: https://www.google.com/search?q=parentheses+youtube+embed

...and http://code.google.com/p/gdata-issues/issues/detail?id=6098

Also, our dev site randomly fixed itself, while production still has the parentheses. I guess it’s just a waiting game now.

Thanks for the quick replies, great add-on!!

Matt Weinberg
# 7
Developer
Matt Weinberg

Glad you got it figured out! I’m going to close this; let me know if you run into any other issues.