config

package
v1.0.1-0...-2d42981 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RegExpVideoId    = "^html5-p[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[8|9|aA|bB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$"
	RegExpXmlDataUrl = "^return BRavFramework.register.*.setup\\(\\{dataURL:'(http?://.*.xml)'\\}\\)\\);$"
)
View Source
const (
	// XPathEpisodesOverviewPagePageItems to retrieve pages where videos are schon
	XPathEpisodesOverviewPagePageItems = "//a[@class='pageItem']/@href"

	// XPathEpisodesItems to retrieve video urls from a  page
	XPathEpisodesItems = "" /* 161-byte string literal not displayed */

	// XPathVideoPageVideoTags to find all video tags on final video page
	XPathVideoPageVideoTags = "//video/@id"

	// XPathVideoPageXmlDataTag to find the concrete element where xml url can be extracted, %s is placeholder for video id
	XPathVideoPageXmlDataTag = "//a[@id='%s']/@onclick"

	// XPathXmlSeriesTitle title of series
	XPathXmlSeriesTitle = "//avDocument/topline"

	// XPathXmlEpisodeTitle title of episode
	XPathXmlEpisodeTitle = "//avDocument/headline"

	// XPathXmlEpisodeLanguageCode language of episode
	XPathXmlEpisodeLanguageCode = "//avDocument/language"

	// XPathXmlEpisodeDescription episodes description
	XPathXmlEpisodeDescription = "//avDocument/broadcast/broadcastDescription"

	// XPathXmlAssets documents assets where video url can be found
	XPathXmlAssets = "//avDocument/assets/asset"
)

Variables

This section is empty.

Functions

func InitApp

func InitApp(socksProxyUrl string) (di.Context, error)

InitApp basic app set up

Types

This section is empty.

Jump to

Keyboard shortcuts

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