gopla

package module
v0.0.0-...-3cbc6a7 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2019 License: BSD-3-Clause Imports: 10 Imported by: 0

README

gopla

Another ripla clone.

Usage:

-a	Grab all hashes for search query
-b	Only print best option
-l	Grab all links for search query
-s string
        Search for this show
-v	Verbose operation
-w	Generate batch output for wget downloads

Examples:

Find a show by name

$ gopla -v -s "Miodowe Lata"
Miodowe Lata
Dwaj przyjaciele: Karol Krawczyk (Cezary Żak) - motorniczy tramwaju i Tadzio Norek (Artur Barciś) - z zawodu kanalarz - mieszkają wraz ze swoimi żonami w jednej kamienic w Warszawie, w robotniczej dzielnicy Wola. Są niepoprawnymi optymistami i ciągle wierzą, że zdobędą fortunę. A tymczasem mają różne szalone pomysły, z czego wynika wiele przezabawnych perypetii. Ale ich żony: Alinka Krawczyk (Agnieszka Piliszewska/Katarzyna Żak) i Danusia Norek (Dorota Chotecka-Pazura) wiedzą najlepiej, jak należy z nimi postępować i ściągnąć na ziemię...
http://www.ipla.tv/kategoria/5007481 | null

Get hashes for show's episodes

$ gopla -s "Miodowe Lata" -a
6df54484ee2f09a22ff3a8b46c44f328
6a07992bc4f0879da697035dea1fcf3e
8909aba012e0d294d24d5d0f6fe5fd8b
8b5dcbef6f4982c8af9cc6536c5b8de6
(...)

Get information about hash

$ gopla -v 6df54484ee2f09a22ff3a8b46c44f328
Miodowe Lata - Mur czyli zemsta (00:40:33)
Alina pracowała dorywczo w firmie budowlanej. Zamiast wynagrodzenia zażyczyła sobie, aby firma wymurowała jej w kuchni blat. Karolowi oczywiście nie podoba się takie rozwiązanie. Wolałby gotówkę. Gdy przychodzi fachowiec wykonać zlecenie, Karol się z nim kłóci i obraża. Gdy z kolei u Krawczyków zjawia się Tadzio, znajduje Karola zamurowanego w sypialni. Co się stało???

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllHashes

func GetAllHashes(id string, name string) []string

GetAllHashes returns all video hashes from given search

func GetHash

func GetHash(link string) string

GetHash returns playvod| link from http link

Types

type SearchData

type SearchData struct {
	Title       string
	Description string
	ID          string
	Date        string
	Image       string
	URL         string
	Hash        string
	Type        string
}

SearchData has all information from search page

type SearchDatas

type SearchDatas []SearchData

SearchDatas ...

func FindVideo

func FindVideo(name string, category string) SearchDatas

FindVideo finds the material and returns informations about it

type VideoData

type VideoData struct {
	Title       string
	Description string
	Thumbnails  []string
	Duration    string
	Hash        string
	Videos      VideoStreams
}

VideoData has all information about video page

func GetVideo

func GetVideo(hash string) VideoData

GetVideo returns VideoStream object with basic link informations

type VideoDatas

type VideoDatas []VideoData

VideoDatas ..

type VideoStream

type VideoStream struct {
	URL     string
	Bitrate string
	Format  string
	Size    string
	Quality string
}

VideoStream has actual video file data

type VideoStreams

type VideoStreams []VideoStream

VideoStreams ..

func (VideoStreams) Len

func (slice VideoStreams) Len() int

func (VideoStreams) Less

func (slice VideoStreams) Less(i, j int) bool

func (VideoStreams) Swap

func (slice VideoStreams) Swap(i, j int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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