bbc

package
v1.47.7 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: OSL-3.0 Imports: 7 Imported by: 0

README

BBC

Android client

bbc.mobile.news.ww

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

Install system cert, then visit this page:

https://github.com/89z/mech/issues/15

Click this link:

https://bbc.co.uk/news/av/uk-politics-60159228

and you should see a request like this:

GET https://walter-resolver-cdn.api.bbci.co.uk/resolve?uri=https://www.bbc.co.uk/news/av/uk-politics-60159228 HTTP/2.0
accept: application/json
user-agent: BBCNews/5.19.0 (Android SDK built for x86; Android 7.0)
accept-encoding: gzip
content-length: 0

Why does this exist?

January 28 2022:

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogLevel format.LogLevel

Functions

This section is empty.

Types

type Media

type Media struct {
	Kind       string
	Type       string
	Connection []struct {
		Protocol       string
		Supplier       string
		TransferFormat string
		Href           string
	}
}

func (Media) Name added in v1.46.1

func (m Media) Name(item *NewsItem) (string, error)

func (Media) Streams added in v1.46.1

func (m Media) Streams() ([]Stream, error)

type NewsItem added in v1.46.1

type NewsItem struct {
	ShortName    string
	IstatsLabels struct {
		CPS_Asset_ID string
	}
	Relations []struct {
		PrimaryType string
		Content     struct {
			ExternalID string
		}
	}
}

func NewNewsItem added in v1.46.1

func NewNewsItem(addr string) (*NewsItem, error)

func (NewsItem) Media added in v1.46.1

func (n NewsItem) Media() (*Media, error)

type Stream added in v1.46.1

type Stream struct {
	ID         int64
	Resolution string
	Bandwidth  int64
	Codecs     string
	URI        string
}

#EXT-X-STREAM-INF

func (Stream) Information added in v1.46.1

func (s Stream) Information() ([]string, error)

func (Stream) String added in v1.46.1

func (s Stream) String() string

Jump to

Keyboard shortcuts

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