Implemented per album requests for music#91
Implemented per album requests for music#91tacoroumen wants to merge 5 commits intothomst08:masterfrom
Conversation
Implemented per album requests for music (im not 100% sure i didnt break the "Automatically monitor newly added music" under requests permissions)
|
Found a bug when requesting not previously added artists need to fix this rq |
|
it seems to be an issue with /api/v1/album/lookup just returning [] |
|
if i soft add artistst it works but seems like a stupid fix (adding artists with nothing monitored then trying to get albums) |
|
Hey tacoroumen, Very nice! I'll have a tinker with the code and see if I can find any issues, but well done :) |
|
i cant get it to work via api because there is no way to get albums of artists that havent been added to lidarr so i will implement the soft add with just no monitoring just so i can get the albums this seems kinda dumb imo but lidarr doesnt provide it (seems kinda dumb imo) but i guess db space optimization |
because if lidarr api limitations it isnt posible to retrieve artist albums without the artist first being added to lidarr
|
Alright that should have fixed it |
|
Ok, I've had a bit of a look. Excellent work. I think this is a great start, but it might be wise tweak a few things before staging it for a release.
|
|
Hmmmm, I noticed in the new commit, it adds each request item to Lidarr before the user has pressed request, so if you request a generic name, and click down the list, you might add a number of artist without meaning too.....OK, that's an issue. I'll see if I can come up with a solution for that. |
it first lets you select the artist lets say you search ariana grande you then select the ariana grande you want it soft adds that ariana grande (only the one you selected) then it reloads for the next discord with all the albums atleast thats what i thought it did. i checked before pushing that it only does this after selecting the artist and not before when only searching artist name |
|
i might be wrong tho im not sure |
on this it might be possible to get all albums from an endpoint like https://musicbrainz.org/ws/2/release-group?artist=a74b1b7f-71a5-4011-9441-d0b5e4122711&fmt=json but im not sure if we want that and even if this is possible to then use this json to get a album in lidarr
didnt think of this haha
not sure how this would work, i would maybe say like a check box with a bool and then just remove the all albums from the discord drop down seems easiest way to me, so only allow per album or dont limit, i dont think anyone would always want to request all albums from an artist but who am i
we could but then we need to somehow be able to get the albums before adding the artist |
Hmmmm, it's not a bad idea....but I think if Lidarr ever goes away from musicbrainz then this might be an issue. It woul dbe wiser to go through Lidarr's system, there
Don't worry about this for the moment, more so something to think on when the command structure is setup. I'm thinking of giving options to the user, I don't mind requesting a whole artist, but I also sometimes hunt for singles, these don't show in albums. So it's just something to consider. I think the more options for the admin, the better.
Yeah....So I am digging into Lidarr's API now and having trouble even getting the search to preform what I want... I think I partly remember there wasn't a clear cut way of doing this at the start, and you had to search for the artist, then the album name, build a list and narrow it down by the two. At least I think that is what I was thinking at the time, but this seems to be different from when I was originally toying with it..... |
what exactly are you trying to search? list of albums of a already added artist? or? |
I was trying to search for an album name through If I remember correctly, using Looking over the docs, there is no way to query for an artist albums using their MusicBrainz Id, only their local Id and it will only allow viewing of those albums once the artist is added...... So, I guess that leaves us with a few options....
These are my thoughts so far. |
|
Side note, I would have to test it, but when you monitor an artist, you can pass in the name of the album to Lidarr in an array, while not ideal, as we have no validation that album is there, you could just accept a album name and push that through with the request to Lidarr, but there is a chance this would fail or not monitor anything. Something to consider testing if we are out of options. |
|
@thomst08 something else i now filter only albums so you cant select EP's or Singles we could always rewrite the bot to make it dynamically filter so you do something like /request music artist:{name} type:album/ep/single/all and then you can filter based on that and an all would request everything from that artists |
i noticed that if you do a musicbrainz.org request you can also get the album id this is an identical id as that lidarr uses, also musicbrainz returns a primary-type of type Single, EP or Album we would be able to filter on this directly from within the bot this would give us the option to filter like i said in my previous message it would then just only get Albums or only EP's this could be done by changing the querie so you would add this type=album or if you want albums and ep's type=album|ep but im not sure how many menu's you would want in the bot. i would say you can either select like i want albums and ep's and it downloads all of these or you can say i want albums and then you can select what album |
i have run into an issue with this sometimes musicbrainz knows an album that lidarr doesnt recognize for some reason this just gives the error message for the request @thomst08 do you know why this could be? Like musicbrainz has albums that lidarr doesnt have for some artists |
…bum hyperlink discor embed
|
I will have to have a look, I noticed when you make a request you can specify a name of the album, but I didn't test it or try it out. |
|
Only thing I can't seem to get to work is filtering the EP and Singles by request I could make a button like you request a artist then you select type all,album,ep,single and then you select what you want from each Also the issue with lidarr and musicbrainz albums not being equal |
|
That's alright, I think it would be best to focus on one part at a time, I think albums are the more important feature, the rest can be added in time. |
|
https://www.reddit.com/r/Lidarr/s/b6hELR5vPU This might be related to the mismatch between Lidarr and musicbrainz I was having for albums, seems to be normal behavior I will just implement the official flag filter for the musicbrainz api calls I make so it shouldn't show albums lidarr doesn't I will try this tmr |
this was causing the mismatch in secondery type under metadata profile i didnt have Mixtape/Street selected which caused it to not show the album |
|
so for albums it seems to work now just need to find a clean way to implement the ep and singles |


Implemented per album requests for music
(im not 100% sure i didnt break the "Automatically monitor newly added music" under requests permissions)