Skip to content

Commit

Permalink
Remove explicit tag (close vitiko98#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitiko98 committed Jan 8, 2021
1 parent 7ef09f3 commit e57cf32
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions qobuz_dl/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def read_file(fname):

setup(
name=pkg_name,
version="0.9.1",
version="0.9.3",
author="Vitiko",
author_email="[email protected]",
description="The complete Lossless and Hi-Res music downloader for Qobuz",
Expand Down

0 comments on commit e57cf32

Please sign in to comment.