mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
fix(release): edge case resolution parsing (#243)
This commit is contained in:
parent
2a3b5ce448
commit
8592787b8b
2 changed files with 23 additions and 2 deletions
|
@ -5,7 +5,6 @@ import (
|
|||
"context"
|
||||
"crypto/tls"
|
||||
"fmt"
|
||||
"golang.org/x/net/publicsuffix"
|
||||
"html"
|
||||
"io"
|
||||
"net/http"
|
||||
|
@ -18,6 +17,8 @@ import (
|
|||
"text/template"
|
||||
"time"
|
||||
|
||||
"golang.org/x/net/publicsuffix"
|
||||
|
||||
"github.com/autobrr/autobrr/pkg/wildcard"
|
||||
|
||||
"github.com/anacrolix/torrent/metainfo"
|
||||
|
@ -191,7 +192,7 @@ func (r *Release) extractEpisode() error {
|
|||
}
|
||||
|
||||
func (r *Release) extractResolution() error {
|
||||
v, err := findLast(r.TorrentName, `\b(?i)(([0-9]{3,4}p|i))\b`)
|
||||
v, err := findLast(r.TorrentName, `\b(?i)[0-9]{3,4}(?:p|i)\b`)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue