reddit

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: OSL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Verbose bool

Functions

This section is empty.

Types

type MPD

type MPD struct {
	Period struct {
		AdaptationSet []struct {
			Representation []struct {
				BaseURL string
				Height  int `xml:"height,attr"`
			}
		}
	}
}

type Post

type Post []struct {
	Data struct {
		Children []json.RawMessage
	}
}

func NewPost

func NewPost(id string) (*Post, error)

func (Post) T3 added in v1.30.0

func (p Post) T3() (*T3, error)

type T3 added in v1.30.0

type T3 struct {
	Data struct {
		Media struct {
			Reddit_Video struct {
				DASH_URL string
			}
		}
		URL string
	}
}

func (T3) MPD added in v1.30.0

func (t T3) MPD() (*MPD, error)

Jump to

Keyboard shortcuts

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