FANDOM

!
21 Pages

local data = {}
 
data['nn'] = {
	['name'] = 'Niconico',
	['ico'] = true,
	['url'] = 'http://www.nicovideo.jp/watch/@mediaId@',
	['img'] = function(mediaId)
		if mediaId ~= nil and tonumber(mediaId) == nil then
			mediaId = string.sub(mediaId, 3)
			return mw.text.tag('span', { class = 'external-thumb-nn' }, 'http://tn-skr1.smilevideo.jp/smile?i=' .. mediaId .. '&dummy.jpg')
		else
			return 'File:Thumb-nn.png'
		end
	end
}
 
data['yt'] = {
	['name'] = 'YouTube',
	['ico'] = true,
	['url'] = 'https://www.youtube.com/watch?v=@mediaId@',
	['img'] = 'http://i.ytimg.com/vi/@mediaId@/default.jpg',
	['img1'] = 'http://i.ytimg.com/vi/@mediaId@/1.jpg',
	['img2'] = 'http://i.ytimg.com/vi/@mediaId@/2.jpg',
	['img3'] = 'http://i.ytimg.com/vi/@mediaId@/3.jpg',
}
 
data['vm'] = {
	['name'] = 'Vimeo',
	['url'] = 'https://vimeo.com/@mediaId@',
}
 
data['bb'] = {
	['name'] = 'bilibili',
	['ico'] = true,
	['url'] = 'http://www.bilibili.com/video/av@mediaId@',
	['img'] = 'File:Thumb-bb.png',
}
 
data['ac'] = {
	['name'] = 'AcFun',
	['url'] = 'http://www.acfun.tv/v/ac@mediaId@',
}
 
data['pp'] = {
	['name'] = 'piapro',
	['ico'] = true,
	['url'] = 'http://piapro.jp/t/@mediaId@',
}
 
data['tm'] = {
	['name'] = 'TmBox',
	['url'] = 'http://tmbox.net/pl/@mediaId@',
}
 
data['mz'] = {
	['name'] = 'muzie',
	['url'] = 'http://www.muzie.ne.jp/songs/@mediaId@',
}
 
data['sc'] = {
	['name'] = 'SoundCloud',
	['ico'] = true,
	['url'] = 'https://soundcloud.com/@mediaId@',
	['img'] = 'File:Thumb-sc.png',
 
	['urlApi'] = 'https://w.soundcloud.com/player/?url=https://api.soundcloud.com/tracks/@mediaId@',
	['urlBoth'] = function(mediaId)
		if tonumber(mediaId) == nil then
			return data['sc']['url']
		else
			return data['sc']['urlApi']
		end
	end
}
 
data['5s'] = {
	['name'] = '5sing',
	['url'] = 'http://5sing.kugou.com/@mediaId@.html',
	['img'] = 'File:Thumb-5s.png',
}
 
data['db'] = {
	['name'] = 'VocaDB',
	['ico'] = true,
	['url'] = 'http://vocadb.net/S/@mediaId@',
}
 
data['bc'] = {
	['name'] = 'Bandcamp',
	['ico'] = true,
	['url'] = function(mediaId)
		mediaId = mw.text.split(mediaId, ' ')
		return 'http://' .. mediaId[1] .. '.bandcamp.com/track/' .. mediaId[2]
	end
}
 
data['do'] = {
	['name'] = 'Douban',
	['url'] = 'http://music.douban.com/artists/player/?sid=@mediaId@',
}
 
data['-'] = {
	['img'] = 'File:Thumb-etc.png',
}
 
return data