fix(releases): force capture titles AB (#668)

capture those weird titles
This commit is contained in:
varoOP 2023-01-29 20:33:37 +05:30 committed by GitHub
parent 81b7d341e7
commit ad0d482065
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -193,7 +193,6 @@ func (r *Release) ParseString(title string) {
rel := rls.ParseString(title)
r.TorrentName = title
r.Title = rel.Title
r.Source = rel.Source
r.Resolution = rel.Resolution
r.Region = rel.Region
@ -206,6 +205,10 @@ func (r *Release) ParseString(title string) {
r.Artists = rel.Artist
r.Language = rel.Language
if r.Title == "" {
r.Title = rel.Title
}
if r.Season == 0 {
r.Season = rel.Series
}