/pidgin/main: f4d13f392134: Fix audible links on Yahoo.

unknown at rock.pidgin.im unknown at rock.pidgin.im
Sun Jan 27 19:31:13 EST 2013


Changeset: f4d13f392134f422eeb504c79e6562986045ac2e
Author:	 Catalin Salgau <unknown>
Date:	 2013-01-27 17:56 -0500
Branch:	 release-2.x.y
URL: http://hg.pidgin.im/pidgin/main/rev/f4d13f392134

Description:

Fix audible links on Yahoo.

Fixes #14870.

diffstat:

 libpurple/protocols/yahoo/libymsg.c |  4 ++--
 libpurple/protocols/yahoo/libymsg.h |  2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diffs (33 lines):

diff --git a/libpurple/protocols/yahoo/libymsg.c b/libpurple/protocols/yahoo/libymsg.c
--- a/libpurple/protocols/yahoo/libymsg.c
+++ b/libpurple/protocols/yahoo/libymsg.c
@@ -2953,7 +2953,7 @@ static void yahoo_process_audible(Purple
 			msg = pair->value;
 			break;
 		case 232:
-			/* weird number (md5 hash?), like 8ebab9094156135f5dcbaccbeee662a5c5fd1420 */
+			/* SHA-1 hash of audible SWF file (eg: 4e8691499d9c0fb8374478ff9720f4a9ea4a4915) */
 			break;
 		}
 
@@ -2974,7 +2974,7 @@ static void yahoo_process_audible(Purple
 		return;
 	}
 	if (id) {
-		/* "http://us.dl1.yimg.com/download.yahoo.com/dl/aud/"+locale+"/"+id+".swf" */
+		/* "http://l.yimg.com/pu/dl/aud/"+locale+"/"+id+".swf" */
 		char **audible_locale = g_strsplit(id, ".", 0);
 		char *buf = g_strdup_printf(_("[ Audible %s/%s/%s.swf ] %s"), YAHOO_AUDIBLE_URL, audible_locale[1], id, msg);
 		g_strfreev(audible_locale);
diff --git a/libpurple/protocols/yahoo/libymsg.h b/libpurple/protocols/yahoo/libymsg.h
--- a/libpurple/protocols/yahoo/libymsg.h
+++ b/libpurple/protocols/yahoo/libymsg.h
@@ -61,7 +61,7 @@
 #define YAHOOJP_ROOMLIST_URL "http://insider.msg.yahoo.co.jp/ycontent/"
 #define YAHOOJP_ROOMLIST_LOCALE "ja"
 
-#define YAHOO_AUDIBLE_URL "http://us.dl1.yimg.com/download.yahoo.com/dl/aud"
+#define YAHOO_AUDIBLE_URL "http://l.yimg.com/pu/dl/aud"
 
 #define WEBMESSENGER_URL "http://login.yahoo.com/config/login?.src=pg"
 



More information about the Commits mailing list