Skip to content

Commit c34feb0

Browse files
Simone Manganellirentzsch
Simone Manganelli
authored andcommitted
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 <[email protected]>
1 parent c1c717d commit c34feb0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Plugin/Plugin.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -745,11 +745,11 @@ - (void) _loadInvisibleContentForWindow: (NSNotification*) notification
745745

746746
- (NSString*) badgeLabelText
747747
{
748-
if( [ self _useHDH264Version ] )
748+
if( [ self _useHDH264Version ] && [self _hasHDH264Version])
749749
return NSLocalizedString( @"HD H.264", @"HD H.264 badge text" );
750-
if( [ self _useH264Version ] )
750+
if( [ self _useH264Version ] && [self _hasH264Version])
751751
return NSLocalizedString( @"H.264", @"H.264 badge text" );
752-
else if( [ self _hasH264Version ] )
752+
else if( _fromYouTube && _videoId)
753753
return NSLocalizedString( @"YouTube", @"YouTube badge text" );
754754
else if( _badgeText )
755755
return _badgeText;

0 commit comments

Comments
 (0)