lol

miro: Fix parsing of youtube feeds.

Youtube feeds now don't append a "sig" query string argument anymore, so
all those feeds would fail without this patch. For the latter, a pull
request already exists on upstream at pculture/miro#428, so I guess we
can drop our patch upon release of the next new upstream bugfix release.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>

aszlig 65fcb8d5 28229d8e

+17
+2
pkgs/applications/video/miro/default.nix
··· 22 22 patches = [ ./gconf.patch ]; 23 23 24 24 postPatch = '' 25 + patch -p1 -d .. < "${./youtube-feeds.patch}" 26 + 25 27 sed -i -e 's/\$(shell which python)/python/' Makefile 26 28 sed -i -e 's|/usr/bin/||' -e 's|/usr||' \ 27 29 -e 's/BUILD_TIME[^,]*/BUILD_TIME=0/' setup.py
+15
pkgs/applications/video/miro/youtube-feeds.patch
··· 1 + diff --git a/lib/flashscraper.py b/lib/flashscraper.py 2 + index 323dbe4..d203b78 100644 3 + --- a/lib/flashscraper.py 4 + +++ b/lib/flashscraper.py 5 + @@ -134,9 +134,7 @@ def _youtube_callback_step2(info, video_id, callback): 6 + # strip url= from url=xxxxxx, strip trailer. Strip duplicate params. 7 + for fmt, stream_map_data in zip(fmt_list, stream_map): 8 + stream_map = cgi.parse_qs(stream_map_data) 9 + - url_base = stream_map['url'][0] 10 + - sig_part = '&signature=' + stream_map['sig'][0] 11 + - fmt_url_map[fmt] = url_base + sig_part 12 + + fmt_url_map[fmt] = stream_map['url'][0] 13 + 14 + title = params.get("title", ["No title"])[0] 15 + try: