mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 23:36:00 +03:00
[GH-ISSUE #99] No way to tell explicit and non explicit versions of songs apart? #74
Labels
No labels
a/b
bug
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
yt-error
yt-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ytmusicapi#74
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kubeckubis44 on GitHub (Nov 5, 2020).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/99
Originally assigned to: @sigma67 on GitHub.
Hi!
I was wondering if there is a way to tell if a song is explicit (they have that small 'E' tag in front of the track name) or not.
I could'nt find anything about it in the metadata returned by
get_songand i think it would be a very useful thing to include there (if possible).@sigma67 commented on GitHub (Nov 8, 2020):
It's not possible with get_song unfortunately, since that uses a YouTube endpoint that does not mark explicit songs. For albums it is possible using the contentRating property. For playlists it should be possible, but the data is inconsistent and I can't really figure out which property indicates that a song is explicit.
So it would have to be done for each endpoint separately. Which one would you use it for? Pull requests are welcome as always.
@sigma67 commented on GitHub (Jan 11, 2021):
I figured out why explicit songs seemed inconsistent: Some songs are only marked as explicit when signed in. Will add an
explicitproperty for applicable endpoints with the next version.