moistari / rls Goto Github PK
View Code? Open in Web Editor NEWrelease parser
License: MIT License
release parser
License: MIT License
panic: runtime error: slice bounds out of range [42:7]
goroutine 69 [running]:
golang.org/x/text/transform.String({0x82c548, 0xc000079470}, {0xc0015f2310, 0x7})
/go/pkg/mod/golang.org/x/[email protected]/transform/transform.go:650 +0xbe5
github.com/moistari/rls.MustNormalize(...)
/go/pkg/mod/github.com/moistari/[email protected]/rls.go:1013
main.getFormattedTitle({0x9, {0x0, 0x0}, {0xc0015f2290, 0xd}, {0xc0015f2310, 0x7}, {0x0, 0x0}, {0x0, ...}, ...})
/app/main.go:256 +0xc6
main.processReleasesLoop(0xc000407080?, {{0x0, 0x0}, {0xc00062e498, 0x11}, 0x1f90, {0xc0002ff9fc, 0x4}, {0xc0002ffa00, 0x8}, ...})
/app/main.go:146 +0x745
created by main.(*clientmap).getEntries
/app/main.go:106 +0x345
Currently HDR/DV etc are parsed into Codecs and it would make more sense for at least my use case to have it separate in its own field like HDR
.
Example use case:
autobrr parses a release and the filters check for eg Match HDR
. If it matches, good - but if not the rejection will have both the actual video codec and the hdr in the rejection message like hdr not matching. wanted: [HDR] got: [DV, x265]
.
This is in the case of using the Match HDR filter in autobrr. It has the reverse as well, Except HDR to skip certain types or all HDR variants.
It's a minor thing but would be a nice improvement.
==================
WARNING: DATA RACE
Write at 0x00c000149010 by goroutine 27:
runtime.slicecopy()
C:/Program Files/Go/src/runtime/slice.go:307 +0x0
github.com/moistari/rls.Collapser.Transform()
C:/Users/egg/go/pkg/mod/github.com/moistari/[email protected]/rls.go:1072 +0x244
github.com/moistari/rls.(*Collapser).Transform()
:1 +0xdc
golang.org/x/text/transform.(*chain).Transform()
C:/Users/egg/go/pkg/mod/golang.org/x/[email protected]/transform/transform.go:422 +0x5e7
golang.org/x/text/transform.String()
C:/Users/egg/go/pkg/mod/golang.org/x/[email protected]/transform/transform.go:601 +0x1f8
github.com/moistari/rls.MustNormalize()
C:/Users/egg/go/pkg/mod/github.com/moistari/[email protected]/rls.go:1013 +0xe5
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.