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

Version Path
video_chat_get-0.3.6.10 lib/video_chat_get.rb
video_chat_get-0.3.6.9 lib/video_chat_get.rb
video_chat_get-0.3.6.8 lib/video_chat_get.rb
video_chat_get-0.3.6.5 lib/video_chat_get.rb
video_chat_get-0.3.6.4 lib/video_chat_get.rb
video_chat_get-0.3.6.3 lib/video_chat_get.rb
video_chat_get-0.3.6.2 lib/video_chat_get.rb
video_chat_get-0.3.6.1 lib/video_chat_get.rb
video_chat_get-0.2.6.1 lib/video_chat_get.rb
video_chat_get-0.2.6 lib/video_chat_get.rb
video_chat_get-0.2.3 lib/video_chat_get.rb
video_chat_get-0.2.2 lib/video_chat_get.rb
video_chat_get-0.2.1 lib/video_chat_get.rb