Sha256: 2fd292cc356c7b68be18d046a7288d0fd9222837dd6d8b98364b95ab1f71550b

Contents?: true

Size: 312 Bytes

Versions: 4

Compression:

Stored size: 312 Bytes

Contents

class IdsPlease
  class Youtube < IdsPlease::BaseParser

    MASK = /youtu\.be|youtube/i

    class << self
      private

      def parse_link(link)
        if link.path =~ /channels|user/
          link.path.split('/')[2]
        else
          link.path.split('/')[1]
        end
      end
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ids_please-1.1.4 lib/ids_please/youtube.rb
ids_please-1.1.3 lib/ids_please/youtube.rb
ids_please-1.1.2 lib/ids_please/youtube.rb
ids_please-1.1.1 lib/ids_please/youtube.rb