Mercurial > pidgin-twitter
diff pidgin-twitter.h @ 264:b7ac562d758c
- changed the pattern for twitter icons so that it may match to protected user's icon link too.
- when pixbuf is null, pidgin-twitter will renew icon even if new and old URLs are same.
- will fall back to default icon if pixbuf couldn't be made from retrieved data.
- code cleanup.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Thu, 04 Dec 2008 18:24:06 +0900 |
parents | 2145f975ef69 |
children | d3e2b2e58828 |
line wrap: on
line diff
--- a/pidgin-twitter.h Thu Dec 04 02:03:35 2008 +0900 +++ b/pidgin-twitter.h Thu Dec 04 18:24:06 2008 +0900 @@ -171,7 +171,7 @@ #define P_USER "^.*?(?:<a .+?>)?([-A-Za-z0-9_]+)(?:</a>)?:" #define P_CHANNEL "^(.*?(?:<a .+?>)?[-A-Za-z0-9_]+(?:</a>)?: \\r?\\n?#)([A-Za-z0-9_]+) " #define P_TAG_IDENTICA "#([-A-Za-z0-9_]+)" -#define P_IMAGE_TWITTER "<a href=\"/account/profile_image/.+?\"><img .+? id=\"profile-image\".*src=\"(http://.+)\" .+?/>" +#define P_IMAGE_TWITTER "<img .*=\"profile-(?:image|img)\".*src=\"(http://.+?)\".*/>" #define P_IMAGE_WASSR "<div class=\"image\"><a href=\".+\"><img src=\"(.+)\" width=\".+?\" /></a></div>" #define P_IMAGE_IDENTICA "<img src=\"(http://.+.identi.ca/.+)\" class=\"avatar profile\" width=\"96\" height=\"96\" alt=\"[A-Za-z0-9_]+\"/>" #define P_IMAGE_JISKO "<img src=\"(http://jisko.net/users/.+/img/avatar/thumb_side\\..+)\" alt=\"Avatar\" />"