From c34feb0d3ad76dc18e73a13f9203d94e355975bc Mon Sep 17 00:00:00 2001 From: Simone Manganelli Date: Wed, 22 Jul 2009 06:00:24 +0800 Subject: [PATCH] if the 'load H.264' setting was checked, YouTube views started off with a badge of 'Flash' instead of 'YouTube' when checking for H.264 variants Signed-off-by: Jonathan 'Wolf' Rentzsch --- Plugin/Plugin.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Plugin/Plugin.m b/Plugin/Plugin.m index 986c4111..e9075c79 100755 --- a/Plugin/Plugin.m +++ b/Plugin/Plugin.m @@ -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;