Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Detect Song/Artist language #190

Open
Kiina opened this issue Jul 17, 2018 · 1 comment
Open

Detect Song/Artist language #190

Kiina opened this issue Jul 17, 2018 · 1 comment

Comments

@Kiina
Copy link

Kiina commented Jul 17, 2018

Okay this might be a bit of a stretch but I've always been annoyed by how I can't easily only play songs/albums in a specific language on Google play music. I though of many ways and probably the only way I could reasonably approach this issue is by scraping wikipedia or other metadata providers for example, make a big list with all artists and feed it into the: artist contains.
But the current layout makes it a bit impossible. Not sure if this would be wise from a performance standpoint but having a field that goes through line for line and check if its one of the artists, separated by a newline.

So basically provide a readable array to artist contains or a better way to get the language of a song (which isn't provided anywhere in the metadata except maybe an educated guess from all the song titles).

@simon-weber
Copy link
Owner

simon-weber commented Jul 17, 2018

Hm, interesting. You could maybe hack the big-list approach by generating a massive regex - eg artist matches regex "artist1|artist2|..." - though your computer might blast off trying to run the query, haha.

I can double check if there's any mention of language in Google's hidden metadata, but I think you're right that they don't provide it.

I think the ideal approach would be to make an external thing (probably a gmusicapi script) that adds the language into the comment field, then have Autoplaylists query on eg comment contains "lang:english".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants