Extended GetComparableWarezString
This commit is contained in:
12
wareztb.go
12
wareztb.go
@@ -19,12 +19,12 @@ func GetComparableWarezString(s string) (string, error) {
|
||||
return "", err
|
||||
}
|
||||
|
||||
return utils.RemoveDoubledStrings(
|
||||
strings.ToLower(
|
||||
fmt.Sprintf("%s.%d", title, year),
|
||||
),
|
||||
".",
|
||||
), nil
|
||||
result := fmt.Sprintf("%s.%d", title, year)
|
||||
result = strings.ToLower(result)
|
||||
result = utils.RemoveDoubledStrings(result, ".")
|
||||
result = utils.RemoveLeadingStrings(result, ".")
|
||||
|
||||
return result, nil
|
||||
}
|
||||
|
||||
// GetTitleAndYearFromWarezString tries to get the title and year from a string in a warez context
|
||||
|
Reference in New Issue
Block a user