wareztb

package module
v0.0.0-...-6351ae8 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

README

Warez-Toolbox

The Warez-Toolbox offers various functions that can be useful when dealing with digital movies or series. Basically, it serves to extract information from file or folder names and to transform them according to common conventions.

Disclaimer: The development of this module was for recreational and educational purposes only. I am not responsible at any time for the illegal distribution of copyrighted material. Please respect the rights and laws that apply to you. Support your favorite artists.

Usage

import (
	"git.0x0001f346.de/andreas/wareztb"
)

wareztb.GetComparableWarezString("Nobody.2021.German.DTS.DL.1080p.BluRay.x265-HDSource.mkv") // "nobody.2021"
wareztb.GetComparableWarezString("Breaking Bad (2008)")                                      // "breaking.bad.2008"

wareztb.GetTitleAndYearFromWarezString("Terminator.1984.REMASTERED.German.DTS.DL.1080p.BluRay.x265-UNFIrED.mkv") // "Terminator" 1984 nil
wareztb.GetTitleAndYearFromWarezString("Better Call Saul (2015)")                                                // "Better.Call.Saul" 2015 nil

wareztb.SanitizeStringForWarezUsage("Inside WikiLeaks - Die fünfte Gewalt (2013)") // "Inside.WikiLeaks.Die.fuenfte.Gewalt.2013"
wareztb.SanitizeStringForWarezUsage("In den Straßen der Bronx (1993)")             // "In.den.Strassen.der.Bronx.1993"

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetComparableWarezString

func GetComparableWarezString(s string) (string, error)

GetComparableWarezString tries to make a file or folder name comparable in a warez context

func GetTitleAndYearFromWarezString

func GetTitleAndYearFromWarezString(s string) (string, int64, error)

GetTitleAndYearFromWarezString tries to get the title and year from a string in a warez context

func SanitizeStringForWarezUsage

func SanitizeStringForWarezUsage(s string) string

SanitizeStringForWarezUsage sanitizes s for usage in a warez context ("John Wick: Kapitel 4 (2023)" --> "John.Wick.Kapitel.4.2023")

Types

This section is empty.

Jump to

Keyboard shortcuts

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