Blob Blame History Raw
From d1d78ed685a860f0172faf197e3aef30cb73e104 Mon Sep 17 00:00:00 2001
From: Andreas Piesk <a.piesk@gmx.net>
Date: Fri, 28 Sep 2012 16:01:04 +0200
Subject: [PATCH] YouTube: Fix the new 403 issue (bug 1665)

---
 src/gpodder/youtube.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gpodder/youtube.py b/src/gpodder/youtube.py
index 562e562..29a52ea 100644
--- a/src/gpodder/youtube.py
+++ b/src/gpodder/youtube.py
@@ -89,7 +89,7 @@ def get_real_download_url(url, preferred_fmt_id=None):
                 fmt_url_map = urllib.unquote(r4.group(1))
                 for fmt_url_encoded in fmt_url_map.split(','):
                     video_info = parse_qs(fmt_url_encoded)
-                    yield int(video_info['itag'][0]), video_info['url'][0]
+                    yield int(video_info['itag'][0]), video_info['url'][0] + "&signature=" + video_info['sig'][0]
             else:
                 error_info = parse_qs(page)
                 error_message = util.remove_html_tags(error_info['reason'][0])
-- 
1.6.5.GIT