Skip to content

Commit

Permalink
oops; if there is no HD H.264 version, the 'Download H.264' and 'Open…
Browse files Browse the repository at this point in the history
… Fullscreen in QT Player' functions now use the normal HD versions even when the HD pref is checked

Signed-off-by: Jonathan 'Wolf' Rentzsch <jwr.git@redshed.net>
  • Loading branch information
Simone Manganelli authored and rentzsch committed Jul 7, 2009
1 parent 0236542 commit ed240c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Plugin/Plugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,7 @@ - (IBAction)downloadH264:(id)sender
NSString* video_hash = [ self _videoHash ];

NSString *src;
if ([[CTFUserDefaultsController standardUserDefaults] boolForKey:sUseYouTubeHDH264DefaultsKey]) {
if ([[CTFUserDefaultsController standardUserDefaults] boolForKey:sUseYouTubeHDH264DefaultsKey] && [self _hasHDH264Version]) {
src = [ NSString stringWithFormat: @"http://www.youtube.com/get_video?fmt=22&video_id=%@&t=%@",
video_id, video_hash ];
} else {
Expand Down Expand Up @@ -1257,7 +1257,7 @@ - (IBAction)openFullscreenInQTPlayer:(id)sender;
NSString* video_hash = [ self _videoHash ];

NSString *src;
if ([[CTFUserDefaultsController standardUserDefaults] boolForKey:sUseYouTubeHDH264DefaultsKey]) {
if ([[CTFUserDefaultsController standardUserDefaults] boolForKey:sUseYouTubeHDH264DefaultsKey] && [self _hasHDH264Version]) {
src = [ NSString stringWithFormat: @"http://www.youtube.com/get_video?fmt=22&video_id=%@&t=%@",
video_id, video_hash ];
} else {
Expand Down

0 comments on commit ed240c7

Please sign in to comment.