OSDN Git Service

photostream解析に失敗することがあるのを修正
authorsyo68k <syo68k@users.sourceforge.jp>
Fri, 30 Apr 2010 04:40:19 +0000 (04:40 +0000)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sat, 18 Feb 2012 14:11:50 +0000 (23:11 +0900)
git-svn-id: http://svn.sourceforge.jp/svnroot/tween/trunk@223 e39ad16e-3079-482e-bb30-4b4d378143b6

Tween/Tween.vb

index 45f05b6..972e0f8 100644 (file)
@@ -8140,7 +8140,7 @@ RETRY:
                 If mc.Success Then
                     Dim src As String = ""
                     If (New HttpVarious).GetData(url.Key, Nothing, src, 5000) Then
-                        Dim _mc As MatchCollection = Regex.Matches(src, mc.Result("http://farm[0-9]+\.static\.flickr\.com/[0-9]+/.+\.([a-zA-Z]+)"))
+                        Dim _mc As MatchCollection = Regex.Matches(src, mc.Result("http://farm[0-9]+\.static\.flickr\.com/[0-9]+/.+?\.([a-zA-Z]+)"))
                         '二つ以上キャプチャした場合先頭の一つだけ 一つだけの場合はユーザーアイコンしか取れなかった
                         If _mc.Count > 1 Then
                             Dim _img As Image = http.GetImage(_mc.Item(1).Value, url.Key)