Skip to content

Commit

Permalink
if the 'load H.264' setting was checked, YouTube views started off wi…
Browse files Browse the repository at this point in the history
…th a badge of 'Flash' instead of 'YouTube' when checking for H.264 variants

Signed-off-by: Jonathan 'Wolf' Rentzsch <[email protected]>
  • Loading branch information
Simone Manganelli authored and rentzsch committed Jul 21, 2009
1 parent c1c717d commit c34feb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Plugin/Plugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -745,11 +745,11 @@ - (void) _loadInvisibleContentForWindow: (NSNotification*) notification

- (NSString*) badgeLabelText
{
if( [ self _useHDH264Version ] )
if( [ self _useHDH264Version ] && [self _hasHDH264Version])
return NSLocalizedString( @"HD H.264", @"HD H.264 badge text" );
if( [ self _useH264Version ] )
if( [ self _useH264Version ] && [self _hasH264Version])
return NSLocalizedString( @"H.264", @"H.264 badge text" );
else if( [ self _hasH264Version ] )
else if( _fromYouTube && _videoId)
return NSLocalizedString( @"YouTube", @"YouTube badge text" );
else if( _badgeText )
return _badgeText;
Expand Down

0 comments on commit c34feb0

Please sign in to comment.