Streams

get_stream(req)[source]
Return type

Asynciterator[Stream]

load_stream(data)[source]
Return type

Optional[Stream]

register_stream(stream)[source]

Built-in Streams

class Generic(*args, **kwargs)[source]

Bases: grobber.anime.models.stream.Stream

PRIORITY = 0
coroutine can_handle(req)[source]

Check whether this Stream class can handle the request.

This operation shouldn’t actually perform any expensive checks. It should merely check whether it’s even possible for this Stream to extract anything from the request.

The default implementation compares the Stream.HOST variable to the host of the request url (www. is stripped!).

Parameters

req (Request) – request to stream to check

Return type

bool

Returns

true if this Stream may be able to extract something from the size, false otherwise

external

Indicate whether the links provided by this Stream may be used externally.

Return type

bool

Returns

true of the links may be used externally, false otherwise

Return type

List[Request]

Return type

List[str]

poster
Return type

Optional[str]

class Mp4Upload(*args, **kwargs)[source]

Bases: grobber.anime.models.stream.Stream

ATTRS = ('player_data',)
EXPIRE_TIME = 3600
HOST = 'mp4upload.com'
external

Indicate whether the links provided by this Stream may be used externally.

Return type

bool

Returns

true of the links may be used externally, false otherwise

Return type

List[str]

player_data
Return type

PlayerData

poster
Return type

Optional[str]

class Openload(*args, **kwargs)[source]

Bases: grobber.anime.models.stream.Stream

ATTRS = ('player_data',)
HOST = ['openload.co', 'oload.tv', 'oload.download']
PRIORITY = 5
external

Indicate whether the links provided by this Stream may be used externally.

Return type

bool

Returns

true of the links may be used externally, false otherwise

Return type

List[str]

player_data
Return type

Dict[str, Any]

poster
Return type

Optional[str]

class Streamango(*args, **kwargs)[source]

Bases: grobber.anime.models.stream.Stream

HOST = 'streamango.com'
external

Indicate whether the links provided by this Stream may be used externally.

Return type

bool

Returns

true of the links may be used externally, false otherwise

Return type

List[str]

poster
Return type

Optional[str]

class Vidstreaming(*args, **kwargs)[source]

Bases: grobber.anime.models.stream.Stream

ATTRS = ('player_data',)
HOST = 'vidstreaming.io'
external

Indicate whether the links provided by this Stream may be used externally.

Return type

bool

Returns

true of the links may be used externally, false otherwise

Return type

List[str]

player_data
Return type

dict

poster
Return type

Optional[str]