vimeo

package
v1.53.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2022 License: OSL-3.0 Imports: 6 Imported by: 2

README

Vimeo

Android client

Images

https://stackoverflow.com/questions/1361149

Parse URL

We have to write our own URL parser, since the current ones dont work in all cases. This URL fails with first parser:

GET /api/oembed.json?url=https://vimeo.com/477957994?unlisted_hash=2282452868
Host: vimeo.com

and second parser:

GET /videos?links=https://vimeo.com/477957994?unlisted_hash=2282452868 HTTP/1.1
Host: api.vimeo.com
Authorization: JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2NDQ1MzIzMj...

Why does this exist?

March 12 2022

I use it myself:

https://vimeo.com/66531465

Also this:

https://github.com/ytdl-org/youtube-dl/issues/30622

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogLevel format.LogLevel

Functions

This section is empty.

Types

type Clip added in v1.46.7

type Clip struct {
	ID           int
	UnlistedHash string
}

func NewClip added in v1.46.7

func NewClip(address string) (*Clip, error)

type Download added in v1.46.7

type Download struct {
	Width      int
	Height     int
	Quality    string
	Size_Short string
	Link       string
}

func (Download) Format added in v1.46.7

func (d Download) Format(f fmt.State, verb rune)

type Height added in v1.49.8

type Height struct {
	*Video
	Target int
}

func (Height) Less added in v1.49.8

func (h Height) Less(i, j int) bool

type JsonWeb added in v1.46.7

type JsonWeb struct {
	Token string
}

func NewJsonWeb added in v1.46.7

func NewJsonWeb() (*JsonWeb, error)

func (JsonWeb) Video added in v1.46.7

func (w JsonWeb) Video(clip *Clip) (*Video, error)

type Video

type Video struct {
	Name string
	User struct {
		Name string
	}
	Duration     int64
	Release_Time string
	Pictures     struct {
		Base_Link string
	}
	Download []Download
}

func (Video) Format added in v1.46.7

func (v Video) Format(f fmt.State, verb rune)

func (Video) Len added in v1.49.8

func (v Video) Len() int

func (Video) Swap added in v1.49.8

func (v Video) Swap(i, j int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL