Permalink
Browse files

added another comment to clarify some code

  • Loading branch information...
1 parent 25e0219 commit 57930e905ee47cbbedb690cdfd1d1a1ae29bdba8 Simone Manganelli committed Jul 21, 2009
Showing with 5 additions and 0 deletions.
  1. +5 −0 Plugin/Plugin.m
View
@@ -756,6 +756,11 @@ - (NSString*) badgeLabelText
if( [ self _useH264Version ] && [self _hasH264Version])
return NSLocalizedString( @"H.264", @"H.264 badge text" );
else if( _fromYouTube && _videoId)
+ // we check the video ID too because if it's a flash ad on YouTube.com,
+ // we don't want to identify it as an actual YouTube video -- but if
+ // the flash object actually has a video ID parameter, it means its
+ // a bona fide YouTube video
+
return NSLocalizedString( @"YouTube", @"YouTube badge text" );
else if( _badgeText )
return _badgeText;

0 comments on commit 57930e9

Please sign in to comment.