Skip to content

Commit

Permalink
Merge pull request #13 from yashprakash13/develop
Browse files Browse the repository at this point in the history
bugfixes
  • Loading branch information
yashprakash13 authored Dec 28, 2024
2 parents 438912e + 1b45832 commit 0037f8c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion amusing/cli_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ def _download_all_songs_for_given_album(
if not song_fetched:
return "Couldn't find song through YouTube Music Search."
try:
# this is necessary to keep consistency in between file names in db and downloads
song_fetched.title = song_metadata_dict["title"]
song_fetched.artist = song_metadata_dict["artist"]
song_fetched.album = album
download(song_fetched, root_download_path, True)
except RuntimeError as e:
print(f"[!] Error: {e}")
Expand Down Expand Up @@ -338,7 +342,8 @@ def organize_library_operation(root_download_path: str, destination_path: str) -
organizer.org_video_id = song.video_id
session.commit()
print(f"Processed: {song_file_path}")
except:
except Exception as e:
print("Exception: ", e)
continue

return ""
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "amusing-app"
version = "0.4.0"
version = "0.4.1"
description = "CLI to download music independently and from your exported Apple Music library."
authors = ["Yash Prakash <yashprakash13@gmail.com>"]
readme = "README.md"
Expand Down

0 comments on commit 0037f8c

Please # to comment.