dcrypt

package
v0.0.0-...-251d348 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Unlicense Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const ApiUrl = "http://service.jdownloader.org/dlcrypt/service.php?srcType=dlc&destType=pylo&data=%s"

Variables

View Source
var (
	RcKey = []byte("cb99b5cbc24db398")
	RcIV  = []byte("9bc24cb995cb8db3")
)

Functions

This section is empty.

Types

type Base64String

type Base64String string

func (*Base64String) UnmarshalXML

func (b *Base64String) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

func (*Base64String) UnmarshalXMLAttr

func (b *Base64String) UnmarshalXMLAttr(attr xml.Attr) error

type DLC

type DLC struct {
	XMLName xml.Name `xml:"dlc"`
	Header  struct {
		Generator struct {
			App     Base64String `xml:"app"`
			Version Base64String `xml:"version"`
			URL     Base64String `xml:"url"`
		} `xml:"generator"`
		Tribute       Base64String `xml:"tribute"`
		Dlcxmlversion Base64String `xml:"dlcxmlversion"`
	} `xml:"header"`
	Content struct {
		Package []struct {
			Category Base64String `xml:"category,attr"`
			Comment  Base64String `xml:"comment,attr"`
			Name     Base64String `xml:"name,attr"`
			File     []struct {
				URL      Base64String `xml:"url"`
				Filename Base64String `xml:"filename"`
				Size     Base64String `xml:"size"`
			} `xml:"file"`
		} `xml:"package"`
	} `xml:"content"`
}

func DecryptDLC

func DecryptDLC(data []byte) (DLC, error)

func (*DLC) GeneratedBy

func (d *DLC) GeneratedBy() string
func (d *DLC) HasLinks() bool

func (*DLC) TotalSize

func (d *DLC) TotalSize() string

type Plugin

type Plugin struct{}

func New

func New() *Plugin

func (*Plugin) Commands

func (p *Plugin) Commands() []gotgbot.BotCommand

func (*Plugin) Handlers

func (p *Plugin) Handlers(*gotgbot.User) []plugin.Handler

func (*Plugin) Name

func (*Plugin) Name() string

func (*Plugin) OnFile

func (p *Plugin) OnFile(b *gotgbot.Bot, c plugin.GobotContext) error

Jump to

Keyboard shortcuts

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