[totem/gnome-2-28] Fake QT user-agent for trailers.apple.com



commit b808cbc5acb5dfa0b052fb55d56a4eb6a1f42c5a
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date:   Sat Mar 27 21:20:43 2010 +0000

    Fake QT user-agent for trailers.apple.com
    
    trailers.apple.com will serve a html file instead of the movie
    we were asking for unless we pretend to be quicktime, iotw same
    issue as with movies.apple.com.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=614127

 src/totem-object.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index 165a437..c6172cc 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -1713,7 +1713,8 @@ totem_action_set_mrl_with_warning (Totem *totem,
 			autoload_sub = totem_uri_get_subtitle_uri (mrl);
 
 		/* HACK: Bad bad Apple */
-		if (g_str_has_prefix (mrl, "http://movies.apple.com";) != FALSE)
+		if (g_str_has_prefix (mrl, "http://movies.apple.com";)
+				|| g_str_has_prefix (mrl, "http://trailers.apple.com";))
 			bacon_video_widget_set_user_agent (totem->bvw, "Quicktime/7.2.0");
 		else
 			bacon_video_widget_set_user_agent (totem->bvw, NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]