From 8ecca5841f890c176ea8420303053e0fa958a3ba Mon Sep 17 00:00:00 2001 From: Liu Lantao Date: Sat, 24 Dec 2016 21:15:23 +0800 Subject: [PATCH] Update fetch-samplecode.sh --- _META/fetch-samplecode.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_META/fetch-samplecode.sh b/_META/fetch-samplecode.sh index 0277a805..d74d9de3 100755 --- a/_META/fetch-samplecode.sh +++ b/_META/fetch-samplecode.sh @@ -8,7 +8,7 @@ CSV.open('samplecode.csv', 'wb') do |csv| JSON.parse(File.open('search_result.json').read)['results'].keep_if {|v| v['type'] == 'sample_code' }.sort_by {|x| x['title']}.each{|sc| - csv << [sc['url'].match('\/samplecode\/([^\/]*)\/')[1], 'https://developer.apple.com' + sc['url'] + 'Introduction/Intro.html'] + csv << [sc['url'].match('\/samplecode\/([^\/]*)\/')[1], 'https://developer.apple.com' + sc['url'] + 'Introduction/Intro.html', sc['title']] } end "