[banshee/stable-1.6] [YouTube] Fix video playback
- From: Alexander Kojevnikov <alexk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/stable-1.6] [YouTube] Fix video playback
- Date: Tue, 11 May 2010 01:49:16 +0000 (UTC)
commit 4d5da8548fbf4d2d8d3fcb27996f6fad0d29139b
Author: Kevin Duffus <KevinDuffus gmail com>
Date: Tue May 11 11:45:11 2010 +1000
[YouTube] Fix video playback
Update the regex used to grab the t-param from YouTube pages
Signed-off-by: Alexander Kojevnikov <alexander kojevnikov com>
.../Banshee.YouTube.Gui/YouTubeTile.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Extensions/Banshee.YouTube/Banshee.YouTube.Gui/YouTubeTile.cs b/src/Extensions/Banshee.YouTube/Banshee.YouTube.Gui/YouTubeTile.cs
index 24419cb..707c1d0 100644
--- a/src/Extensions/Banshee.YouTube/Banshee.YouTube.Gui/YouTubeTile.cs
+++ b/src/Extensions/Banshee.YouTube/Banshee.YouTube.Gui/YouTubeTile.cs
@@ -146,7 +146,7 @@ namespace Banshee.YouTube.Gui
return null;
}
- Regex regex = new Regex ("'SWF_ARGS'.*\"t\": \"([^\"]+)\"");
+ Regex regex = new Regex ("swfHTML = .*&t=([^&]+)&");
Match match = regex.Match (watch_page_contents);
if (!match.Success) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]