[totem] Fake QT user-agent for trailers.apple.com



commit 8f146bf0db349f12b9528df415fa1e5c8329cb53
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 c9287ec..d7d02a1 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -1712,7 +1712,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]