#metabrainz

/

      • reosarevok
        Yup
      • 2017-08-04 21636, 2017

      • x3YTjJV6asPhskrZ
        okay
      • 2017-08-04 21646, 2017

      • samj1912
        any idea how it is derived?
      • 2017-08-04 21650, 2017

      • samj1912
        and why is it legacy?
      • 2017-08-04 21601, 2017

      • reosarevok
        Originally all types were the same level IIRC
      • 2017-08-04 21622, 2017

      • x3YTjJV6asPhskrZ
        but then they were placed in hierarchies
      • 2017-08-04 21626, 2017

      • reosarevok
        So when we made the two-level structure, we did this instead of taking the primary type for this
      • 2017-08-04 21641, 2017

      • reosarevok
        Because if not things like "compilation" would only show as "album" for legacy use
      • 2017-08-04 21655, 2017

      • reosarevok
        I'm not fully sure how it's derived but I can find it
      • 2017-08-04 21612, 2017

      • CallerNo6
        grr. I've seen the logic somewhere, but can't remember where.
      • 2017-08-04 21612, 2017

      • x3YTjJV6asPhskrZ
        if primary and secondary exists, type is picked on secondary but if only the primary exists type is picked from primary?
      • 2017-08-04 21626, 2017

      • reosarevok
        In any case, if Picard is using the old type field, that should change for 2.0
      • 2017-08-04 21628, 2017

      • x3YTjJV6asPhskrZ
        or are they unrelated
      • 2017-08-04 21642, 2017

      • reosarevok
        x3YTjJV6asPhskrZ: that'd be my guess, but you can have many secondary ones
      • 2017-08-04 21652, 2017

      • x3YTjJV6asPhskrZ
        ay ay aye
      • 2017-08-04 21601, 2017

      • x3YTjJV6asPhskrZ
        okay which one is more modern?
      • 2017-08-04 21620, 2017

      • x3YTjJV6asPhskrZ
        primary/secondary or just type?
      • 2017-08-04 21650, 2017

      • CallerNo6
        'type' is old, exists in the ws for backward compatibility
      • 2017-08-04 21633, 2017

      • x3YTjJV6asPhskrZ
        okay
      • 2017-08-04 21641, 2017

      • x3YTjJV6asPhskrZ
        so now we're using primary
      • 2017-08-04 21602, 2017

      • x3YTjJV6asPhskrZ
        and secondary
      • 2017-08-04 21631, 2017

      • x3YTjJV6asPhskrZ
        okay now to develop a weighting algorithm that uses secondaries if available, otherwise falling back on primary
      • 2017-08-04 21648, 2017

      • CallerNo6
        for reference, here's what 'type' looked like: https://wiki.musicbrainz.org/index.php?title=Rele…
      • 2017-08-04 21610, 2017

      • ruaok
        Quesito, bitmap: did moolah arrive?
      • 2017-08-04 21620, 2017

      • x3YTjJV6asPhskrZ
        okay so ill do a check in this order: secondary type, and if not available, primary type, and if not available, type
      • 2017-08-04 21652, 2017

      • reosarevok
      • 2017-08-04 21652, 2017

      • x3YTjJV6asPhskrZ
        and if the secondary types are available, sum the available scores and divide them by the number of secondary types that are there
      • 2017-08-04 21657, 2017

      • reosarevok
        Finally
      • 2017-08-04 21612, 2017

      • reosarevok
        Sorry it took so long to find
      • 2017-08-04 21619, 2017

      • CatQuest
        [12:42] * reosarevok was checking but there's no edit search by tag-on-entity
      • 2017-08-04 21619, 2017

      • CatQuest
        [12:42] <reosarevok> (maybe there should be!)
      • 2017-08-04 21619, 2017

      • CatQuest would vote for that
      • 2017-08-04 21620, 2017

      • reosarevok goes watch some football, back later
      • 2017-08-04 21633, 2017

      • x3YTjJV6asPhskrZ
        okay what im a looking at?
      • 2017-08-04 21654, 2017

      • samj1912
        basically how the type variable is determined
      • 2017-08-04 21609, 2017

      • samj1912
        if the primary type is album it has a fallback order
      • 2017-08-04 21619, 2017

      • samj1912
        else it uses primary-type
      • 2017-08-04 21626, 2017

      • samj1912
        else it uses the first secondary type
      • 2017-08-04 21603, 2017

      • x3YTjJV6asPhskrZ
        okay
      • 2017-08-04 21616, 2017

      • x3YTjJV6asPhskrZ
        so ill use type as a last resort
      • 2017-08-04 21628, 2017

      • x3YTjJV6asPhskrZ
        can i get a release that has multiple secondary types?
      • 2017-08-04 21644, 2017

      • x3YTjJV6asPhskrZ
        and that uses the modern primary/secondary type system?
      • 2017-08-04 21627, 2017

      • reosarevok
        Every release uses that system, this is just calculated for serving in the web service
      • 2017-08-04 21653, 2017

      • x3YTjJV6asPhskrZ
        okay
      • 2017-08-04 21622, 2017

      • x3YTjJV6asPhskrZ
        but im seeing here that every release is using the type system
      • 2017-08-04 21632, 2017

      • x3YTjJV6asPhskrZ
        when serving through the web
      • 2017-08-04 21648, 2017

      • reosarevok
        Every release should have both
      • 2017-08-04 21604, 2017

      • reosarevok
        type is theoretically only to be used for backwards compatibility, ignore it
      • 2017-08-04 21605, 2017

      • x3YTjJV6asPhskrZ
        okay how do i get the primary/secondary then?
      • 2017-08-04 21623, 2017

      • x3YTjJV6asPhskrZ
        ooh wait never mind
      • 2017-08-04 21657, 2017

      • x3YTjJV6asPhskrZ
        so no matter what i fetch, primary-type and type will be available?
      • 2017-08-04 21609, 2017

      • reosarevok goes for real - hopes his crap team doesn't concede too many before he arrives
      • 2017-08-04 21616, 2017

      • reosarevok
        Dunno what it shows if primary is empty
      • 2017-08-04 21631, 2017

      • reosarevok
        But if there's a primary type set, it'll be displayed. Some stuff has no types at all, because they haven't been set
      • 2017-08-04 21607, 2017

      • reosarevok
        https://musicbrainz.org/ws/2/release-group/402e9e… just shows nothing, it seems, neither type nor primary
      • 2017-08-04 21610, 2017

      • reosarevok disappears
      • 2017-08-04 21649, 2017

      • CallerNo6 wonders how much longer he can resist learning "just enough" perl
      • 2017-08-04 21638, 2017

      • x3YTjJV6asPhskrZ
        okay so ill go in the order of availability, secondary, then primary, then type, then if all else fails, set the score to 0
      • 2017-08-04 21611, 2017

      • CallerNo6
        if there's no primary/secondary, then there will be not 'type'
      • 2017-08-04 21641, 2017

      • CallerNo6
        er, "no 'type' "
      • 2017-08-04 21649, 2017

      • x3YTjJV6asPhskrZ
        okay
      • 2017-08-04 21604, 2017

      • x3YTjJV6asPhskrZ
        so i dont need the type check at all right?
      • 2017-08-04 21623, 2017

      • x3YTjJV6asPhskrZ
        okay if only the primary type is available, do you want me to set it to the score of the primary type? or leave it with the default # something to do with other?)
      • 2017-08-04 21623, 2017

      • x3YTjJV6asPhskrZ
        guys?
      • 2017-08-04 21609, 2017

      • x3YTjJV6asPhskrZ
        samj1912?
      • 2017-08-04 21654, 2017

      • reosarevok
        Actually, fuck. I have meat in the oven. Guess no game today.
      • 2017-08-04 21609, 2017

      • reosarevok
        At least I remembered before leaving...
      • 2017-08-04 21609, 2017

      • x3YTjJV6asPhskrZ
        okay ur back
      • 2017-08-04 21610, 2017

      • reosarevok
        You don't need the type check at all
      • 2017-08-04 21617, 2017

      • x3YTjJV6asPhskrZ
        yeah
      • 2017-08-04 21643, 2017

      • x3YTjJV6asPhskrZ
        if there is only a primary type, should i leave the default algo? or just set the score to the primary type?
      • 2017-08-04 21644, 2017

      • reosarevok
        If only primary type is available then use that - that means it's just an album/EP/single with no other categorisation
      • 2017-08-04 21657, 2017

      • x3YTjJV6asPhskrZ
        okay
      • 2017-08-04 21614, 2017

      • x3YTjJV6asPhskrZ
        well i think the default algo draws the settings from other but im not sure
      • 2017-08-04 21628, 2017

      • reosarevok doesn't know Picard's code, just saying what I'd expect :)
      • 2017-08-04 21638, 2017

      • x3YTjJV6asPhskrZ
        hehe
      • 2017-08-04 21640, 2017

      • reosarevok
        If it has both a primary and many secondary types, it's a bit trickier
      • 2017-08-04 21650, 2017

      • x3YTjJV6asPhskrZ
        i already worked out that issue
      • 2017-08-04 21658, 2017

      • reosarevok
        I mean, I'd expect a soundtrack + compilation to show both looking for soundtracks and looking for compilations
      • 2017-08-04 21612, 2017

      • x3YTjJV6asPhskrZ
        wait huh?
      • 2017-08-04 21615, 2017

      • reosarevok
        But at the same time, not to show at all if you have one of the two set to 0
      • 2017-08-04 21643, 2017

      • x3YTjJV6asPhskrZ
        if the primary type was album and the secondary was compilation
      • 2017-08-04 21646, 2017

      • reosarevok
        I think actually my first check would be "does this match any of the types set to 0? if so, discard"
      • 2017-08-04 21658, 2017

      • reosarevok
        Secondary can be many types, so you can have Album + Compilation + Soundtrack
      • 2017-08-04 21610, 2017

      • x3YTjJV6asPhskrZ
        yeah hold on a sec
      • 2017-08-04 21629, 2017

      • x3YTjJV6asPhskrZ
        if the primary type was album and the secondary was alot of other stuff, and you set album to 0, wouldnt you care about the other stuff?
      • 2017-08-04 21614, 2017

      • reosarevok
        I guess it depends on how you understand album. Album is not supposed to mean the same as studio album, but I guess some people might try to set album to 0 to say "no studio albums"
      • 2017-08-04 21629, 2017

      • x3YTjJV6asPhskrZ
        yeah
      • 2017-08-04 21609, 2017

      • x3YTjJV6asPhskrZ
        right now i dont include the primary type at all in the calculations if secondaries are available
      • 2017-08-04 21612, 2017

      • x3YTjJV6asPhskrZ
        but i guess i have to
      • 2017-08-04 21634, 2017

      • reosarevok
        That might be fair, in most cases. Most secondaries usually apply only to albums anyway
      • 2017-08-04 21641, 2017

      • reosarevok
        (main exception probably "remix")
      • 2017-08-04 21606, 2017

      • x3YTjJV6asPhskrZ
        screw it, im incorporating the primary into the algo
      • 2017-08-04 21638, 2017

      • x3YTjJV6asPhskrZ
        but if you disable albums, and enable compilations for example, any compilation found will always be 0.5
      • 2017-08-04 21645, 2017

      • arbenina_ joined the channel
      • 2017-08-04 21659, 2017

      • x3YTjJV6asPhskrZ
        okay can i get a release with alot of types?
      • 2017-08-04 21659, 2017

      • x3YTjJV6asPhskrZ
        hey samj1912
      • 2017-08-04 21606, 2017

      • x3YTjJV6asPhskrZ
        im almost done
      • 2017-08-04 21615, 2017

      • x3YTjJV6asPhskrZ
        i just need your opinion on something
      • 2017-08-04 21657, 2017

      • ohrstrom has quit
      • 2017-08-04 21639, 2017

      • CallerNo6
        reosarevok, so should there be a "studio" secondary, so that the concept can be expressed in a way other than 'album + null'?
      • 2017-08-04 21651, 2017

      • reosarevok
        Some people have asked for that. I'm not sure
      • 2017-08-04 21601, 2017

      • reosarevok
        Isn't that just "the absence of 'live'"?
      • 2017-08-04 21649, 2017

      • CallerNo6
        well, there's a difference between [none] and null
      • 2017-08-04 21638, 2017

      • CallerNo6
        er, I mean, between [no barcode] and null, for instance. isn't it the same situation?
      • 2017-08-04 21611, 2017

      • x3YTjJV6asPhskrZ
        hey guys, if there is no type do you want me to set the score to that of other or just 0?
      • 2017-08-04 21621, 2017

      • reosarevok
        Possibly. It's just that I can't honestly expect editors to set "Studio" to 90% of the stuff by hand
      • 2017-08-04 21629, 2017

      • CallerNo6
        fair point
      • 2017-08-04 21631, 2017

      • reosarevok
        (even just to all the stuff they newly add)
      • 2017-08-04 21648, 2017

      • x3YTjJV6asPhskrZ
        guys?
      • 2017-08-04 21601, 2017

      • reosarevok
        x3YTjJV6asPhskrZ: if it's no type at all it should probably ignore this algo completely, but dunno
      • 2017-08-04 21617, 2017

      • x3YTjJV6asPhskrZ
        okay, ill set it to 0
      • 2017-08-04 21621, 2017

      • x3YTjJV6asPhskrZ
        and one last thing
      • 2017-08-04 21640, 2017

      • CallerNo6
        then picard could derive "studio album" from "album + null" and give that as an explicit option maybe?
      • 2017-08-04 21600, 2017

      • x3YTjJV6asPhskrZ
        if any of the matching types are set to 0, should i discard or factor the 0 into the algo?
      • 2017-08-04 21614, 2017

      • reosarevok
        CallerNo6: possibly?
      • 2017-08-04 21634, 2017

      • CallerNo6 doesn't know why he's bugging reo with this question
      • 2017-08-04 21649, 2017

      • reosarevok
        x3YTjJV6asPhskrZ: not sure tbh. *I* would discard, but this might be something to ask from the Picard devs (or if you submit a PR, in the PR)
      • 2017-08-04 21610, 2017

      • x3YTjJV6asPhskrZ
        ill add it to the PR
      • 2017-08-04 21617, 2017

      • x3YTjJV6asPhskrZ
        how do i create a PR anyway?
      • 2017-08-04 21622, 2017

      • x3YTjJV6asPhskrZ
        it is my first time xD
      • 2017-08-04 21652, 2017

      • reosarevok isn't sure how the Picard team does, so I guess that's a question for samj1912
      • 2017-08-04 21656, 2017

      • reosarevok
        (or zas)
      • 2017-08-04 21621, 2017

      • samj1912
        fork teh main repo
      • 2017-08-04 21630, 2017

      • samj1912
        and push to a branch on your repo
      • 2017-08-04 21633, 2017

      • samj1912
        then make a PR
      • 2017-08-04 21641, 2017

      • x3YTjJV6asPhskrZ
        okay
      • 2017-08-04 21652, 2017

      • samj1912
      • 2017-08-04 21657, 2017

      • x3YTjJV6asPhskrZ
        ill do it for both stable and dev okay?
      • 2017-08-04 21609, 2017

      • samj1912
        (y)
      • 2017-08-04 21617, 2017

      • x3YTjJV6asPhskrZ
        hmm?
      • 2017-08-04 21628, 2017

      • x3YTjJV6asPhskrZ
        i shouldnt?
      • 2017-08-04 21630, 2017

      • x3YTjJV6asPhskrZ
        samj1912, which version should i push to?
      • 2017-08-04 21656, 2017

      • samj1912
        master
      • 2017-08-04 21604, 2017

      • x3YTjJV6asPhskrZ
        okay
      • 2017-08-04 21630, 2017

      • x3YTjJV6asPhskrZ
        samj1912, one final thing. if a found type is set to 0, should the whole thing be set to 0 and discarded or should that 0 be run through the algorithm?
      • 2017-08-04 21604, 2017

      • samj1912
        0 and run through
      • 2017-08-04 21616, 2017

      • x3YTjJV6asPhskrZ
        okay
      • 2017-08-04 21650, 2017

      • x3YTjJV6asPhskrZ
        and if no type is found, use the other type or set to zero?
      • 2017-08-04 21617, 2017

      • x3YTjJV6asPhskrZ
        samj1912, ?
      • 2017-08-04 21637, 2017

      • samj1912
        Other
      • 2017-08-04 21643, 2017

      • x3YTjJV6asPhskrZ
        okay
      • 2017-08-04 21649, 2017

      • samj1912
        Whatever value that has
      • 2017-08-04 21655, 2017

      • x3YTjJV6asPhskrZ
        yeah
      • 2017-08-04 21659, 2017

      • samj1912
        Otherwise set it to 50
      • 2017-08-04 21606, 2017

      • x3YTjJV6asPhskrZ
        yeah :)
      • 2017-08-04 21608, 2017

      • x3YTjJV6asPhskrZ
        im about ready to push now
      • 2017-08-04 21623, 2017

      • x3YTjJV6asPhskrZ
        i used the pull request message as the commit message. is that okay or should i change it?
      • 2017-08-04 21621, 2017

      • x3YTjJV6asPhskrZ
        never mind ill fix it
      • 2017-08-04 21650, 2017

      • cjnolet_
        DO we have a double spacing bot in ther enow?