Feature: Deluge download client (#12)

* chore: add go-libdeluge package

* feat: implement deluge v1 and v2 clients

* feat(web): handle add and update deluge clients

* chore: temp remove releaseinfo parser
This commit is contained in:
Ludvig Lundgren 2021-08-20 22:08:32 +02:00 committed by GitHub
parent eb5b040eeb
commit 0c4aaa29b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 493 additions and 122 deletions

View file

@ -82,6 +82,15 @@ func Parse(filename string) (*ReleaseInfo, error) {
setField(tor, pattern.name, matches[matchIdx][1], matches[matchIdx][2])
}
if startIndex > endIndex {
// FIXME temp solution to not panic if the are the reverse
tmpStart := startIndex
tmpEnd := endIndex
startIndex = tmpEnd
endIndex = tmpStart
}
// Start process for title
//fmt.Println(" title: <internal>")
raw := strings.Split(filename[startIndex:endIndex], "(")[0]