duck7000 / MusicBrainzPHP

musicBrainz api
GNU General Public License v3.0
0 stars 0 forks source link

Artist V/A release groups? #10

Closed GeorgeFive closed 1 month ago

GeorgeFive commented 1 month ago

In titlesearchadvanced, could we get an option for v/a releases by this artist? ie,

https://musicbrainz.org/artist/f7ccd53a-234c-4800-8d1b-21b201bad1de?va=1

I think this query nails it.....

https://musicbrainz.org/ws/2/release?track_artist=f7ccd53a-234c-4800-8d1b-21b201bad1de&status=official&limit=100

That was close, but not quite right... I'm wanting to get albums that are various artist releases (ie, soundtracks), not albums where an artist features on it (ie, normal album with guest appearance on one track).

These two queries combined should cover it... is there an OR operator for type?

https://musicbrainz.org/ws/2/artist/f7ccd53a-234c-4800-8d1b-21b201bad1de?type=soundtrack&inc=releases+various-artists&limit=100 https://musicbrainz.org/ws/2/artist/f7ccd53a-234c-4800-8d1b-21b201bad1de?type=compilation&inc=releases+various-artists&limit=100

duck7000 commented 1 month ago

I have to study/think about this.

I don't have much time due a fatal medical issue in the family

GeorgeFive commented 1 month ago

Same thing I said in the other thread... take your time, no rush, I don't need this today. Real world and family stuff always takes priority!

duck7000 commented 1 month ago

Thanks! I'll take my time and get back to this as soon as i can

duck7000 commented 1 month ago

can you be more specific what you want as i don't exactly know?

you want this as extra in a existing method? if so which one

GeorgeFive commented 1 month ago

I'm looking to get all official various artist releases for a given artist. The link is down at the bottom of the band's page, so like:

https://musicbrainz.org/artist/66c662b6-6e2f-4930-8610-912e24c63ed1?va=1

I would say put it in fetchReleaseGroups and call it with a new parameter.... so like:

album (only studio albums with primarytype album) discography (only offical, EP and musicBrainz website defaults are included) all (all releasegroups) va (all various artist release groups featuring this artist)

Those two queries I posted up above would cover it, but I'm not sure how to combine it into one query....?

duck7000 commented 1 month ago

Thanks, you made it a lot more clear. I'll see what i can come up with

duck7000 commented 1 month ago

Mm i tried a million times but i'm not getting the right combination. There is a OR operator but that doesn't seem to be working either.

Maybe you can try to find a query that comes close to what you want?

GeorgeFive commented 1 month ago

I think this might cover it? I figured out the or operator....

https://musicbrainz.org/ws/2/artist/f7ccd53a-234c-4800-8d1b-21b201bad1de?type=soundtrack|compilation&inc=releases+various-artists&status=official&limit=100

duck7000 commented 1 month ago

Ah never thought that OR is used as |.. In php OR is || The spaces need to be properly encoded, i'll check that.

Thanks!

GeorgeFive commented 1 month ago

For spaces, do you mean the plus sign? That's literally a plus sign, not a space. Will check back when I get home tonight!

duck7000 commented 1 month ago
No the spaces around sign:
%20 %20

Otherwise the api call is not accepted. A browser request is different i guess

I'll try to make it but i'm also working on other issues so i might finish that first

GeorgeFive commented 1 month ago

Gotcha.... yeah, there's no rush on any of this, definitely!

duck7000 commented 1 month ago

This is also a bit of a problem

Your link does work but if i want to include it in fetchReleaseGroups my whole system doesn't work as this link is different as the one used in fetchReleaseGroups() This can happen when there needs to be more and more functions that are different from the original design.

So if i can make it work it will be in a new method in TitleClassAdvanced with a separate method in API.php for the api call I'll think about it

duck7000 commented 1 month ago

Well i made something working but the only data that is useful is this

stdClass Object
(
    [type] => Group
    [id] => f7ccd53a-234c-4800-8d1b-21b201bad1de
    [isnis] => Array
        (
            [0] => 0000000110892186
        )

    [name] => GWAR
    [area] => stdClass Object
        (
            [iso-3166-1-codes] => Array
                (
                    [0] => US
                )

            [id] => 489ce91b-6658-3307-9877-795b68554c98
            [type] => 
            [disambiguation] => 
            [sort-name] => United States
            [name] => United States
            [type-id] => 
        )

    [type-id] => e431f5f6-b5d2-343d-8b36-72607fffb74b
    [ipis] => Array
        (
        )

    [gender] => 
    [disambiguation] => 
    [life-span] => stdClass Object
        (
            [end] => 
            [begin] => 1985
            [ended] => 
        )

    [gender-id] => 
    [releases] => Array
        (
            [0] => stdClass Object
                (
                    [release-events] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [area] => stdClass Object
                                        (
                                            [type-id] => 
                                            [name] => Europe
                                            [sort-name] => Europe
                                            [disambiguation] => 
                                            [id] => 89a675c2-3e37-3518-b83c-418bad59a85a
                                            [iso-3166-1-codes] => Array
                                                (
                                                    [0] => XE
                                                )

                                            [type] => 
                                        )

                                    [date] => 1992
                                )

                        )

                    [packaging] => Jewel Case
                    [country] => XE
                    [title] => Hard’n Heavy
                    [packaging-id] => ec27701a-4a22-37f4-bfac-6616e0f9750a
                    [disambiguation] => 
                    [status-id] => 4e304316-386d-3409-af2e-78857eec5cfe
                    [quality] => normal
                    [barcode] => 4007193544904
                    [status] => Official
                    [text-representation] => stdClass Object
                        (
                            [script] => Latn
                            [language] => eng
                        )

                    [date] => 1992
                    [id] => dc522f50-d35f-4ed0-9a91-529b8a9191d2
                )

            [1] => stdClass Object
                (
                    [date] => 1994-07-01
                    [id] => f9016d56-6279-4c3e-99eb-d235ef633bf6
                    [status] => Official
                    [barcode] => 4001617768327
                    [text-representation] => stdClass Object
                        (
                            [language] => eng
                            [script] => Latn
                        )

                    [quality] => normal
                    [disambiguation] => 
                    [status-id] => 4e304316-386d-3409-af2e-78857eec5cfe
                    [title] => Ich zahl' nicht mehr! Metal, Volume 3
                    [packaging-id] => 
                    [release-events] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [area] => stdClass Object
                                        (
                                            [name] => Germany
                                            [type-id] => 
                                            [type] => 
                                            [id] => 85752fda-13c4-31a3-bee5-0e5cb1f51dad
                                            [iso-3166-1-codes] => Array
                                                (
                                                    [0] => DE
                                                )

                                            [disambiguation] => 
                                            [sort-name] => Germany
                                        )

                                    [date] => 1994-07-01
                                )

                        )

                    [packaging] => 
                    [country] => DE
                )

            [2] => stdClass Object
                (
                    [id] => 77246f00-726c-32ce-8c89-09838a159ce2
                    [date] => 1994-09-27
                    [quality] => normal
                    [text-representation] => stdClass Object
                        (
                            [language] => eng
                            [script] => Latn
                        )

                    [status] => Official
                    [barcode] => 731454024624
                    [status-id] => 4e304316-386d-3409-af2e-78857eec5cfe
                    [disambiguation] => 
                    [country] => US
                    [packaging] => Jewel Case
                    [release-events] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [date] => 1994-09-27
                                    [area] => stdClass Object
                                        (
                                            [sort-name] => United States
                                            [disambiguation] => 
                                            [iso-3166-1-codes] => Array
                                                (
                                                    [0] => US
                                                )

                                            [id] => 489ce91b-6658-3307-9877-795b68554c98
                                            [type] => 
                                            [type-id] => 
                                            [name] => United States
                                        )

                                )

                        )

                    [packaging-id] => ec27701a-4a22-37f4-bfac-6616e0f9750a
                    [title] => S.F.W.
                )

            [3] => stdClass Object
                (
                    [quality] => normal
                    [status] => Official
                    [barcode] => 
                    [text-representation] => stdClass Object
                        (
                            [language] => eng
                            [script] => Latn
                        )

                    [id] => 9fc21a18-87cf-4158-ae14-cbe4d0379588
                    [date] => 1995
                    [country] => US
                    [release-events] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [area] => stdClass Object
                                        (
                                            [type-id] => 
                                            [name] => United States
                                            [sort-name] => United States
                                            [iso-3166-1-codes] => Array
                                                (
                                                    [0] => US
                                                )

                                            [id] => 489ce91b-6658-3307-9877-795b68554c98
                                            [type] => 
                                            [disambiguation] => 
                                        )

                                    [date] => 1995
                                )

                        )

                    [packaging] => 
                    [packaging-id] => 
                    [title] => The 17 Commandments Vol. II
                    [disambiguation] => 
                    [status-id] => 4e304316-386d-3409-af2e-78857eec5cfe
                )

            [4] => stdClass Object
                (
                    [packaging-id] => ec27701a-4a22-37f4-bfac-6616e0f9750a
                    [title] => Metalmeister: A Metal Blade Compilation
                    [country] => US
                    [release-events] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [area] => stdClass Object
                                        (
                                            [name] => United States
                                            [type-id] => 
                                            [disambiguation] => 
                                            [id] => 489ce91b-6658-3307-9877-795b68554c98
                                            [iso-3166-1-codes] => Array
                                                (
                                                    [0] => US
                                                )

                                            [type] => 
                                            [sort-name] => United States
                                        )

                                    [date] => 1996-07-23
                                )

                        )

                    [packaging] => Jewel Case
                    [disambiguation] => 
                    [status-id] => 4e304316-386d-3409-af2e-78857eec5cfe
                    [barcode] => 039841411324
                    [status] => Official
                    [text-representation] => stdClass Object
                        (
                            [language] => eng
                            [script] => Latn
                        )

                    [quality] => normal
                    [id] => c064a0e3-5d09-4012-8d90-96fe5950b5b2
                    [date] => 1996-07-23
                )

            [5] => stdClass Object
                (
                    [quality] => normal
                    [status] => Official
                    [barcode] => 
                    [text-representation] => stdClass Object
                        (
                            [language] => eng
                            [script] => Latn
                        )

                    [date] => 1996
                    [id] => 22c063d4-7fe7-4b55-8743-0f1240986b12
                    [packaging] => Jewel Case
                    [release-events] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [area] => stdClass Object
                                        (
                                            [type-id] => 
                                            [name] => United States
                                            [sort-name] => United States
                                            [id] => 489ce91b-6658-3307-9877-795b68554c98
                                            [iso-3166-1-codes] => Array
                                                (
                                                    [0] => US
                                                )

                                            [type] => 
                                            [disambiguation] => 
                                        )

                                    [date] => 1996
                                )

                        )

                    [country] => US
                    [title] => Metalmeister: A Metal Blade Compilation
                    [packaging-id] => ec27701a-4a22-37f4-bfac-6616e0f9750a
                    [disambiguation] => 
                    [status-id] => 4e304316-386d-3409-af2e-78857eec5cfe
                )

            [6] => stdClass Object
                (
                    [release-events] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [date] => 1996
                                    [area] => stdClass Object
                                        (
                                            [type-id] => 
                                            [name] => United States
                                            [sort-name] => United States
                                            [type] => 
                                            [iso-3166-1-codes] => Array
                                                (
                                                    [0] => US
                                                )

                                            [id] => 489ce91b-6658-3307-9877-795b68554c98
                                            [disambiguation] => 
                                        )

                                )

                        )

                    [packaging] => 
                    [country] => US
                    [title] => Metalmeister, Volume 2
                    [packaging-id] => 
                    [status-id] => 4e304316-386d-3409-af2e-78857eec5cfe
                    [disambiguation] => 
                    [quality] => normal
                    [text-representation] => stdClass Object
                        (
                            [script] => Latn
                            [language] => eng
                        )

                    [status] => Official
                    [barcode] => 039841414028
                    [date] => 1996
                    [id] => eec4f019-c4b9-4d07-a2e4-daaf3a854fd3
                )

            [7] => stdClass Object
                (
                    [id] => 3b904451-750e-48d6-8b13-d4125a461baa
                    [date] => 1997-07-15
                    [quality] => normal
                    [text-representation] => stdClass Object
                        (
                            [language] => eng
                            [script] => Latn
                        )

                    [status] => Official
                    [barcode] => 
                    [status-id] => 4e304316-386d-3409-af2e-78857eec5cfe
                    [disambiguation] => 
                    [country] => US
                    [packaging] => 
                    [release-events] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [area] => stdClass Object
                                        (
                                            [type-id] => 
                                            [name] => United States
                                            [sort-name] => United States
                                            [disambiguation] => 
                                            [id] => 489ce91b-6658-3307-9877-795b68554c98
                                            [iso-3166-1-codes] => Array
                                                (
                                                    [0] => US
                                                )

                                            [type] => 
                                        )

                                    [date] => 1997-07-15
                                )

                        )

                    [packaging-id] => 
                    [title] => Metal Blade Records: 15th Anniversary Compilation
                )

            [8] => stdClass Object
                (
                    [packaging-id] => ec27701a-4a22-37f4-bfac-6616e0f9750a
                    [title] => Rock & Metal Factory
                    [country] => XE
                    [packaging] => Jewel Case
                    [release-events] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [date] => 1997
                                    [area] => stdClass Object
                                        (
                                            [sort-name] => Europe
                                            [disambiguation] => 
                                            [type] => 
                                            [iso-3166-1-codes] => Array
                                                (
                                                    [0] => XE
                                                )

                                            [id] => 89a675c2-3e37-3518-b83c-418bad59a85a
                                            [type-id] => 
                                            [name] => Europe
                                        )

                                )

                        )

                    [status-id] => 4e304316-386d-3409-af2e-78857eec5cfe
                    [disambiguation] => 
                    [text-representation] => stdClass Object
                        (
                            [script] => Latn
                            [language] => eng
                        )

                    [status] => Official
                    [barcode] => 0724348824424
                    [quality] => normal
                    [id] => d1fc55b5-e2d0-459a-8a00-41bca62f169d
                    [date] => 1997
                )

            [9] => stdClass Object
                (
                    [disambiguation] => 
                    [status-id] => 4e304316-386d-3409-af2e-78857eec5cfe
                    [release-events] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [area] => stdClass Object
                                        (
                                            [name] => United States
                                            [type-id] => 
                                            [type] => 
                                            [id] => 489ce91b-6658-3307-9877-795b68554c98
                                            [iso-3166-1-codes] => Array
                                                (
                                                    [0] => US
                                                )

                                            [disambiguation] => 
                                            [sort-name] => United States
                                        )

                                    [date] => 1997
                                )

                        )

                    [packaging] => Jewel Case
                    [country] => US
                    [title] => Education in Infestation
                    [packaging-id] => ec27701a-4a22-37f4-bfac-6616e0f9750a
                    [date] => 1997
                    [id] => bd4f3a25-c559-43e2-9e66-afc05d06212d
                    [quality] => normal
                    [barcode] => 
                    [status] => Official
                    [text-representation] => stdClass Object
                        (
                            [script] => Latn
                            [language] => eng
                        )

                )

            [10] => stdClass Object
                (
                    [date] => 1999-06-01
                    [id] => c767cd45-384c-4a9b-b9a1-b20be7f70a0c
                    [quality] => normal
                    [status] => Official
                    [barcode] => 751097059111
                    [text-representation] => stdClass Object
                        (
                            [script] => Latn
                            [language] => eng
                        )

                    [disambiguation] => 
                    [status-id] => 4e304316-386d-3409-af2e-78857eec5cfe
                    [release-events] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [area] => stdClass Object
                                        (
                                            [type-id] => 
                                            [name] => United States
                                            [sort-name] => United States
                                            [iso-3166-1-codes] => Array
                                                (
                                                    [0] => US
                                                )

                                            [type] => 
                                            [id] => 489ce91b-6658-3307-9877-795b68554c98
                                            [disambiguation] => 
                                        )

                                    [date] => 1999-06-01
                                )

                        )

                    [packaging] => 
                    [country] => US
                    [title] => Short Music for Short People
                    [packaging-id] => 
                )

            [11] => stdClass Object
                (
                    [status-id] => 4e304316-386d-3409-af2e-78857eec5cfe
                    [disambiguation] => 
                    [country] => US
                    [packaging] => Jewel Case
                    [release-events] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [area] => stdClass Object
                                        (
                                            [name] => United States
                                            [type-id] => 
                                            [disambiguation] => 
                                            [id] => 489ce91b-6658-3307-9877-795b68554c98
                                            [type] => 
                                            [iso-3166-1-codes] => Array
                                                (
                                                    [0] => US
                                                )

                                            [sort-name] => United States
                                        )

                                    [date] => 1999-06-01
                                )

                        )

                    [packaging-id] => ec27701a-4a22-37f4-bfac-6616e0f9750a
                    [title] => Short Music for Short People
                    [id] => 29e85760-d699-47d6-b71b-27b8933e7380
                    [date] => 1999-06-01
                    [quality] => normal
                    [text-representation] => stdClass Object
                        (
                            [script] => Latn
                            [language] => eng
                        )

                    [status] => Official
                    [barcode] => 751097059128
                )

            [12] => stdClass Object
                (
                    [status-id] => 4e304316-386d-3409-af2e-78857eec5cfe
                    [disambiguation] => 
                    [title] => Universal Soldier: The Return
                    [packaging-id] => 
                    [packaging] => 
                    [release-events] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [date] => 1999-07-13
                                    [area] => stdClass Object
                                        (
                                            [sort-name] => United States
                                            [iso-3166-1-codes] => Array
                                                (
                                                    [0] => US
                                                )

                                            [id] => 489ce91b-6658-3307-9877-795b68554c98
                                            [type] => 
                                            [disambiguation] => 
                                            [type-id] => 
                                            [name] => United States
                                        )

                                )

                        )

                    [country] => US
                    [date] => 1999-07-13
                    [id] => afd0dd9f-bee7-4e8d-8842-ebf0920f64f8
                    [text-representation] => stdClass Object
                        (
                            [script] => Latn
                            [language] => eng
                        )

                    [status] => Official
                    [barcode] => 
                    [quality] => normal
                )

            [13] => stdClass Object
                (
                    [title] => For Lucio Fulci: A Symphony of Fear
                    [packaging-id] => 
                    [release-events] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [area] => stdClass Object
                                        (
                                            [name] => United States
                                            [type-id] => 
                                            [type] => 
                                            [iso-3166-1-codes] => Array
                                                (
                                                    [0] => US
                                                )

                                            [id] => 489ce91b-6658-3307-9877-795b68554c98
                                            [disambiguation] => 
                                            [sort-name] => United States
                                        )

                                    [date] => 1999
                                )

                        )

                    [packaging] => 
                    [country] => US
                    [disambiguation] => 
                    [status-id] => 4e304316-386d-3409-af2e-78857eec5cfe
                    [status] => Official
                    [barcode] => 
                    [text-representation] => stdClass Object
                        (
                            [language] => mul
                            [script] => Latn
                        )

                    [quality] => normal
                    [date] => 1999
                    [id] => 2b5ad500-0f43-463d-a239-06e06704265f
                )

            [14] => stdClass Object
                (
                    [barcode] => 000072600016
                    [status] => Official
                    [text-representation] => stdClass Object
                        (
                            [script] => Latn
                            [language] => eng
                        )

                    [quality] => normal
                    [date] => 1999
                    [id] => ca7497ad-8a50-4ac2-abc4-9b02e30fd6fc
                    [title] => Xtreme Rock
                    [packaging-id] => ec27701a-4a22-37f4-bfac-6616e0f9750a
                    [packaging] => Jewel Case
                    [release-events] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [area] => stdClass Object
                                        (
                                            [type-id] => 
                                            [name] => United States
                                            [sort-name] => United States
                                            [id] => 489ce91b-6658-3307-9877-795b68554c98
                                            [type] => 
                                            [iso-3166-1-codes] => Array
                                                (
                                                    [0] => US
                                                )

                                            [disambiguation] => 
                                        )

                                    [date] => 1999
                                )

                        )

                    [country] => US
                    [disambiguation] => 
                    [status-id] => 4e304316-386d-3409-af2e-78857eec5cfe
                )

            [15] => stdClass Object
                (
                    [packaging] => 
                    [release-events] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [date] => 2000
                                    [area] => stdClass Object
                                        (
                                            [sort-name] => United States
                                            [id] => 489ce91b-6658-3307-9877-795b68554c98
                                            [iso-3166-1-codes] => Array
                                                (
                                                    [0] => US
                                                )

                                            [type] => 
                                            [disambiguation] => 
                                            [type-id] => 
                                            [name] => United States
                                        )

                                )

                        )

                    [country] => US
                    [title] => Doubleshot: Metal
                    [packaging-id] => 
                    [status-id] => 4e304316-386d-3409-af2e-78857eec5cfe
                    [disambiguation] => 
                    [quality] => normal
                    [text-representation] => stdClass Object
                        (
                            [language] => eng
                            [script] => Latn
                        )

                    [status] => Official
                    [barcode] => 022775642629
                    [date] => 2000
                    [id] => 074f053b-db02-4832-bef8-d4211320235e
                )

            [16] => stdClass Object
                (
                    [packaging] => 
                    [release-events] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [area] => stdClass Object
                                        (
                                            [disambiguation] => 
                                            [id] => 8a754a16-0027-3a29-b6d7-2b40ea0481ed
                                            [type] => 
                                            [iso-3166-1-codes] => Array
                                                (
                                                    [0] => GB
                                                )

                                            [sort-name] => United Kingdom
                                            [name] => United Kingdom
                                            [type-id] => 
                                        )

                                    [date] => 2000
                                )

                        )

                    [country] => GB
                    [title] => Terror Firmer
                    [packaging-id] => 
                    [disambiguation] => 
                    [status-id] => 4e304316-386d-3409-af2e-78857eec5cfe
                    [quality] => normal
                    [barcode] => 5028563264023
                    [status] => Official
                    [text-representation] => stdClass Object
                        (
                            [language] => eng
                            [script] => Latn
                        )

                    [date] => 2000
                    [id] => 1d627b57-5cd2-4303-ac6e-7c693d19fb26
                )

            [17] => stdClass Object
                (
                    [disambiguation] => 
                    [status-id] => 4e304316-386d-3409-af2e-78857eec5cfe
                    [country] => US
                    [release-events] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [area] => stdClass Object
                                        (
                                            [sort-name] => United States
                                            [disambiguation] => 
                                            [iso-3166-1-codes] => Array
                                                (
                                                    [0] => US
                                                )

                                            [type] => 
                                            [id] => 489ce91b-6658-3307-9877-795b68554c98
                                            [type-id] => 
                                            [name] => United States
                                        )

                                    [date] => 2000
                                )

                        )

                    [packaging] => 
                    [packaging-id] => 
                    [title] => Doubleshot: Metal
                    [id] => b49fb135-cc51-3968-83e2-e606fd83dbdd
                    [date] => 2000
                    [quality] => normal
                    [barcode] => 022775642629
                    [status] => Official
                    [text-representation] => stdClass Object
                        (
                            [language] => eng
                            [script] => Latn
                        )

                )

            [18] => stdClass Object
                (
                    [quality] => normal
                    [status] => Official
                    [barcode] => 653606388029
                    [text-representation] => stdClass Object
                        (
                            [language] => eng
                            [script] => Latn
                        )

                    [date] => 2001-03-06
                    [id] => 99848fe8-87ea-4d88-9df2-5d46685f9ab0
                    [packaging] => Jewel Case
                    [release-events] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [date] => 2001-03-06
                                    [area] => stdClass Object
                                        (
                                            [iso-3166-1-codes] => Array
                                                (
                                                    [0] => US
                                                )

                                            [id] => 489ce91b-6658-3307-9877-795b68554c98
                                            [type] => 
                                            [disambiguation] => 
                                            [sort-name] => United States
                                            [name] => United States
                                            [type-id] => 
                                        )

                                )

                        )

                    [country] => US
                    [title] => The Way It Should Be...
                    [packaging-id] => ec27701a-4a22-37f4-bfac-6616e0f9750a
                    [disambiguation] => 
                    [status-id] => 4e304316-386d-3409-af2e-78857eec5cfe
                )

            [19] => stdClass Object
                (
                    [text-representation] => stdClass Object
                        (
                            [language] => eng
                            [script] => Latn
                        )

                    [status] => Official
                    [barcode] => 039841440423
                    [quality] => normal
                    [date] => 2002
                    [id] => e967cd5e-63eb-4987-9422-b1c684e04d78
                    [title] => Metal Blade Records: 20th Anniversary
                    [packaging-id] => 
                    [packaging] => 
                    [release-events] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [area] => stdClass Object
                                        (
                                            [type-id] => 
                                            [name] => United States
                                            [sort-name] => United States
                                            [disambiguation] => 
                                            [iso-3166-1-codes] => Array
                                                (
                                                    [0] => US
                                                )

                                            [type] => 
                                            [id] => 489ce91b-6658-3307-9877-795b68554c98
                                        )

                                    [date] => 2002
                                )

                        )

                    [country] => US
                    [status-id] => 4e304316-386d-3409-af2e-78857eec5cfe
                    [disambiguation] => 
                )

            [20] => stdClass Object
                (
                    [id] => d4d56a20-5366-485e-8b19-6af8f59910f3
                    [date] => 2006
                    [quality] => normal
                    [text-representation] => stdClass Object
                        (
                            [language] => eng
                            [script] => Latn
                        )

                    [status] => Official
                    [barcode] => 828136003890
                    [status-id] => 4e304316-386d-3409-af2e-78857eec5cfe
                    [disambiguation] => 
                    [country] => US
                    [release-events] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [date] => 2006
                                    [area] => stdClass Object
                                        (
                                            [iso-3166-1-codes] => Array
                                                (
                                                    [0] => US
                                                )

                                            [id] => 489ce91b-6658-3307-9877-795b68554c98
                                            [type] => 
                                            [disambiguation] => 
                                            [sort-name] => United States
                                            [name] => United States
                                            [type-id] => 
                                        )

                                )

                        )

                    [packaging] => 
                    [packaging-id] => 
                    [title] => Sounds of the Underground
                )

            [21] => stdClass Object
                (
                    [id] => 1f7dfa78-431b-4022-9427-e17a84d5727e
                    [date] => 2007-09-04
                    [quality] => normal
                    [text-representation] => stdClass Object
                        (
                            [script] => Latn
                            [language] => eng
                        )

                    [barcode] => 828136008628
                    [status] => Official
                    [status-id] => 4e304316-386d-3409-af2e-78857eec5cfe
                    [disambiguation] => 
                    [country] => US
                    [packaging] => 
                    [release-events] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [area] => stdClass Object
                                        (
                                            [disambiguation] => 
                                            [iso-3166-1-codes] => Array
                                                (
                                                    [0] => US
                                                )

                                            [id] => 489ce91b-6658-3307-9877-795b68554c98
                                            [type] => 
                                            [sort-name] => United States
                                            [name] => United States
                                            [type-id] => 
                                        )

                                    [date] => 2007-09-04
                                )

                        )

                    [packaging-id] => 
                    [title] => Bam Margera Presents: Viva La Bands, Volume 2
                )

            [22] => stdClass Object
                (
                    [barcode] => 828136001520
                    [status] => Official
                    [text-representation] => stdClass Object
                        (
                            [language] => eng
                            [script] => Latn
                        )

                    [quality] => normal
                    [id] => 12585241-89bd-446a-ac6b-ff9ddb263ac6
                    [date] => 2007
                    [packaging-id] => f7101ce3-0384-39ce-9fde-fbbd0044d35f
                    [title] => Hot Topic Presents Sounds of the Underground U.S./Canadian Summer 2007 Tour
                    [country] => US
                    [release-events] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [area] => stdClass Object
                                        (
                                            [disambiguation] => 
                                            [id] => 489ce91b-6658-3307-9877-795b68554c98
                                            [type] => 
                                            [iso-3166-1-codes] => Array
                                                (
                                                    [0] => US
                                                )

                                            [sort-name] => United States
                                            [name] => United States
                                            [type-id] => 
                                        )

                                    [date] => 2007
                                )

                        )

                    [packaging] => Cardboard/Paper Sleeve
                    [disambiguation] => 
                    [status-id] => 4e304316-386d-3409-af2e-78857eec5cfe
                )

            [23] => stdClass Object
                (
                    [date] => 2014-02-07
                    [id] => cb27cf48-c376-4d24-8433-46bd51bb80e4
                    [quality] => normal
                    [barcode] => 0888430345829
                    [status] => Official
                    [text-representation] => stdClass Object
                        (
                            [language] => eng
                            [script] => Latn
                        )

                    [disambiguation] => 
                    [status-id] => 4e304316-386d-3409-af2e-78857eec5cfe
                    [release-events] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [date] => 2014-02-07
                                    [area] => stdClass Object
                                        (
                                            [name] => Australia
                                            [type-id] => 
                                            [iso-3166-1-codes] => Array
                                                (
                                                    [0] => AU
                                                )

                                            [type] => 
                                            [id] => 106e0bec-b638-3b37-b731-f53d507dc00e
                                            [disambiguation] => 
                                            [sort-name] => Australia
                                        )

                                )

                        )

                    [packaging] => 
                    [country] => AU
                    [title] => Soundwave 2014
                    [packaging-id] => 
                )

            [24] => stdClass Object
                (
                    [id] => 7ae016c4-9fc6-494f-9e54-3d86dddd2b3d
                    [date] => 
                    [text-representation] => stdClass Object
                        (
                            [script] => Latn
                            [language] => eng
                        )

                    [status] => Official
                    [barcode] => 
                    [quality] => normal
                    [status-id] => 4e304316-386d-3409-af2e-78857eec5cfe
                    [disambiguation] => 
                    [packaging-id] => 119eba76-b343-3e02-a292-f0f00644bb9b
                    [title] => Short Music for Short People
                    [country] => XW
                    [release-events] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [date] => 
                                    [area] => stdClass Object
                                        (
                                            [name] => [Worldwide]
                                            [type-id] => 
                                            [id] => 525d4e18-3d00-31b9-a58b-a146a916de8f
                                            [iso-3166-1-codes] => Array
                                                (
                                                    [0] => XW
                                                )

                                            [type] => 
                                            [disambiguation] => 
                                            [sort-name] => [Worldwide]
                                        )

                                )

                        )

                    [packaging] => None
                )

        )

    [sort-name] => GWAR
    [country] => US
    [begin-area] => stdClass Object
        (
            [name] => Richmond
            [type-id] => 
            [disambiguation] => 
            [id] => afaa40c1-2e11-4a9b-9a33-ff0603e3e312
            [type] => 
            [sort-name] => Richmond
        )

    [end-area] => 
)

So for now i have id (release ID), title (release title) and date (release date) but what other info do you want? I can add barcode? or Artist (but this is the same for all releases)

GeorgeFive commented 1 month ago

That will be perfect! I don't think I need much more than that... maybe a designation whether it's a compilation or a soundtrack? I basically just need the list of albums that match either of those two types, and I'll get the real meat of the data from title after clicking one of the albums.

duck7000 commented 1 month ago

compilation or soundtrack is not in the results as you can see, i can add status but that doesn't say much as you filter on it.

I'll leave it like this.

I'll upload it when its done

duck7000 commented 1 month ago

This is added in the latest commit

GeorgeFive commented 1 month ago

Looks good! One question, I'm not sure why this is occurring... if I check GWAR, it shows most of their releases, but it's missing a few....

artist - f7ccd53a-234c-4800-8d1b-21b201bad1de

As is, this album (and a few others) will not show up: https://musicbrainz.org/release-group/7c8894d3-3dc8-4f85-ab7f-a1bf8396189c

Ok, so I looked into that album, and it has a release status of unknown. This album does show up in MusicBrainz's official v/a albums list, but maybe the api code can't find it because we have status=official in the query. So I removed that part in api.php, and now that album shows up... but now that I removed that line, this album (and a few others) will not show up:

https://musicbrainz.org/release-group/b4ce5feb-9484-3a68-a36a-854a42367d6d

It did show up with status=official, but now it doesn't. I'm confused, haha.

duck7000 commented 1 month ago

yeah well that is a bit of a problem with a specific kind of api call. It is very hard to include what you want and exclude what don't. It strictly does what you told it to do

maybe you can try with OR parameter like in the first part of the api call? like status=official|unknown?

Now you understand why i sometimes did have a hard bargain to get the right api call haha

If you do find the right api call let me know, i'll change it.

GeorgeFive commented 1 month ago

Best I can tell, it seems like status HAS to be set, there's no wildcard usage here. If the status of an album is unknown, you can not get it through the API. Which is weird, but I guess I can work with this, hah.

duck7000 commented 1 month ago

For now this is the best i can do so i'll close this one.

Feel free to react to this if you have questions or new info

GeorgeFive commented 1 month ago

I've skimmed back through this thread a few times, but did we every try without the type? Seems like a logical idea, I don't know how we missed it.

https://musicbrainz.org/ws/2/artist/4ad4fb96-57b1-40cd-829b-0c6a1a6219d4?inc=releases+various-artists&limit=100

In this example, taking out type gives us all of their v/a releases. With type, we only get three.

I've tested a few bands, and this seems more accurate than what is currently in the api. Do a few tests and see if it seems better to you?

duck7000 commented 1 month ago

Well no i don't think we tried that, you provided this specific link so i assumed this was for a reason.

So without the type gets all releases exactly like you wanted? I can change the api call so you can test this with others too

duck7000 commented 1 month ago

I tested this and it seems to be working, i get the same results.

I'll change this in the source

duck7000 commented 1 month ago

Changed in latest commit

GeorgeFive commented 1 month ago

Looks good, thanks!

duck7000 commented 1 month ago

So this can be closed