[totem/gnome-2-28] Bug 600369 — YouTube plugin does not work
- From: Philip Withnall <pwithnall src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [totem/gnome-2-28] Bug 600369 — YouTube plugin does not work
- Date: Tue, 3 Nov 2009 12:15:31 +0000 (UTC)
commit 676bae9c41739d8a60c34d09edf2660522852e6c
Author: Philip Withnall <philip tecnocode co uk>
Date: Tue Nov 3 12:15:16 2009 +0000
Bug 600369 â?? YouTube plugin does not work
Fixed the regex to correctly extract the t param for YouTube video
queries again. Closes: bgo#600369
src/plugins/youtube/totem-youtube.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/youtube/totem-youtube.c b/src/plugins/youtube/totem-youtube.c
index d2ff64b..9836749 100644
--- a/src/plugins/youtube/totem-youtube.c
+++ b/src/plugins/youtube/totem-youtube.c
@@ -726,7 +726,7 @@ query_progress_cb (GDataEntry *entry, guint entry_key, guint entry_count, QueryD
g_assert (self->cancellable[data->tree_view] != NULL);
/* Add the entry to the tree view */
- title = gdata_youtube_video_get_title (GDATA_YOUTUBE_VIDEO (entry));
+ title = gdata_entry_get_title (entry);
id = gdata_youtube_video_get_video_id (GDATA_YOUTUBE_VIDEO (entry));
gtk_list_store_append (self->list_store[data->tree_view], &iter);
@@ -851,7 +851,7 @@ search_button_clicked_cb (GtkButton *button, TotemYouTubePlugin *self)
/* If this is the first query, compile the regex used to resolve the t param. Doing this here rather than when
* activating the plugin means we don't waste cycles if the plugin's never used. It also means we don't waste
* cycles repeatedly creating new regexes for each video whose t param we resolve. */
- self->regex = g_regex_new ("swfArgs.*\"t\": \"([^\"]+)\"", G_REGEX_OPTIMIZE, 0, NULL);
+ self->regex = g_regex_new ("'SWF_ARGS'.*\"t\": \"([^\"]+)\"", G_REGEX_OPTIMIZE, 0, NULL);
g_assert (self->regex != NULL);
/* Set up the GData service (needed for the tree views' queries) */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]