vimeo

package
v1.49.7 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: OSL-3.0 Imports: 9 Imported by: 2

README

Vimeo

Android client

https://github.com/httptoolkit/frida-android-unpinning

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 Check added in v1.49.7

type Check struct {
	Request struct {
		Files struct {
			Progressive []Progressive
		}
	}
}

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)

func (Clip) Check added in v1.49.7

func (c Clip) Check(password string) (*Check, error)

type Download added in v1.46.7

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

func (Download) Format added in v1.46.7

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

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 Progressive added in v1.49.7

type Progressive struct {
	Width  int
	Height int
	FPS    int
	URL    string
}

func (Progressive) Format added in v1.49.7

func (p Progressive) Format(f fmt.State, verb rune)

type Video

type Video struct {
	Duration     int64
	Release_Time string
	Name         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)

Jump to

Keyboard shortcuts

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