File: tiktok.rb

package info (click to toggle)
ruby-oembed 0.18.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 356 kB
  • sloc: ruby: 1,148; makefile: 3
file content (13 lines) | stat: -rw-r--r-- 313 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
module OEmbed
  class Providers
    # Provider for tiktok.com
    # See https://developers.tiktok.com/doc/embed-videos
    TikTok = OEmbed::Provider.new(
      "https://www.tiktok.com/oembed",
      format: :json
    )
    TikTok << "https://www.tiktok.com/*/video/*"

    add_official_provider(TikTok)
  end
end