utils

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DivCeil added in v0.0.2

func DivCeil(numerator, denominator int) (quotient int)

DivCeil get next to quotient

func Divmod added in v0.0.2

func Divmod(numerator, denominator int) (quotient, remainder int)

Divmod get divisisor and module

func GetEpisodeVersion

func GetEpisodeVersion(episodes models.Episodes, sN int, eN int, c, r, q string) models.Episodes

GetEpisodeVersion Get list of episodes filtering by season, episode, codec, resolution and quality

func GetEpisodeVersionSince

func GetEpisodeVersionSince(episodes models.Episodes, sN int, c, r, q string) models.Episodes

GetEpisodeVersionSince Get list of episodes filtering since season with codec, resolution and quality

func GetEpisodesMap

func GetEpisodesMap(episodes models.Episodes) map[int]*models.TorrentInfo

GetEpisodesMap get episodes map by season and episode

func GetMaxSeedsFromList added in v0.1.0

func GetMaxSeedsFromList(episodes models.Episodes) models.Episodes

GetMaxSeedsFromList get maximun amount of seeds episodes from a list

func GetMinimunSizeFromList added in v0.0.3

func GetMinimunSizeFromList(episodes models.Episodes) models.Episodes

GetMinimunSizeFromList get minimum size episodes from a list

func GetSEN

func GetSEN(season, episode int) int

GetSEN get sen, SEN is and ID made by the season and the episode

func ParseTorrent

func ParseTorrent(filename string) (*models.TorrentInfo, error)

ParseTorrent breaks up the given filename in models.TorrentInfo

func PrintTable added in v0.2.1

func PrintTable(header []string, values [][]string) *tablewriter.Table

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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