From cd89523ee005eeae8beaeeb19863bfc6538b9447 Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Wed, 7 Dec 2022 15:51:38 +0100 Subject: [PATCH] continued the database --- .VSCodeCounter/2022-11-14_15-47-38/details.md | 75 ------------- .../2022-11-14_15-47-38/diff-details.md | 55 --------- .VSCodeCounter/2022-11-14_15-47-38/diff.csv | 42 ------- .VSCodeCounter/2022-11-14_15-47-38/diff.md | 39 ------- .VSCodeCounter/2022-11-14_15-47-38/diff.txt | 82 -------------- .../2022-11-14_15-47-38/results.csv | 62 ----------- .../2022-11-14_15-47-38/results.json | 1 - .VSCodeCounter/2022-11-14_15-47-38/results.md | 41 ------- .../2022-11-14_15-47-38/results.txt | 104 ------------------ src/goof.py | 33 ++++-- src/music_kraken/__init__.py | 1 + src/music_kraken/database/__init__.py | 2 + src/music_kraken/database/new_database.py | 103 ++++++++++++----- src/music_kraken/database/objects/__init__.py | 2 + .../database/objects/database_object.py | 5 + src/music_kraken/database/objects/song.py | 69 +++++++++++- src/music_kraken/static_files/new_db.sql | 24 ++-- test.db | Bin 61440 -> 65536 bytes 18 files changed, 190 insertions(+), 550 deletions(-) delete mode 100644 .VSCodeCounter/2022-11-14_15-47-38/details.md delete mode 100644 .VSCodeCounter/2022-11-14_15-47-38/diff-details.md delete mode 100644 .VSCodeCounter/2022-11-14_15-47-38/diff.csv delete mode 100644 .VSCodeCounter/2022-11-14_15-47-38/diff.md delete mode 100644 .VSCodeCounter/2022-11-14_15-47-38/diff.txt delete mode 100644 .VSCodeCounter/2022-11-14_15-47-38/results.csv delete mode 100644 .VSCodeCounter/2022-11-14_15-47-38/results.json delete mode 100644 .VSCodeCounter/2022-11-14_15-47-38/results.md delete mode 100644 .VSCodeCounter/2022-11-14_15-47-38/results.txt diff --git a/.VSCodeCounter/2022-11-14_15-47-38/details.md b/.VSCodeCounter/2022-11-14_15-47-38/details.md deleted file mode 100644 index be489bd..0000000 --- a/.VSCodeCounter/2022-11-14_15-47-38/details.md +++ /dev/null @@ -1,75 +0,0 @@ -# Details - -Date : 2022-11-14 15:47:38 - -Directory /home/lars/Projects/music-downloader - -Total : 60 files, 2282 codes, 242 comments, 638 blanks, all 3162 lines - -[Summary](results.md) / Details / [Diff Summary](diff.md) / [Diff Details](diff-details.md) - -## Files -| filename | language | code | comment | blank | total | -| :--- | :--- | ---: | ---: | ---: | ---: | -| [music-downloader/.VSCodeCounter/2022-11-07_11-51-29/details.md](/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/details.md) | Markdown | 37 | 0 | 6 | 43 | -| [music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff-details.md](/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff-details.md) | Markdown | 25 | 0 | 6 | 31 | -| [music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff.md](/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff.md) | Markdown | 22 | 0 | 7 | 29 | -| [music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.json](/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.json) | JSON | 1 | 0 | 0 | 1 | -| [music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.md](/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.md) | Markdown | 26 | 0 | 7 | 33 | -| [music-downloader/.VSCodeCounter/2022-11-08_16-41-25/details.md](/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/details.md) | Markdown | 43 | 0 | 6 | 49 | -| [music-downloader/.VSCodeCounter/2022-11-08_16-41-25/diff-details.md](/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/diff-details.md) | Markdown | 25 | 0 | 6 | 31 | -| [music-downloader/.VSCodeCounter/2022-11-08_16-41-25/diff.md](/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/diff.md) | Markdown | 21 | 0 | 7 | 28 | -| [music-downloader/.VSCodeCounter/2022-11-08_16-41-25/results.json](/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/results.json) | JSON | 1 | 0 | 0 | 1 | -| [music-downloader/.VSCodeCounter/2022-11-08_16-41-25/results.md](/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/results.md) | Markdown | 28 | 0 | 7 | 35 | -| [music-downloader/.VSCodeCounter/2022-11-10_14-10-12/details.md](/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/details.md) | Markdown | 52 | 0 | 6 | 58 | -| [music-downloader/.VSCodeCounter/2022-11-10_14-10-12/diff-details.md](/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/diff-details.md) | Markdown | 30 | 0 | 6 | 36 | -| [music-downloader/.VSCodeCounter/2022-11-10_14-10-12/diff.md](/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/diff.md) | Markdown | 26 | 0 | 7 | 33 | -| [music-downloader/.VSCodeCounter/2022-11-10_14-10-12/results.json](/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/results.json) | JSON | 1 | 0 | 0 | 1 | -| [music-downloader/.VSCodeCounter/2022-11-10_14-10-12/results.md](/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/results.md) | Markdown | 31 | 0 | 7 | 38 | -| [music-downloader/.VSCodeCounter/2022-11-14_08-49-48/details.md](/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/details.md) | Markdown | 64 | 0 | 6 | 70 | -| [music-downloader/.VSCodeCounter/2022-11-14_08-49-48/diff-details.md](/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/diff-details.md) | Markdown | 42 | 0 | 6 | 48 | -| [music-downloader/.VSCodeCounter/2022-11-14_08-49-48/diff.md](/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/diff.md) | Markdown | 26 | 0 | 7 | 33 | -| [music-downloader/.VSCodeCounter/2022-11-14_08-49-48/results.json](/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/results.json) | JSON | 1 | 0 | 0 | 1 | -| [music-downloader/.VSCodeCounter/2022-11-14_08-49-48/results.md](/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/results.md) | Markdown | 33 | 0 | 7 | 40 | -| [music-downloader/.VSCodeCounter/2022-11-14_12-36-23/details.md](/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/details.md) | Markdown | 34 | 0 | 6 | 40 | -| [music-downloader/.VSCodeCounter/2022-11-14_12-36-23/diff-details.md](/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/diff-details.md) | Markdown | 40 | 0 | 6 | 46 | -| [music-downloader/.VSCodeCounter/2022-11-14_12-36-23/diff.md](/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/diff.md) | Markdown | 28 | 0 | 7 | 35 | -| [music-downloader/.VSCodeCounter/2022-11-14_12-36-23/results.json](/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/results.json) | JSON | 1 | 0 | 0 | 1 | -| [music-downloader/.VSCodeCounter/2022-11-14_12-36-23/results.md](/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/results.md) | Markdown | 20 | 0 | 7 | 27 | -| [music-downloader/.idea/dataSources.xml](/music-downloader/.idea/dataSources.xml) | XML | 12 | 0 | 0 | 12 | -| [music-downloader/.idea/inspectionProfiles/profiles_settings.xml](/music-downloader/.idea/inspectionProfiles/profiles_settings.xml) | XML | 6 | 0 | 0 | 6 | -| [music-downloader/.idea/misc.xml](/music-downloader/.idea/misc.xml) | XML | 4 | 0 | 0 | 4 | -| [music-downloader/.idea/modules.xml](/music-downloader/.idea/modules.xml) | XML | 9 | 0 | 0 | 9 | -| [music-downloader/.idea/music-downloader.iml](/music-downloader/.idea/music-downloader.iml) | XML | 11 | 0 | 0 | 11 | -| [music-downloader/.idea/vcs.xml](/music-downloader/.idea/vcs.xml) | XML | 6 | 0 | 0 | 6 | -| [music-downloader/README.md](/music-downloader/README.md) | Markdown | 102 | 0 | 36 | 138 | -| [music-downloader/assets/database_structure.sql](/music-downloader/assets/database_structure.sql) | SQLite | 52 | 0 | 6 | 58 | -| [music-downloader/notes.md](/music-downloader/notes.md) | Markdown | 13 | 0 | 2 | 15 | -| [music-downloader/requirements.txt](/music-downloader/requirements.txt) | pip requirements | 8 | 0 | 0 | 8 | -| [music-downloader/src/__init__.py](/music-downloader/src/__init__.py) | Python | 0 | 0 | 1 | 1 | -| [music-downloader/src/__main__.py](/music-downloader/src/__main__.py) | Python | 82 | 3 | 26 | 111 | -| [music-downloader/src/audio/__init__.py](/music-downloader/src/audio/__init__.py) | Python | 0 | 0 | 1 | 1 | -| [music-downloader/src/audio/song.py](/music-downloader/src/audio/song.py) | Python | 3 | 0 | 1 | 4 | -| [music-downloader/src/download.py](/music-downloader/src/download.py) | Python | 56 | 11 | 18 | 85 | -| [music-downloader/src/download_links.py](/music-downloader/src/download_links.py) | Python | 30 | 11 | 15 | 56 | -| [music-downloader/src/lyrics/__init__.py](/music-downloader/src/lyrics/__init__.py) | Python | 0 | 0 | 1 | 1 | -| [music-downloader/src/lyrics/genius.py](/music-downloader/src/lyrics/genius.py) | Python | 99 | 38 | 35 | 172 | -| [music-downloader/src/lyrics/lyrics.py](/music-downloader/src/lyrics/lyrics.py) | Python | 48 | 19 | 26 | 93 | -| [music-downloader/src/lyrics_.py](/music-downloader/src/lyrics_.py) | Python | 51 | 19 | 26 | 96 | -| [music-downloader/src/metadata/__init__.py](/music-downloader/src/metadata/__init__.py) | Python | 0 | 0 | 1 | 1 | -| [music-downloader/src/metadata/database.py](/music-downloader/src/metadata/database.py) | Python | 161 | 66 | 40 | 267 | -| [music-downloader/src/metadata/download.py](/music-downloader/src/metadata/download.py) | Python | 254 | 24 | 63 | 341 | -| [music-downloader/src/metadata/object_handeling.py](/music-downloader/src/metadata/object_handeling.py) | Python | 19 | 0 | 6 | 25 | -| [music-downloader/src/metadata/search.py](/music-downloader/src/metadata/search.py) | Python | 253 | 40 | 72 | 365 | -| [music-downloader/src/scraping/__init__.py](/music-downloader/src/scraping/__init__.py) | Python | 0 | 0 | 1 | 1 | -| [music-downloader/src/scraping/file_system.py](/music-downloader/src/scraping/file_system.py) | Python | 40 | 0 | 18 | 58 | -| [music-downloader/src/scraping/musify.py](/music-downloader/src/scraping/musify.py) | Python | 100 | 2 | 35 | 137 | -| [music-downloader/src/scraping/phonetic_compares.py](/music-downloader/src/scraping/phonetic_compares.py) | Python | 15 | 0 | 8 | 23 | -| [music-downloader/src/scraping/youtube_music.py](/music-downloader/src/scraping/youtube_music.py) | Python | 66 | 2 | 19 | 87 | -| [music-downloader/src/url_to_path.py](/music-downloader/src/url_to_path.py) | Python | 35 | 6 | 18 | 59 | -| [music-downloader/src/utils/__init__.py](/music-downloader/src/utils/__init__.py) | Python | 1 | 1 | 1 | 3 | -| [music-downloader/src/utils/object_handeling.py](/music-downloader/src/utils/object_handeling.py) | Python | 19 | 0 | 6 | 25 | -| [music-downloader/src/utils/phonetic_compares.py](/music-downloader/src/utils/phonetic_compares.py) | Python | 34 | 0 | 15 | 49 | -| [music-downloader/src/utils/shared.py](/music-downloader/src/utils/shared.py) | Python | 35 | 0 | 11 | 46 | - -[Summary](results.md) / Details / [Diff Summary](diff.md) / [Diff Details](diff-details.md) \ No newline at end of file diff --git a/.VSCodeCounter/2022-11-14_15-47-38/diff-details.md b/.VSCodeCounter/2022-11-14_15-47-38/diff-details.md deleted file mode 100644 index 065bed1..0000000 --- a/.VSCodeCounter/2022-11-14_15-47-38/diff-details.md +++ /dev/null @@ -1,55 +0,0 @@ -# Diff Details - -Date : 2022-11-14 15:47:38 - -Directory /home/lars/Projects/music-downloader - -Total : 40 files, 890 codes, 24 comments, 199 blanks, all 1113 lines - -[Summary](results.md) / [Details](details.md) / [Diff Summary](diff.md) / Diff Details - -## Files -| filename | language | code | comment | blank | total | -| :--- | :--- | ---: | ---: | ---: | ---: | -| [music-downloader/.VSCodeCounter/2022-11-07_11-51-29/details.md](/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/details.md) | Markdown | 37 | 0 | 6 | 43 | -| [music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff-details.md](/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff-details.md) | Markdown | 25 | 0 | 6 | 31 | -| [music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff.md](/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff.md) | Markdown | 22 | 0 | 7 | 29 | -| [music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.json](/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.json) | JSON | 1 | 0 | 0 | 1 | -| [music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.md](/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.md) | Markdown | 26 | 0 | 7 | 33 | -| [music-downloader/.VSCodeCounter/2022-11-08_16-41-25/details.md](/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/details.md) | Markdown | 43 | 0 | 6 | 49 | -| [music-downloader/.VSCodeCounter/2022-11-08_16-41-25/diff-details.md](/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/diff-details.md) | Markdown | 25 | 0 | 6 | 31 | -| [music-downloader/.VSCodeCounter/2022-11-08_16-41-25/diff.md](/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/diff.md) | Markdown | 21 | 0 | 7 | 28 | -| [music-downloader/.VSCodeCounter/2022-11-08_16-41-25/results.json](/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/results.json) | JSON | 1 | 0 | 0 | 1 | -| [music-downloader/.VSCodeCounter/2022-11-08_16-41-25/results.md](/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/results.md) | Markdown | 28 | 0 | 7 | 35 | -| [music-downloader/.VSCodeCounter/2022-11-10_14-10-12/details.md](/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/details.md) | Markdown | 52 | 0 | 6 | 58 | -| [music-downloader/.VSCodeCounter/2022-11-10_14-10-12/diff-details.md](/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/diff-details.md) | Markdown | 30 | 0 | 6 | 36 | -| [music-downloader/.VSCodeCounter/2022-11-10_14-10-12/diff.md](/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/diff.md) | Markdown | 26 | 0 | 7 | 33 | -| [music-downloader/.VSCodeCounter/2022-11-10_14-10-12/results.json](/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/results.json) | JSON | 1 | 0 | 0 | 1 | -| [music-downloader/.VSCodeCounter/2022-11-10_14-10-12/results.md](/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/results.md) | Markdown | 31 | 0 | 7 | 38 | -| [music-downloader/.VSCodeCounter/2022-11-14_08-49-48/details.md](/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/details.md) | Markdown | 64 | 0 | 6 | 70 | -| [music-downloader/.VSCodeCounter/2022-11-14_08-49-48/diff-details.md](/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/diff-details.md) | Markdown | 42 | 0 | 6 | 48 | -| [music-downloader/.VSCodeCounter/2022-11-14_08-49-48/diff.md](/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/diff.md) | Markdown | 26 | 0 | 7 | 33 | -| [music-downloader/.VSCodeCounter/2022-11-14_08-49-48/results.json](/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/results.json) | JSON | 1 | 0 | 0 | 1 | -| [music-downloader/.VSCodeCounter/2022-11-14_08-49-48/results.md](/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/results.md) | Markdown | 33 | 0 | 7 | 40 | -| [music-downloader/.VSCodeCounter/2022-11-14_12-36-23/details.md](/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/details.md) | Markdown | 34 | 0 | 6 | 40 | -| [music-downloader/.VSCodeCounter/2022-11-14_12-36-23/diff-details.md](/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/diff-details.md) | Markdown | 40 | 0 | 6 | 46 | -| [music-downloader/.VSCodeCounter/2022-11-14_12-36-23/diff.md](/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/diff.md) | Markdown | 28 | 0 | 7 | 35 | -| [music-downloader/.VSCodeCounter/2022-11-14_12-36-23/results.json](/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/results.json) | JSON | 1 | 0 | 0 | 1 | -| [music-downloader/.VSCodeCounter/2022-11-14_12-36-23/results.md](/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/results.md) | Markdown | 20 | 0 | 7 | 27 | -| [music-downloader/.idea/dataSources.xml](/music-downloader/.idea/dataSources.xml) | XML | 12 | 0 | 0 | 12 | -| [music-downloader/.idea/inspectionProfiles/profiles_settings.xml](/music-downloader/.idea/inspectionProfiles/profiles_settings.xml) | XML | 6 | 0 | 0 | 6 | -| [music-downloader/.idea/misc.xml](/music-downloader/.idea/misc.xml) | XML | 4 | 0 | 0 | 4 | -| [music-downloader/.idea/modules.xml](/music-downloader/.idea/modules.xml) | XML | 9 | 0 | 0 | 9 | -| [music-downloader/.idea/music-downloader.iml](/music-downloader/.idea/music-downloader.iml) | XML | 11 | 0 | 0 | 11 | -| [music-downloader/.idea/vcs.xml](/music-downloader/.idea/vcs.xml) | XML | 6 | 0 | 0 | 6 | -| [music-downloader/README.md](/music-downloader/README.md) | Markdown | 102 | 0 | 36 | 138 | -| [music-downloader/assets/database_structure.sql](/music-downloader/assets/database_structure.sql) | SQLite | 52 | 0 | 6 | 58 | -| [music-downloader/notes.md](/music-downloader/notes.md) | Markdown | 13 | 0 | 2 | 15 | -| [music-downloader/requirements.txt](/music-downloader/requirements.txt) | pip requirements | 8 | 0 | 0 | 8 | -| [music-downloader/src/lyrics/lyrics.py](/music-downloader/src/lyrics/lyrics.py) | Python | 48 | 19 | 26 | 93 | -| [music-downloader/src/lyrics_.py](/music-downloader/src/lyrics_.py) | Python | 5 | 0 | 3 | 8 | -| [music-downloader/src/metadata/database.py](/music-downloader/src/metadata/database.py) | Python | 6 | 5 | 2 | 13 | -| [music-downloader/src/metadata/database_structure.sql](/music-downloader/src/metadata/database_structure.sql) | SQLite | -51 | 0 | -6 | -57 | -| [music-downloader/src/utils/shared.py](/music-downloader/src/utils/shared.py) | Python | 1 | 0 | 0 | 1 | - -[Summary](results.md) / [Details](details.md) / [Diff Summary](diff.md) / Diff Details \ No newline at end of file diff --git a/.VSCodeCounter/2022-11-14_15-47-38/diff.csv b/.VSCodeCounter/2022-11-14_15-47-38/diff.csv deleted file mode 100644 index 50cadc1..0000000 --- a/.VSCodeCounter/2022-11-14_15-47-38/diff.csv +++ /dev/null @@ -1,42 +0,0 @@ -"filename", "language", "SQLite", "Python", "Markdown", "pip requirements", "JSON", "XML", "comment", "blank", "total" -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/details.md", "Markdown", 0, 0, 37, 0, 0, 0, 0, 6, 43 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff-details.md", "Markdown", 0, 0, 25, 0, 0, 0, 0, 6, 31 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff.md", "Markdown", 0, 0, 22, 0, 0, 0, 0, 7, 29 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.json", "JSON", 0, 0, 0, 0, 1, 0, 0, 0, 1 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.md", "Markdown", 0, 0, 26, 0, 0, 0, 0, 7, 33 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/details.md", "Markdown", 0, 0, 43, 0, 0, 0, 0, 6, 49 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/diff-details.md", "Markdown", 0, 0, 25, 0, 0, 0, 0, 6, 31 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/diff.md", "Markdown", 0, 0, 21, 0, 0, 0, 0, 7, 28 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/results.json", "JSON", 0, 0, 0, 0, 1, 0, 0, 0, 1 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/results.md", "Markdown", 0, 0, 28, 0, 0, 0, 0, 7, 35 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/details.md", "Markdown", 0, 0, 52, 0, 0, 0, 0, 6, 58 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/diff-details.md", "Markdown", 0, 0, 30, 0, 0, 0, 0, 6, 36 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/diff.md", "Markdown", 0, 0, 26, 0, 0, 0, 0, 7, 33 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/results.json", "JSON", 0, 0, 0, 0, 1, 0, 0, 0, 1 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/results.md", "Markdown", 0, 0, 31, 0, 0, 0, 0, 7, 38 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/details.md", "Markdown", 0, 0, 64, 0, 0, 0, 0, 6, 70 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/diff-details.md", "Markdown", 0, 0, 42, 0, 0, 0, 0, 6, 48 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/diff.md", "Markdown", 0, 0, 26, 0, 0, 0, 0, 7, 33 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/results.json", "JSON", 0, 0, 0, 0, 1, 0, 0, 0, 1 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/results.md", "Markdown", 0, 0, 33, 0, 0, 0, 0, 7, 40 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/details.md", "Markdown", 0, 0, 34, 0, 0, 0, 0, 6, 40 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/diff-details.md", "Markdown", 0, 0, 40, 0, 0, 0, 0, 6, 46 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/diff.md", "Markdown", 0, 0, 28, 0, 0, 0, 0, 7, 35 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/results.json", "JSON", 0, 0, 0, 0, 1, 0, 0, 0, 1 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/results.md", "Markdown", 0, 0, 20, 0, 0, 0, 0, 7, 27 -"/home/lars/Projects/music-downloader/.idea/dataSources.xml", "XML", 0, 0, 0, 0, 0, 12, 0, 0, 12 -"/home/lars/Projects/music-downloader/.idea/inspectionProfiles/profiles_settings.xml", "XML", 0, 0, 0, 0, 0, 6, 0, 0, 6 -"/home/lars/Projects/music-downloader/.idea/misc.xml", "XML", 0, 0, 0, 0, 0, 4, 0, 0, 4 -"/home/lars/Projects/music-downloader/.idea/modules.xml", "XML", 0, 0, 0, 0, 0, 9, 0, 0, 9 -"/home/lars/Projects/music-downloader/.idea/music-downloader.iml", "XML", 0, 0, 0, 0, 0, 11, 0, 0, 11 -"/home/lars/Projects/music-downloader/.idea/vcs.xml", "XML", 0, 0, 0, 0, 0, 6, 0, 0, 6 -"/home/lars/Projects/music-downloader/README.md", "Markdown", 0, 0, 102, 0, 0, 0, 0, 36, 138 -"/home/lars/Projects/music-downloader/assets/database_structure.sql", "SQLite", 52, 0, 0, 0, 0, 0, 0, 6, 58 -"/home/lars/Projects/music-downloader/notes.md", "Markdown", 0, 0, 13, 0, 0, 0, 0, 2, 15 -"/home/lars/Projects/music-downloader/requirements.txt", "pip requirements", 0, 0, 0, 8, 0, 0, 0, 0, 8 -"/home/lars/Projects/music-downloader/src/lyrics/lyrics.py", "Python", 0, 48, 0, 0, 0, 0, 19, 26, 93 -"/home/lars/Projects/music-downloader/src/lyrics_.py", "Python", 0, 5, 0, 0, 0, 0, 0, 3, 8 -"/home/lars/Projects/music-downloader/src/metadata/database.py", "Python", 0, 6, 0, 0, 0, 0, 5, 2, 13 -"/home/lars/Projects/music-downloader/src/metadata/database_structure.sql", "SQLite", -51, 0, 0, 0, 0, 0, 0, -6, -57 -"/home/lars/Projects/music-downloader/src/utils/shared.py", "Python", 0, 1, 0, 0, 0, 0, 0, 0, 1 -"Total", "-", 1, 60, 768, 8, 5, 48, 24, 199, 1113 \ No newline at end of file diff --git a/.VSCodeCounter/2022-11-14_15-47-38/diff.md b/.VSCodeCounter/2022-11-14_15-47-38/diff.md deleted file mode 100644 index a45a54e..0000000 --- a/.VSCodeCounter/2022-11-14_15-47-38/diff.md +++ /dev/null @@ -1,39 +0,0 @@ -# Diff Summary - -Date : 2022-11-14 15:47:38 - -Directory /home/lars/Projects/music-downloader - -Total : 40 files, 890 codes, 24 comments, 199 blanks, all 1113 lines - -[Summary](results.md) / [Details](details.md) / Diff Summary / [Diff Details](diff-details.md) - -## Languages -| language | files | code | comment | blank | total | -| :--- | ---: | ---: | ---: | ---: | ---: | -| Markdown | 22 | 768 | 0 | 168 | 936 | -| Python | 4 | 60 | 24 | 31 | 115 | -| XML | 6 | 48 | 0 | 0 | 48 | -| pip requirements | 1 | 8 | 0 | 0 | 8 | -| JSON | 5 | 5 | 0 | 0 | 5 | -| SQLite | 2 | 1 | 0 | 0 | 1 | - -## Directories -| path | files | code | comment | blank | total | -| :--- | ---: | ---: | ---: | ---: | ---: | -| . | 40 | 890 | 24 | 199 | 1,113 | -| .VSCodeCounter | 25 | 658 | 0 | 130 | 788 | -| .VSCodeCounter/2022-11-07_11-51-29 | 5 | 111 | 0 | 26 | 137 | -| .VSCodeCounter/2022-11-08_16-41-25 | 5 | 118 | 0 | 26 | 144 | -| .VSCodeCounter/2022-11-10_14-10-12 | 5 | 140 | 0 | 26 | 166 | -| .VSCodeCounter/2022-11-14_08-49-48 | 5 | 166 | 0 | 26 | 192 | -| .VSCodeCounter/2022-11-14_12-36-23 | 5 | 123 | 0 | 26 | 149 | -| .idea | 6 | 48 | 0 | 0 | 48 | -| .idea/inspectionProfiles | 1 | 6 | 0 | 0 | 6 | -| assets | 1 | 52 | 0 | 6 | 58 | -| src | 5 | 9 | 24 | 25 | 58 | -| src/lyrics | 1 | 48 | 19 | 26 | 93 | -| src/metadata | 2 | -45 | 5 | -4 | -44 | -| src/utils | 1 | 1 | 0 | 0 | 1 | - -[Summary](results.md) / [Details](details.md) / Diff Summary / [Diff Details](diff-details.md) \ No newline at end of file diff --git a/.VSCodeCounter/2022-11-14_15-47-38/diff.txt b/.VSCodeCounter/2022-11-14_15-47-38/diff.txt deleted file mode 100644 index 21b079f..0000000 --- a/.VSCodeCounter/2022-11-14_15-47-38/diff.txt +++ /dev/null @@ -1,82 +0,0 @@ -Date : 2022-11-14 15:47:38 -Directory : /home/lars/Projects/music-downloader -Total : 40 files, 890 codes, 24 comments, 199 blanks, all 1113 lines - -Languages -+------------------+------------+------------+------------+------------+------------+ -| language | files | code | comment | blank | total | -+------------------+------------+------------+------------+------------+------------+ -| Markdown | 22 | 768 | 0 | 168 | 936 | -| Python | 4 | 60 | 24 | 31 | 115 | -| XML | 6 | 48 | 0 | 0 | 48 | -| pip requirements | 1 | 8 | 0 | 0 | 8 | -| JSON | 5 | 5 | 0 | 0 | 5 | -| SQLite | 2 | 1 | 0 | 0 | 1 | -+------------------+------------+------------+------------+------------+------------+ - -Directories -+-----------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+ -| path | files | code | comment | blank | total | -+-----------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+ -| . | 40 | 890 | 24 | 199 | 1,113 | -| .VSCodeCounter | 25 | 658 | 0 | 130 | 788 | -| .VSCodeCounter/2022-11-07_11-51-29 | 5 | 111 | 0 | 26 | 137 | -| .VSCodeCounter/2022-11-08_16-41-25 | 5 | 118 | 0 | 26 | 144 | -| .VSCodeCounter/2022-11-10_14-10-12 | 5 | 140 | 0 | 26 | 166 | -| .VSCodeCounter/2022-11-14_08-49-48 | 5 | 166 | 0 | 26 | 192 | -| .VSCodeCounter/2022-11-14_12-36-23 | 5 | 123 | 0 | 26 | 149 | -| .idea | 6 | 48 | 0 | 0 | 48 | -| .idea/inspectionProfiles | 1 | 6 | 0 | 0 | 6 | -| assets | 1 | 52 | 0 | 6 | 58 | -| src | 5 | 9 | 24 | 25 | 58 | -| src/lyrics | 1 | 48 | 19 | 26 | 93 | -| src/metadata | 2 | -45 | 5 | -4 | -44 | -| src/utils | 1 | 1 | 0 | 0 | 1 | -+-----------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+ - -Files -+-----------------------------------------------------------------------------------------+------------------+------------+------------+------------+------------+ -| filename | language | code | comment | blank | total | -+-----------------------------------------------------------------------------------------+------------------+------------+------------+------------+------------+ -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/details.md | Markdown | 37 | 0 | 6 | 43 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff-details.md | Markdown | 25 | 0 | 6 | 31 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff.md | Markdown | 22 | 0 | 7 | 29 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.json | JSON | 1 | 0 | 0 | 1 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.md | Markdown | 26 | 0 | 7 | 33 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/details.md | Markdown | 43 | 0 | 6 | 49 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/diff-details.md | Markdown | 25 | 0 | 6 | 31 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/diff.md | Markdown | 21 | 0 | 7 | 28 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/results.json | JSON | 1 | 0 | 0 | 1 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/results.md | Markdown | 28 | 0 | 7 | 35 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/details.md | Markdown | 52 | 0 | 6 | 58 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/diff-details.md | Markdown | 30 | 0 | 6 | 36 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/diff.md | Markdown | 26 | 0 | 7 | 33 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/results.json | JSON | 1 | 0 | 0 | 1 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/results.md | Markdown | 31 | 0 | 7 | 38 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/details.md | Markdown | 64 | 0 | 6 | 70 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/diff-details.md | Markdown | 42 | 0 | 6 | 48 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/diff.md | Markdown | 26 | 0 | 7 | 33 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/results.json | JSON | 1 | 0 | 0 | 1 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/results.md | Markdown | 33 | 0 | 7 | 40 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/details.md | Markdown | 34 | 0 | 6 | 40 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/diff-details.md | Markdown | 40 | 0 | 6 | 46 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/diff.md | Markdown | 28 | 0 | 7 | 35 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/results.json | JSON | 1 | 0 | 0 | 1 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/results.md | Markdown | 20 | 0 | 7 | 27 | -| /home/lars/Projects/music-downloader/.idea/dataSources.xml | XML | 12 | 0 | 0 | 12 | -| /home/lars/Projects/music-downloader/.idea/inspectionProfiles/profiles_settings.xml | XML | 6 | 0 | 0 | 6 | -| /home/lars/Projects/music-downloader/.idea/misc.xml | XML | 4 | 0 | 0 | 4 | -| /home/lars/Projects/music-downloader/.idea/modules.xml | XML | 9 | 0 | 0 | 9 | -| /home/lars/Projects/music-downloader/.idea/music-downloader.iml | XML | 11 | 0 | 0 | 11 | -| /home/lars/Projects/music-downloader/.idea/vcs.xml | XML | 6 | 0 | 0 | 6 | -| /home/lars/Projects/music-downloader/README.md | Markdown | 102 | 0 | 36 | 138 | -| /home/lars/Projects/music-downloader/assets/database_structure.sql | SQLite | 52 | 0 | 6 | 58 | -| /home/lars/Projects/music-downloader/notes.md | Markdown | 13 | 0 | 2 | 15 | -| /home/lars/Projects/music-downloader/requirements.txt | pip requirements | 8 | 0 | 0 | 8 | -| /home/lars/Projects/music-downloader/src/lyrics/lyrics.py | Python | 48 | 19 | 26 | 93 | -| /home/lars/Projects/music-downloader/src/lyrics_.py | Python | 5 | 0 | 3 | 8 | -| /home/lars/Projects/music-downloader/src/metadata/database.py | Python | 6 | 5 | 2 | 13 | -| /home/lars/Projects/music-downloader/src/metadata/database_structure.sql | SQLite | -51 | 0 | -6 | -57 | -| /home/lars/Projects/music-downloader/src/utils/shared.py | Python | 1 | 0 | 0 | 1 | -| Total | | 890 | 24 | 199 | 1,113 | -+-----------------------------------------------------------------------------------------+------------------+------------+------------+------------+------------+ \ No newline at end of file diff --git a/.VSCodeCounter/2022-11-14_15-47-38/results.csv b/.VSCodeCounter/2022-11-14_15-47-38/results.csv deleted file mode 100644 index 3703dcd..0000000 --- a/.VSCodeCounter/2022-11-14_15-47-38/results.csv +++ /dev/null @@ -1,62 +0,0 @@ -"filename", "language", "SQLite", "Python", "Markdown", "pip requirements", "JSON", "XML", "comment", "blank", "total" -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/details.md", "Markdown", 0, 0, 37, 0, 0, 0, 0, 6, 43 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff-details.md", "Markdown", 0, 0, 25, 0, 0, 0, 0, 6, 31 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff.md", "Markdown", 0, 0, 22, 0, 0, 0, 0, 7, 29 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.json", "JSON", 0, 0, 0, 0, 1, 0, 0, 0, 1 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.md", "Markdown", 0, 0, 26, 0, 0, 0, 0, 7, 33 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/details.md", "Markdown", 0, 0, 43, 0, 0, 0, 0, 6, 49 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/diff-details.md", "Markdown", 0, 0, 25, 0, 0, 0, 0, 6, 31 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/diff.md", "Markdown", 0, 0, 21, 0, 0, 0, 0, 7, 28 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/results.json", "JSON", 0, 0, 0, 0, 1, 0, 0, 0, 1 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/results.md", "Markdown", 0, 0, 28, 0, 0, 0, 0, 7, 35 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/details.md", "Markdown", 0, 0, 52, 0, 0, 0, 0, 6, 58 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/diff-details.md", "Markdown", 0, 0, 30, 0, 0, 0, 0, 6, 36 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/diff.md", "Markdown", 0, 0, 26, 0, 0, 0, 0, 7, 33 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/results.json", "JSON", 0, 0, 0, 0, 1, 0, 0, 0, 1 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/results.md", "Markdown", 0, 0, 31, 0, 0, 0, 0, 7, 38 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/details.md", "Markdown", 0, 0, 64, 0, 0, 0, 0, 6, 70 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/diff-details.md", "Markdown", 0, 0, 42, 0, 0, 0, 0, 6, 48 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/diff.md", "Markdown", 0, 0, 26, 0, 0, 0, 0, 7, 33 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/results.json", "JSON", 0, 0, 0, 0, 1, 0, 0, 0, 1 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/results.md", "Markdown", 0, 0, 33, 0, 0, 0, 0, 7, 40 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/details.md", "Markdown", 0, 0, 34, 0, 0, 0, 0, 6, 40 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/diff-details.md", "Markdown", 0, 0, 40, 0, 0, 0, 0, 6, 46 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/diff.md", "Markdown", 0, 0, 28, 0, 0, 0, 0, 7, 35 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/results.json", "JSON", 0, 0, 0, 0, 1, 0, 0, 0, 1 -"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/results.md", "Markdown", 0, 0, 20, 0, 0, 0, 0, 7, 27 -"/home/lars/Projects/music-downloader/.idea/dataSources.xml", "XML", 0, 0, 0, 0, 0, 12, 0, 0, 12 -"/home/lars/Projects/music-downloader/.idea/inspectionProfiles/profiles_settings.xml", "XML", 0, 0, 0, 0, 0, 6, 0, 0, 6 -"/home/lars/Projects/music-downloader/.idea/misc.xml", "XML", 0, 0, 0, 0, 0, 4, 0, 0, 4 -"/home/lars/Projects/music-downloader/.idea/modules.xml", "XML", 0, 0, 0, 0, 0, 9, 0, 0, 9 -"/home/lars/Projects/music-downloader/.idea/music-downloader.iml", "XML", 0, 0, 0, 0, 0, 11, 0, 0, 11 -"/home/lars/Projects/music-downloader/.idea/vcs.xml", "XML", 0, 0, 0, 0, 0, 6, 0, 0, 6 -"/home/lars/Projects/music-downloader/README.md", "Markdown", 0, 0, 102, 0, 0, 0, 0, 36, 138 -"/home/lars/Projects/music-downloader/assets/database_structure.sql", "SQLite", 52, 0, 0, 0, 0, 0, 0, 6, 58 -"/home/lars/Projects/music-downloader/notes.md", "Markdown", 0, 0, 13, 0, 0, 0, 0, 2, 15 -"/home/lars/Projects/music-downloader/requirements.txt", "pip requirements", 0, 0, 0, 8, 0, 0, 0, 0, 8 -"/home/lars/Projects/music-downloader/src/__init__.py", "Python", 0, 0, 0, 0, 0, 0, 0, 1, 1 -"/home/lars/Projects/music-downloader/src/__main__.py", "Python", 0, 82, 0, 0, 0, 0, 3, 26, 111 -"/home/lars/Projects/music-downloader/src/audio/__init__.py", "Python", 0, 0, 0, 0, 0, 0, 0, 1, 1 -"/home/lars/Projects/music-downloader/src/audio/song.py", "Python", 0, 3, 0, 0, 0, 0, 0, 1, 4 -"/home/lars/Projects/music-downloader/src/download.py", "Python", 0, 56, 0, 0, 0, 0, 11, 18, 85 -"/home/lars/Projects/music-downloader/src/download_links.py", "Python", 0, 30, 0, 0, 0, 0, 11, 15, 56 -"/home/lars/Projects/music-downloader/src/lyrics/__init__.py", "Python", 0, 0, 0, 0, 0, 0, 0, 1, 1 -"/home/lars/Projects/music-downloader/src/lyrics/genius.py", "Python", 0, 99, 0, 0, 0, 0, 38, 35, 172 -"/home/lars/Projects/music-downloader/src/lyrics/lyrics.py", "Python", 0, 48, 0, 0, 0, 0, 19, 26, 93 -"/home/lars/Projects/music-downloader/src/lyrics_.py", "Python", 0, 51, 0, 0, 0, 0, 19, 26, 96 -"/home/lars/Projects/music-downloader/src/metadata/__init__.py", "Python", 0, 0, 0, 0, 0, 0, 0, 1, 1 -"/home/lars/Projects/music-downloader/src/metadata/database.py", "Python", 0, 161, 0, 0, 0, 0, 66, 40, 267 -"/home/lars/Projects/music-downloader/src/metadata/download.py", "Python", 0, 254, 0, 0, 0, 0, 24, 63, 341 -"/home/lars/Projects/music-downloader/src/metadata/object_handeling.py", "Python", 0, 19, 0, 0, 0, 0, 0, 6, 25 -"/home/lars/Projects/music-downloader/src/metadata/search.py", "Python", 0, 253, 0, 0, 0, 0, 40, 72, 365 -"/home/lars/Projects/music-downloader/src/scraping/__init__.py", "Python", 0, 0, 0, 0, 0, 0, 0, 1, 1 -"/home/lars/Projects/music-downloader/src/scraping/file_system.py", "Python", 0, 40, 0, 0, 0, 0, 0, 18, 58 -"/home/lars/Projects/music-downloader/src/scraping/musify.py", "Python", 0, 100, 0, 0, 0, 0, 2, 35, 137 -"/home/lars/Projects/music-downloader/src/scraping/phonetic_compares.py", "Python", 0, 15, 0, 0, 0, 0, 0, 8, 23 -"/home/lars/Projects/music-downloader/src/scraping/youtube_music.py", "Python", 0, 66, 0, 0, 0, 0, 2, 19, 87 -"/home/lars/Projects/music-downloader/src/url_to_path.py", "Python", 0, 35, 0, 0, 0, 0, 6, 18, 59 -"/home/lars/Projects/music-downloader/src/utils/__init__.py", "Python", 0, 1, 0, 0, 0, 0, 1, 1, 3 -"/home/lars/Projects/music-downloader/src/utils/object_handeling.py", "Python", 0, 19, 0, 0, 0, 0, 0, 6, 25 -"/home/lars/Projects/music-downloader/src/utils/phonetic_compares.py", "Python", 0, 34, 0, 0, 0, 0, 0, 15, 49 -"/home/lars/Projects/music-downloader/src/utils/shared.py", "Python", 0, 35, 0, 0, 0, 0, 0, 11, 46 -"Total", "-", 52, 1401, 768, 8, 5, 48, 242, 638, 3162 \ No newline at end of file diff --git a/.VSCodeCounter/2022-11-14_15-47-38/results.json b/.VSCodeCounter/2022-11-14_15-47-38/results.json deleted file mode 100644 index 5d75656..0000000 --- a/.VSCodeCounter/2022-11-14_15-47-38/results.json +++ /dev/null @@ -1 +0,0 @@ -{"file:///home/lars/Projects/music-downloader/assets/database_structure.sql":{"language":"SQLite","code":52,"comment":0,"blank":6},"file:///home/lars/Projects/music-downloader/src/lyrics/genius.py":{"language":"Python","code":99,"comment":38,"blank":35},"file:///home/lars/Projects/music-downloader/src/lyrics/__init__.py":{"language":"Python","code":0,"comment":0,"blank":1},"file:///home/lars/Projects/music-downloader/src/__main__.py":{"language":"Python","code":82,"comment":3,"blank":26},"file:///home/lars/Projects/music-downloader/src/lyrics/lyrics.py":{"language":"Python","code":48,"comment":19,"blank":26},"file:///home/lars/Projects/music-downloader/notes.md":{"language":"Markdown","code":13,"comment":0,"blank":2},"file:///home/lars/Projects/music-downloader/README.md":{"language":"Markdown","code":102,"comment":0,"blank":36},"file:///home/lars/Projects/music-downloader/requirements.txt":{"language":"pip requirements","code":8,"comment":0,"blank":0},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/diff-details.md":{"language":"Markdown","code":25,"comment":0,"blank":6},"file:///home/lars/Projects/music-downloader/src/download_links.py":{"language":"Python","code":30,"comment":11,"blank":15},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/results.md":{"language":"Markdown","code":28,"comment":0,"blank":7},"file:///home/lars/Projects/music-downloader/src/scraping/musify.py":{"language":"Python","code":100,"comment":2,"blank":35},"file:///home/lars/Projects/music-downloader/src/url_to_path.py":{"language":"Python","code":35,"comment":6,"blank":18},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/details.md":{"language":"Markdown","code":43,"comment":0,"blank":6},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/results.json":{"language":"JSON","code":1,"comment":0,"blank":0},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/diff.md":{"language":"Markdown","code":21,"comment":0,"blank":7},"file:///home/lars/Projects/music-downloader/src/scraping/file_system.py":{"language":"Python","code":40,"comment":0,"blank":18},"file:///home/lars/Projects/music-downloader/src/__init__.py":{"language":"Python","code":0,"comment":0,"blank":1},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/details.md":{"language":"Markdown","code":34,"comment":0,"blank":6},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/diff-details.md":{"language":"Markdown","code":40,"comment":0,"blank":6},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/results.json":{"language":"JSON","code":1,"comment":0,"blank":0},"file:///home/lars/Projects/music-downloader/src/scraping/__init__.py":{"language":"Python","code":0,"comment":0,"blank":1},"file:///home/lars/Projects/music-downloader/src/scraping/phonetic_compares.py":{"language":"Python","code":15,"comment":0,"blank":8},"file:///home/lars/Projects/music-downloader/src/scraping/youtube_music.py":{"language":"Python","code":66,"comment":2,"blank":19},"file:///home/lars/Projects/music-downloader/src/download.py":{"language":"Python","code":56,"comment":11,"blank":18},"file:///home/lars/Projects/music-downloader/.idea/inspectionProfiles/profiles_settings.xml":{"language":"XML","code":6,"comment":0,"blank":0},"file:///home/lars/Projects/music-downloader/.idea/vcs.xml":{"language":"XML","code":6,"comment":0,"blank":0},"file:///home/lars/Projects/music-downloader/src/audio/__init__.py":{"language":"Python","code":0,"comment":0,"blank":1},"file:///home/lars/Projects/music-downloader/src/audio/song.py":{"language":"Python","code":3,"comment":0,"blank":1},"file:///home/lars/Projects/music-downloader/src/utils/object_handeling.py":{"language":"Python","code":19,"comment":0,"blank":6},"file:///home/lars/Projects/music-downloader/.idea/misc.xml":{"language":"XML","code":4,"comment":0,"blank":0},"file:///home/lars/Projects/music-downloader/src/utils/__init__.py":{"language":"Python","code":1,"comment":1,"blank":1},"file:///home/lars/Projects/music-downloader/src/utils/phonetic_compares.py":{"language":"Python","code":34,"comment":0,"blank":15},"file:///home/lars/Projects/music-downloader/src/utils/shared.py":{"language":"Python","code":35,"comment":0,"blank":11},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/diff.md":{"language":"Markdown","code":28,"comment":0,"blank":7},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/diff.md":{"language":"Markdown","code":26,"comment":0,"blank":7},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/diff-details.md":{"language":"Markdown","code":30,"comment":0,"blank":6},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.json":{"language":"JSON","code":1,"comment":0,"blank":0},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/results.md":{"language":"Markdown","code":31,"comment":0,"blank":7},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/details.md":{"language":"Markdown","code":37,"comment":0,"blank":6},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/details.md":{"language":"Markdown","code":52,"comment":0,"blank":6},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff.md":{"language":"Markdown","code":22,"comment":0,"blank":7},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/results.json":{"language":"JSON","code":1,"comment":0,"blank":0},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff-details.md":{"language":"Markdown","code":25,"comment":0,"blank":6},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/results.md":{"language":"Markdown","code":20,"comment":0,"blank":7},"file:///home/lars/Projects/music-downloader/src/lyrics_.py":{"language":"Python","code":51,"comment":19,"blank":26},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.md":{"language":"Markdown","code":26,"comment":0,"blank":7},"file:///home/lars/Projects/music-downloader/src/metadata/search.py":{"language":"Python","code":253,"comment":40,"blank":72},"file:///home/lars/Projects/music-downloader/.idea/music-downloader.iml":{"language":"XML","code":11,"comment":0,"blank":0},"file:///home/lars/Projects/music-downloader/src/metadata/database.py":{"language":"Python","code":161,"comment":66,"blank":40},"file:///home/lars/Projects/music-downloader/.idea/dataSources.xml":{"language":"XML","code":12,"comment":0,"blank":0},"file:///home/lars/Projects/music-downloader/src/metadata/__init__.py":{"language":"Python","code":0,"comment":0,"blank":1},"file:///home/lars/Projects/music-downloader/.idea/modules.xml":{"language":"XML","code":9,"comment":0,"blank":0},"file:///home/lars/Projects/music-downloader/src/metadata/download.py":{"language":"Python","code":254,"comment":24,"blank":63},"file:///home/lars/Projects/music-downloader/src/metadata/object_handeling.py":{"language":"Python","code":19,"comment":0,"blank":6},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/diff-details.md":{"language":"Markdown","code":42,"comment":0,"blank":6},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/results.md":{"language":"Markdown","code":33,"comment":0,"blank":7},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/details.md":{"language":"Markdown","code":64,"comment":0,"blank":6},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/diff.md":{"language":"Markdown","code":26,"comment":0,"blank":7},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/results.json":{"language":"JSON","code":1,"comment":0,"blank":0}} \ No newline at end of file diff --git a/.VSCodeCounter/2022-11-14_15-47-38/results.md b/.VSCodeCounter/2022-11-14_15-47-38/results.md deleted file mode 100644 index e38e996..0000000 --- a/.VSCodeCounter/2022-11-14_15-47-38/results.md +++ /dev/null @@ -1,41 +0,0 @@ -# Summary - -Date : 2022-11-14 15:47:38 - -Directory /home/lars/Projects/music-downloader - -Total : 60 files, 2282 codes, 242 comments, 638 blanks, all 3162 lines - -Summary / [Details](details.md) / [Diff Summary](diff.md) / [Diff Details](diff-details.md) - -## Languages -| language | files | code | comment | blank | total | -| :--- | ---: | ---: | ---: | ---: | ---: | -| Python | 25 | 1,401 | 242 | 464 | 2,107 | -| Markdown | 22 | 768 | 0 | 168 | 936 | -| SQLite | 1 | 52 | 0 | 6 | 58 | -| XML | 6 | 48 | 0 | 0 | 48 | -| pip requirements | 1 | 8 | 0 | 0 | 8 | -| JSON | 5 | 5 | 0 | 0 | 5 | - -## Directories -| path | files | code | comment | blank | total | -| :--- | ---: | ---: | ---: | ---: | ---: | -| . | 60 | 2,282 | 242 | 638 | 3,162 | -| .VSCodeCounter | 25 | 658 | 0 | 130 | 788 | -| .VSCodeCounter/2022-11-07_11-51-29 | 5 | 111 | 0 | 26 | 137 | -| .VSCodeCounter/2022-11-08_16-41-25 | 5 | 118 | 0 | 26 | 144 | -| .VSCodeCounter/2022-11-10_14-10-12 | 5 | 140 | 0 | 26 | 166 | -| .VSCodeCounter/2022-11-14_08-49-48 | 5 | 166 | 0 | 26 | 192 | -| .VSCodeCounter/2022-11-14_12-36-23 | 5 | 123 | 0 | 26 | 149 | -| .idea | 6 | 48 | 0 | 0 | 48 | -| .idea/inspectionProfiles | 1 | 6 | 0 | 0 | 6 | -| assets | 1 | 52 | 0 | 6 | 58 | -| src | 25 | 1,401 | 242 | 464 | 2,107 | -| src/audio | 2 | 3 | 0 | 2 | 5 | -| src/lyrics | 3 | 147 | 57 | 62 | 266 | -| src/metadata | 5 | 687 | 130 | 182 | 999 | -| src/scraping | 5 | 221 | 4 | 81 | 306 | -| src/utils | 4 | 89 | 1 | 33 | 123 | - -Summary / [Details](details.md) / [Diff Summary](diff.md) / [Diff Details](diff-details.md) \ No newline at end of file diff --git a/.VSCodeCounter/2022-11-14_15-47-38/results.txt b/.VSCodeCounter/2022-11-14_15-47-38/results.txt deleted file mode 100644 index f9d267f..0000000 --- a/.VSCodeCounter/2022-11-14_15-47-38/results.txt +++ /dev/null @@ -1,104 +0,0 @@ -Date : 2022-11-14 15:47:38 -Directory : /home/lars/Projects/music-downloader -Total : 60 files, 2282 codes, 242 comments, 638 blanks, all 3162 lines - -Languages -+------------------+------------+------------+------------+------------+------------+ -| language | files | code | comment | blank | total | -+------------------+------------+------------+------------+------------+------------+ -| Python | 25 | 1,401 | 242 | 464 | 2,107 | -| Markdown | 22 | 768 | 0 | 168 | 936 | -| SQLite | 1 | 52 | 0 | 6 | 58 | -| XML | 6 | 48 | 0 | 0 | 48 | -| pip requirements | 1 | 8 | 0 | 0 | 8 | -| JSON | 5 | 5 | 0 | 0 | 5 | -+------------------+------------+------------+------------+------------+------------+ - -Directories -+-----------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+ -| path | files | code | comment | blank | total | -+-----------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+ -| . | 60 | 2,282 | 242 | 638 | 3,162 | -| .VSCodeCounter | 25 | 658 | 0 | 130 | 788 | -| .VSCodeCounter/2022-11-07_11-51-29 | 5 | 111 | 0 | 26 | 137 | -| .VSCodeCounter/2022-11-08_16-41-25 | 5 | 118 | 0 | 26 | 144 | -| .VSCodeCounter/2022-11-10_14-10-12 | 5 | 140 | 0 | 26 | 166 | -| .VSCodeCounter/2022-11-14_08-49-48 | 5 | 166 | 0 | 26 | 192 | -| .VSCodeCounter/2022-11-14_12-36-23 | 5 | 123 | 0 | 26 | 149 | -| .idea | 6 | 48 | 0 | 0 | 48 | -| .idea/inspectionProfiles | 1 | 6 | 0 | 0 | 6 | -| assets | 1 | 52 | 0 | 6 | 58 | -| src | 25 | 1,401 | 242 | 464 | 2,107 | -| src/audio | 2 | 3 | 0 | 2 | 5 | -| src/lyrics | 3 | 147 | 57 | 62 | 266 | -| src/metadata | 5 | 687 | 130 | 182 | 999 | -| src/scraping | 5 | 221 | 4 | 81 | 306 | -| src/utils | 4 | 89 | 1 | 33 | 123 | -+-----------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+ - -Files -+-----------------------------------------------------------------------------------------+------------------+------------+------------+------------+------------+ -| filename | language | code | comment | blank | total | -+-----------------------------------------------------------------------------------------+------------------+------------+------------+------------+------------+ -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/details.md | Markdown | 37 | 0 | 6 | 43 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff-details.md | Markdown | 25 | 0 | 6 | 31 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff.md | Markdown | 22 | 0 | 7 | 29 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.json | JSON | 1 | 0 | 0 | 1 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.md | Markdown | 26 | 0 | 7 | 33 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/details.md | Markdown | 43 | 0 | 6 | 49 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/diff-details.md | Markdown | 25 | 0 | 6 | 31 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/diff.md | Markdown | 21 | 0 | 7 | 28 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/results.json | JSON | 1 | 0 | 0 | 1 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-08_16-41-25/results.md | Markdown | 28 | 0 | 7 | 35 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/details.md | Markdown | 52 | 0 | 6 | 58 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/diff-details.md | Markdown | 30 | 0 | 6 | 36 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/diff.md | Markdown | 26 | 0 | 7 | 33 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/results.json | JSON | 1 | 0 | 0 | 1 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-10_14-10-12/results.md | Markdown | 31 | 0 | 7 | 38 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/details.md | Markdown | 64 | 0 | 6 | 70 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/diff-details.md | Markdown | 42 | 0 | 6 | 48 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/diff.md | Markdown | 26 | 0 | 7 | 33 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/results.json | JSON | 1 | 0 | 0 | 1 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_08-49-48/results.md | Markdown | 33 | 0 | 7 | 40 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/details.md | Markdown | 34 | 0 | 6 | 40 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/diff-details.md | Markdown | 40 | 0 | 6 | 46 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/diff.md | Markdown | 28 | 0 | 7 | 35 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/results.json | JSON | 1 | 0 | 0 | 1 | -| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-14_12-36-23/results.md | Markdown | 20 | 0 | 7 | 27 | -| /home/lars/Projects/music-downloader/.idea/dataSources.xml | XML | 12 | 0 | 0 | 12 | -| /home/lars/Projects/music-downloader/.idea/inspectionProfiles/profiles_settings.xml | XML | 6 | 0 | 0 | 6 | -| /home/lars/Projects/music-downloader/.idea/misc.xml | XML | 4 | 0 | 0 | 4 | -| /home/lars/Projects/music-downloader/.idea/modules.xml | XML | 9 | 0 | 0 | 9 | -| /home/lars/Projects/music-downloader/.idea/music-downloader.iml | XML | 11 | 0 | 0 | 11 | -| /home/lars/Projects/music-downloader/.idea/vcs.xml | XML | 6 | 0 | 0 | 6 | -| /home/lars/Projects/music-downloader/README.md | Markdown | 102 | 0 | 36 | 138 | -| /home/lars/Projects/music-downloader/assets/database_structure.sql | SQLite | 52 | 0 | 6 | 58 | -| /home/lars/Projects/music-downloader/notes.md | Markdown | 13 | 0 | 2 | 15 | -| /home/lars/Projects/music-downloader/requirements.txt | pip requirements | 8 | 0 | 0 | 8 | -| /home/lars/Projects/music-downloader/src/__init__.py | Python | 0 | 0 | 1 | 1 | -| /home/lars/Projects/music-downloader/src/__main__.py | Python | 82 | 3 | 26 | 111 | -| /home/lars/Projects/music-downloader/src/audio/__init__.py | Python | 0 | 0 | 1 | 1 | -| /home/lars/Projects/music-downloader/src/audio/song.py | Python | 3 | 0 | 1 | 4 | -| /home/lars/Projects/music-downloader/src/download.py | Python | 56 | 11 | 18 | 85 | -| /home/lars/Projects/music-downloader/src/download_links.py | Python | 30 | 11 | 15 | 56 | -| /home/lars/Projects/music-downloader/src/lyrics/__init__.py | Python | 0 | 0 | 1 | 1 | -| /home/lars/Projects/music-downloader/src/lyrics/genius.py | Python | 99 | 38 | 35 | 172 | -| /home/lars/Projects/music-downloader/src/lyrics/lyrics.py | Python | 48 | 19 | 26 | 93 | -| /home/lars/Projects/music-downloader/src/lyrics_.py | Python | 51 | 19 | 26 | 96 | -| /home/lars/Projects/music-downloader/src/metadata/__init__.py | Python | 0 | 0 | 1 | 1 | -| /home/lars/Projects/music-downloader/src/metadata/database.py | Python | 161 | 66 | 40 | 267 | -| /home/lars/Projects/music-downloader/src/metadata/download.py | Python | 254 | 24 | 63 | 341 | -| /home/lars/Projects/music-downloader/src/metadata/object_handeling.py | Python | 19 | 0 | 6 | 25 | -| /home/lars/Projects/music-downloader/src/metadata/search.py | Python | 253 | 40 | 72 | 365 | -| /home/lars/Projects/music-downloader/src/scraping/__init__.py | Python | 0 | 0 | 1 | 1 | -| /home/lars/Projects/music-downloader/src/scraping/file_system.py | Python | 40 | 0 | 18 | 58 | -| /home/lars/Projects/music-downloader/src/scraping/musify.py | Python | 100 | 2 | 35 | 137 | -| /home/lars/Projects/music-downloader/src/scraping/phonetic_compares.py | Python | 15 | 0 | 8 | 23 | -| /home/lars/Projects/music-downloader/src/scraping/youtube_music.py | Python | 66 | 2 | 19 | 87 | -| /home/lars/Projects/music-downloader/src/url_to_path.py | Python | 35 | 6 | 18 | 59 | -| /home/lars/Projects/music-downloader/src/utils/__init__.py | Python | 1 | 1 | 1 | 3 | -| /home/lars/Projects/music-downloader/src/utils/object_handeling.py | Python | 19 | 0 | 6 | 25 | -| /home/lars/Projects/music-downloader/src/utils/phonetic_compares.py | Python | 34 | 0 | 15 | 49 | -| /home/lars/Projects/music-downloader/src/utils/shared.py | Python | 35 | 0 | 11 | 46 | -| Total | | 2,282 | 242 | 638 | 3,162 | -+-----------------------------------------------------------------------------------------+------------------+------------+------------+------------+------------+ \ No newline at end of file diff --git a/src/goof.py b/src/goof.py index 1ca9a54..ce47741 100644 --- a/src/goof.py +++ b/src/goof.py @@ -3,7 +3,8 @@ from music_kraken import ( Song, Lyrics, Target, - Source + Source, + Album ) import music_kraken.database.new_database as db @@ -12,9 +13,13 @@ import music_kraken.database.new_database as db cache = music_kraken.database.new_database.Database("test.db") cache.reset() +album_input = Album( + title="One Final Action" +) + song_input = Song( title="Vein Deep in the Solution", - release_name="One Final Action", + album_name=album_input.title, length=666, target=Target(file="~/Music/genre/artist/album/song.mp3", path="~/Music/genre/artist/album"), metadata={ @@ -27,15 +32,29 @@ song_input = Song( sources=[ Source(src="youtube", url="https://youtu.be/dfnsdajlhkjhsd"), Source(src="musify", url="https://ln.topdf.de/Music-Kraken/") - ] + ], + album_ref=album_input.reference ) -song_ref = song.reference +additional_song = Song( + title="A fcking Song", + album_ref=album_input.reference +) + +song_ref = song_input.reference print(song_ref) lyrics = Lyrics(text="these are some Lyrics that don't belong to any Song", language="en") -cache.push([song, lyrics]) +cache.push([album_input, song_input, lyrics, additional_song]) -song_output = cache.pull_single_song(song_ref=song_ref) -print(song_output) +# getting song by song ref +song_output_list = cache.pull_songs(song_ref=song_ref) +print(len(song_output_list), song_output_list) +# song_output = song_output_list[0] +# print(song_output) +# print("album id", song_output.album_ref) + +# getting song by album ref +song_output_list = cache.pull_songs(album_ref=album_input.reference) +print(len(song_output_list), song_output_list) diff --git a/src/music_kraken/__init__.py b/src/music_kraken/__init__.py index e40585d..735db13 100644 --- a/src/music_kraken/__init__.py +++ b/src/music_kraken/__init__.py @@ -43,6 +43,7 @@ Artist = database.Artist Source = database.Source Target = database.Target Lyrics = database.Lyrics +Album = database.Album MetadataSearch = metadata.MetadataSearch MetadataDownload = metadata.MetadataDownload diff --git a/src/music_kraken/database/__init__.py b/src/music_kraken/database/__init__.py index 6ea74e3..5e9f4d2 100644 --- a/src/music_kraken/database/__init__.py +++ b/src/music_kraken/database/__init__.py @@ -10,4 +10,6 @@ Target = objects.Target Metadata = objects.Metadata Lyrics = objects.Lyrics +Album = objects.Album + # cache = temp_database.TempDatabase() diff --git a/src/music_kraken/database/new_database.py b/src/music_kraken/database/new_database.py index 86b5d8e..cacb797 100644 --- a/src/music_kraken/database/new_database.py +++ b/src/music_kraken/database/new_database.py @@ -11,7 +11,8 @@ from .objects import ( Metadata, Target, Artist, - Source + Source, + Album ) logger = logging.getLogger("database") @@ -21,11 +22,11 @@ logger = logging.getLogger("database") # use complicated query builder SONG_QUERY = """ SELECT -Song.id AS song_id, Song.name AS title, Song.isrc AS isrc, Song.length AS length, +Song.id AS song_id, Song.name AS title, Song.isrc AS isrc, Song.length AS length, Song.album_id, Target.id AS target_id, Target.file AS file, Target.path AS path FROM Song LEFT JOIN Target ON Song.id=Target.song_id -WHERE Song.id="{song_id}"; +WHERE {where}; """ SOURCE_QUERY = """ SELECT id, src, url, song_id @@ -74,7 +75,7 @@ class Database: self.cursor = self.connection.cursor() return self.connection, self.cursor - def push_one(self, db_object: Song | Lyrics | Target | Artist | Source): + def push_one(self, db_object: Song | Lyrics | Target | Artist | Source | Album): if type(db_object) == Song: return self.push_song(song=db_object) @@ -90,7 +91,12 @@ class Database: if type(db_object) == Source: return self.push_source(source=db_object) - def push(self, db_object_list: List[Song | Lyrics | Target | Artist | Source]): + if type(db_object) == Album: + return self.push_album(album=db_object) + + logger.warning(f"type {type(db_object)} isn't yet supported by the db") + + def push(self, db_object_list: List[Song | Lyrics | Target | Artist | Source | Album]): """ This function is used to Write the data of any db_object to the database @@ -103,6 +109,24 @@ class Database: for db_object in db_object_list: self.push_one(db_object) + def push_album(self, album: Album): + table = "Album" + query = f"INSERT OR REPLACE INTO {table} (id, title, copyright, album_status, language, year, date, country, barcode) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?);" + + values = ( + album.id, + album.title, + album.copyright, + album.album_status, + album.language, + album.year, + album.date, + album.country, + album.barcode + ) + self.cursor.execute(query, values) + self.connection.commit() + def push_song(self, song: Song): # ADDING THE DATA FOR THE SONG OBJECT """ @@ -112,13 +136,15 @@ class Database: name - title """ table = "Song" - query = f"INSERT OR REPLACE INTO {table} (id, name, isrc, length) VALUES (?, ?, ?, ?);" + values = ( song.id, song.title, song.isrc, - song.length + song.length, + song.get_album_id() ) + query = f"INSERT OR REPLACE INTO {table} (id, name, isrc, length, album_id) VALUES (?, ?, ?, ?, ?);" self.cursor.execute(query, values) self.connection.commit() @@ -237,28 +263,11 @@ class Database: url=source_row['url'] ) for source_row in source_rows] - def pull_single_song(self, song_ref: Reference = None) -> Song: - """ - This function is used to get one song (including its children like Sources etc) - from one song id (a reference object) - :param song_ref: - :return requested_song: - """ - if song_ref.id is None: - raise ValueError("The Song ref doesn't point anywhere. Remember to use the debugger.") - query = SONG_QUERY.format(song_id=song_ref.id) - self.cursor.execute(query) - - song_rows = self.cursor.fetchall() - if len(song_rows) == 0: - logger.warning(f"No song found for the id {song_ref.id}") - return Song() - if len(song_rows) > 1: - logger.warning(f"Multiple Songs found for the id {song_ref.id}. Defaulting to the first one.") - song_result = song_rows[0] - + def get_song_from_row(self, song_result) -> Song: + song_id = song_result['song_id'] + return Song( - id_=song_result['song_id'], + id_=song_id, title=song_result['title'], isrc=song_result['isrc'], length=song_result['length'], @@ -267,10 +276,44 @@ class Database: file=song_result['file'], path=song_result['path'] ), - sources=self.pull_sources(song_ref=song_ref), - lyrics=self.pull_lyrics(song_ref=song_ref) + sources=self.pull_sources(song_ref=Reference(id_=song_id)), + lyrics=self.pull_lyrics(song_ref=Reference(id_=song_id)), + album_ref=Reference(song_result['album_id']) ) + def pull_songs(self, song_ref: Reference = None, album_ref: Reference = None) -> List[Song]: + """ + This function is used to get one song (including its children like Sources etc) + from one song id (a reference object) + :param song_ref: + :return requested_song: + """ + """ + if song_ref is None: + raise ValueError("The Song ref doesn't point anywhere. Remember to use the debugger.") + """ + where = "1=1" + if song_ref is not None: + where = f"Song.id=\"{song_ref.id}\"" + elif album_ref is not None: + where = f"Song.album_id=\"{album_ref.id}\"" + + query = SONG_QUERY.format(where=where) + self.cursor.execute(query) + + song_rows = self.cursor.fetchall() + """ + if len(song_rows) == 0: + logger.warning(f"No song found for the id {song_ref.id}") + return Song() + if len(song_rows) > 1: + logger.warning(f"Multiple Songs found for the id {song_ref.id}. Defaulting to the first one.") + """ + + return [self.get_song_from_row(song_result=song_result) for song_result in song_rows] + + def pull_albums(self, album_ref: Reference = None) -> List[Album]: + pass if __name__ == "__main__": cache = Database("") diff --git a/src/music_kraken/database/objects/__init__.py b/src/music_kraken/database/objects/__init__.py index 45d758c..2c1db2a 100644 --- a/src/music_kraken/database/objects/__init__.py +++ b/src/music_kraken/database/objects/__init__.py @@ -10,3 +10,5 @@ Source = song.Source Target = song.Target Metadata = song.Metadata Lyrics = song.Lyrics + +Album = song.Album diff --git a/src/music_kraken/database/objects/database_object.py b/src/music_kraken/database/objects/database_object.py index af46975..694ab91 100644 --- a/src/music_kraken/database/objects/database_object.py +++ b/src/music_kraken/database/objects/database_object.py @@ -12,6 +12,11 @@ class Reference: def __str__(self): return f"references to an object with the id: {self.id}" + def __eq__(self, __o: object) -> bool: + if type(__o) != type(self): + return False + return self.id == __o.id + class DatabaseObject: def __init__(self, id_: str = None) -> None: diff --git a/src/music_kraken/database/objects/song.py b/src/music_kraken/database/objects/song.py index d873d09..0498593 100644 --- a/src/music_kraken/database/objects/song.py +++ b/src/music_kraken/database/objects/song.py @@ -12,6 +12,10 @@ from .database_object import ( ) +""" +All Objects dependent +""" + class SongAttribute: def __init__(self, song_ref: Reference = None): # the reference to the song the lyrics belong to @@ -137,7 +141,7 @@ class Song(DatabaseObject): id_: str = None, mb_id: str = None, title: str = None, - release_name: str = None, + album_name: str = None, artist_names: List[str] = [], isrc: str = None, length: int = None, @@ -145,7 +149,7 @@ class Song(DatabaseObject): target: Target = None, lyrics: List[Lyrics] = None, metadata: dict = {}, - release_ref: str = None, + album_ref: Reference = None, artist_refs: List[Reference] = None ) -> None: """ @@ -159,7 +163,7 @@ class Song(DatabaseObject): # self.id_: str | None = id_ self.mb_id: str | None = mb_id self.title: str | None = title - self.release_name: str | None = release_name + self.album_name: str | None = album_name self.isrc: str | None = isrc self.length_: int | None = length self.artist_names = artist_names @@ -183,7 +187,7 @@ class Song(DatabaseObject): for lyrics_ in self.lyrics: lyrics_.add_song(self.reference) - self.release_ref = release_ref + self.album_ref = album_ref self.artist_refs = artist_refs def __str__(self) -> str: @@ -211,9 +215,66 @@ class Song(DatabaseObject): raise TypeError(f"length of a song must be of the type int not {type(length)}") self.length_ = length + def get_album_id(self) -> str | None: + if self.album_ref is None: + return None + return self.album_ref.id + length = property(fget=get_length, fset=set_length) +""" +All objects dependend on Album +""" + +class Album(DatabaseObject): + """ + -------DB-FIELDS------- + title TEXT, + copyright TEXT, + album_status TEXT, + language TEXT, + year TEXT, + date TEXT, + country TEXT, + barcode TEXT, + song_id BIGINT, + """ + def __init__( + self, + id_: str = None, + title: str = None, + copyright_: str = None, + album_status: str = None, + language: str = None, + year: str = None, + date: str = None, + country: str = None, + barcode: str = None, + song_ref_list: List[Reference] = [] + ) -> None: + DatabaseObject.__init__(self, id_=id_) + self.title: str = title + self.copyright: str = copyright_ + self.album_status: str = album_status + self.language: str = language + self.year: str = year + self.date: str = date + self.country: str = country + self.barcode: str = barcode + + self.song_ref_list: List[Reference] = song_ref_list + + def add_song(self, song_ref: Reference): + for existing_song_ref in self.song_ref_list: + if song_ref == existing_song_ref: + return + self.song_ref_list.append(song_ref) + + + + + if __name__ == "__main__": """ Example for creating a Song object diff --git a/src/music_kraken/static_files/new_db.sql b/src/music_kraken/static_files/new_db.sql index 9db6f26..89b427b 100644 --- a/src/music_kraken/static_files/new_db.sql +++ b/src/music_kraken/static_files/new_db.sql @@ -1,9 +1,11 @@ CREATE TABLE Song ( - id BIGINT AUTO_INCREMENT PRIMARY KEY, - name TEXT, - isrc TEXT, - length INT -- length is in milliseconds (could be wrong) + id BIGINT AUTO_INCREMENT PRIMARY KEY, + name TEXT, + isrc TEXT, + length INT, -- length is in milliseconds (could be wrong) + album_id BIGINT, + FOREIGN KEY(album_id) REFERENCES Album(id) ); @@ -27,15 +29,21 @@ CREATE TABLE Artist CREATE TABLE Album ( - id BIGINT AUTO_INCREMENT PRIMARY KEY, - song_id BIGINT, - FOREIGN KEY(song_id) REFERENCES Song(id) + id BIGINT AUTO_INCREMENT PRIMARY KEY, + title TEXT, + copyright TEXT, + album_status TEXT, + language TEXT, + year TEXT, + date TEXT, + country TEXT, + barcode TEXT ); CREATE TABLE Target ( id BIGINT AUTO_INCREMENT PRIMARY KEY, - file TEXT NOT NULL, + file TEXT, path TEXT, song_id BIGINT UNIQUE, FOREIGN KEY(song_id) REFERENCES Song(id) diff --git a/test.db b/test.db index 8d6d3aaf6acd17236e49929dfef4b9e40a0eb891..62e65919c01879ea254bac03e6f42f5335d19c92 100644 GIT binary patch literal 65536 zcmeI*-*4N-0S9nOiY;5Q&A5Q81$()o53$kE5=DukI;5G>DuEaOXl$`tF<{1#JW6b6 z$|b3^ei>k|E6}Gs?PdQ&-uAMW{s(&v_7`jz_P)m+d6H$hi9>fo5fxv;CZ#(bdH1;^ zCGtq>;K{ZZGvW@yBN`J;x+Udu(k}^-B3U3i;EV}JkzAOHaf%!a_} zCvvg;?z_3OD5jRr+P*bBYKO5G#TQ=Q`f$I~?siDG{b0L8E<}{pOC%j=lJ3xR_?rh? zkG6KZcgGRwvXU4c*m>01A4fdg+wW{W+9i)WpRSKnZ;<`Y!_IzZ_ruPCSk1cUY`iqZ zc(Kz-($FMLY2)(}Eogf}SYXq z;^}<>EcTh{cz&8V4ZCDK+8JKe5(QyEkItJS-&E$WY64>a#`Bl1v3M2~(j5M=ndb0d zFbr)b#y6&ND8eq~Fd@s>0;15K0w%kAU9xL#Z;Q=g82VR5+boQ!7sN>=ahCJM_o_tsfOs+SBH}RD3-}(xKOvMnqdwo#qqLxDV-f*k?GN_$wma?J z?=N2!+5A83$ZlL!J3{$T71O!1w{ykv+FI@_c~m<=FZp!HU#gj)_rvRD+;)=kPa3{= zp}HoaJ_~wc7njyTLY|n9f;qGokR#9cy@=U^z=_B@-?V&(Sd4rT@_cWk-eR*Bdt1?X zzQ0Et&olMGm~K+ygZoZ?zWj@|S8alcQDPYM3j7OJay&0B^Z&eTNb;Zg2m=Hl009U< z00Izz00bZa0SG_<0#gFN&Ci>6B*|=1jXJdIDr!x&l)7rEN=tPNrCzhD^{P(mnxVCc zYd`gZ9!ZY8X`^cETFX$Jnq%_>w4t=9+fZ!1#x&+MEVt=;xq0)xlsDCe)}*>?D28hB zd8^b_C{L`|Dyz42Lvu8@`3d7E7d~R_I627>_ZeS_Ka9OWkpD}TRh4+D^73;@e!)i= zAOHafKmY;|fB*y_009U<00Izr69m=^W-iMqhy0y_xtQhjf$0BVmE>>a)ilchLPu<^yBzAdcRWfgUxtw?6{i_tL*R?TX`JPr!1&sIS?P_issKB^Yz-ya`+Vi zs-o5Pq|={YR$!?70s($`K#e-g=2PcnFpP&58?QKhyJ@kC;|7sKKlA%fKkG+Mmerp3 z|38;s{3yOy2?QVj0SG_<0uX=z1Rwwb2tWV=uM^00Izz00bZa0SG_<0uZ=DAbI|Omh%DP`Tu!Iej?|u zSRA4t009U<00Izz00bZa0SG_<0y8eKlbBnXXe?HC)Xx;y#NQp&=s?zaXD%pM;(rk+@G| z;tYa2F|nA>FTW@8fY9KC9PrmHIN=l{uH;|_osYvRZ*1Rwwb2tWV=5P$##AOHaf%$PvZt)JyY zMIr6~&v3>;^#5l#i;(pHOSfi>3)zJL1Rwwb2tWV=5P$##AOHafK;T*eIR3vD7iNY4 X1Rwwb2tWV=5P$##AOHaf%%s3~ZLT@R delta 295 zcmZo@U}<>3JVBb3gMop8f1-lDCI^FFxEC+~4+cKYTMYb3{O9>5@tg8~pUWp&-0ruW(iQhhBvc3_#+Ph`kqb)