Sha256: cef2d4a4caeac33d6b8bed150044f088be9c890d561a888a2661b0c512523e68
Contents?: true
Size: 1.53 KB
Versions: 13
Compression:
Stored size: 1.53 KB
Contents
require 'video_chat_get/version' Dir[File.expand_path('../site_list',__FILE__)<<'/*.rb'].each do |file| require file end """ ・argument @@OPENREC_IDENTFIER: @@MILDOM_IDENTFIER: @@WHOWATCH_IDENTFIER: @@YOUTUBELIVE_IDENTFIER: @@TWITCASTING_IDENTFIER: ・method url_route(): """ module VideoChatGet @@OPENREC_IDENTFIER="https://www.openrec.tv/live/" @@MILDOM_IDENTFIER="https://www.mildom.com/playback/" @@WHOWATCH_IDENTFIER="https://whowatch.tv/archives/" @@YOUTUBELIVE_IDENTFIER="https://www.youtube.com/watch?" @@TWITCASTING_IDENTFIER="https://twitcasting.tv/" def self.url_route(url) if url.include?(@@OPENREC_IDENTFIER) then puts "identifier:openrec videourl:#{url}" obj=Openrec_analyze.new(url) return obj.chat_scrape end if url.include?(@@MILDOM_IDENTFIER) then puts "identifier:mildom videourl:#{url}" obj=Mildom_analyze.new(url) return obj.chat_scrape end if url.include?(@@WHOWATCH_IDENTFIER) then puts "identifier:whowatch videourl:#{url}" obj=Whowatch_analyze.new(url) return obj.chat_scrape end if url.include?(@@YOUTUBELIVE_IDENTFIER) then puts "identifier:youtube videourl:#{url}" obj=Youtubelive_analyze.new(url) return obj.chat_scrape end if url.include?(@@TWITCASTING_IDENTFIER) then puts "identifier:twitcasting videourl:#{url}" obj=Twitcasting_analyze.new(url) return obj.chat_scrape end return "url error" end end
Version data entries
13 entries across 13 versions & 1 rubygems