mirror of
https://github.com/Wojtek242/qobuz-dl.git
synced 2024-11-22 11:05:25 +01:00
Remove explicit tag (close #50)
This commit is contained in:
parent
7ef09f3c4a
commit
e57cf32481
@ -71,19 +71,12 @@ def get_format(client, item_dict, quality, is_track_id=False, track_url_dict=Non
|
||||
def get_title(item_dict):
|
||||
album_title = item_dict["title"]
|
||||
version = item_dict.get("version")
|
||||
is_explicit = item_dict.get("parental_warning")
|
||||
if version:
|
||||
album_title = (
|
||||
f"{album_title} ({version})"
|
||||
if version.lower() not in album_title.lower()
|
||||
else album_title
|
||||
)
|
||||
if is_explicit:
|
||||
album_title = (
|
||||
f"{album_title} (Explicit)"
|
||||
if "explicit" not in album_title.lower()
|
||||
else album_title
|
||||
)
|
||||
return album_title
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user