From 4b4a3e8fc3cf80b8e6016a65636063a8efc20309 Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Fri, 20 Jan 2023 10:56:40 +0100 Subject: [PATCH] added type to src --- .../2022-11-23_10-25-09/diff-details.md | 35 ------- .VSCodeCounter/2022-11-23_10-25-09/diff.csv | 22 ----- .VSCodeCounter/2022-11-23_10-25-09/diff.md | 30 ------ .VSCodeCounter/2022-11-23_10-25-09/diff.txt | 53 ---------- .../2022-11-23_10-25-09/results.csv | 35 ------- .../2022-11-23_10-25-09/results.json | 1 - .VSCodeCounter/2022-11-23_10-25-09/results.md | 31 ------ .../2022-11-23_10-25-09/results.txt | 67 ------------- .../details.md | 60 +++++++----- .../2023-01-19_15-23-38/diff-details.md | 17 ++++ .VSCodeCounter/2023-01-19_15-23-38/diff.csv | 4 + .VSCodeCounter/2023-01-19_15-23-38/diff.md | 25 +++++ .VSCodeCounter/2023-01-19_15-23-38/diff.txt | 30 ++++++ .../2023-01-19_15-23-38/results.csv | 51 ++++++++++ .../2023-01-19_15-23-38/results.json | 1 + .VSCodeCounter/2023-01-19_15-23-38/results.md | 40 ++++++++ .../2023-01-19_15-23-38/results.txt | 92 ++++++++++++++++++ src/goof.py | 7 +- src/music_kraken/__init__.py | 1 + src/music_kraken/database/__init__.py | 1 + src/music_kraken/database/new_database.py | 11 ++- src/music_kraken/database/objects/source.py | 7 +- src/music_kraken/static_files/new_db.sql | 2 +- test.db | Bin 69632 -> 65536 bytes 24 files changed, 316 insertions(+), 307 deletions(-) delete mode 100644 .VSCodeCounter/2022-11-23_10-25-09/diff-details.md delete mode 100644 .VSCodeCounter/2022-11-23_10-25-09/diff.csv delete mode 100644 .VSCodeCounter/2022-11-23_10-25-09/diff.md delete mode 100644 .VSCodeCounter/2022-11-23_10-25-09/diff.txt delete mode 100644 .VSCodeCounter/2022-11-23_10-25-09/results.csv delete mode 100644 .VSCodeCounter/2022-11-23_10-25-09/results.json delete mode 100644 .VSCodeCounter/2022-11-23_10-25-09/results.md delete mode 100644 .VSCodeCounter/2022-11-23_10-25-09/results.txt rename .VSCodeCounter/{2022-11-23_10-25-09 => 2023-01-19_15-23-38}/details.md (50%) create mode 100644 .VSCodeCounter/2023-01-19_15-23-38/diff-details.md create mode 100644 .VSCodeCounter/2023-01-19_15-23-38/diff.csv create mode 100644 .VSCodeCounter/2023-01-19_15-23-38/diff.md create mode 100644 .VSCodeCounter/2023-01-19_15-23-38/diff.txt create mode 100644 .VSCodeCounter/2023-01-19_15-23-38/results.csv create mode 100644 .VSCodeCounter/2023-01-19_15-23-38/results.json create mode 100644 .VSCodeCounter/2023-01-19_15-23-38/results.md create mode 100644 .VSCodeCounter/2023-01-19_15-23-38/results.txt diff --git a/.VSCodeCounter/2022-11-23_10-25-09/diff-details.md b/.VSCodeCounter/2022-11-23_10-25-09/diff-details.md deleted file mode 100644 index 74541fc..0000000 --- a/.VSCodeCounter/2022-11-23_10-25-09/diff-details.md +++ /dev/null @@ -1,35 +0,0 @@ -# Diff Details - -Date : 2022-11-23 10:25:09 - -Directory /home/lars/Projects/music-downloader/src - -Total : 20 files, 276 codes, -148 comments, 89 blanks, all 217 lines - -[Summary](results.md) / [Details](details.md) / [Diff Summary](diff.md) / Diff Details - -## Files -| filename | language | code | comment | blank | total | -| :--- | :--- | ---: | ---: | ---: | ---: | -| [src/__init__.py](/src/__init__.py) | Python | 0 | 0 | 1 | 1 | -| [src/database_structure.sql](/src/database_structure.sql) | SQLite | 60 | 0 | 7 | 67 | -| [src/music_kraken/__init__.py](/src/music_kraken/__init__.py) | Python | 16 | 6 | 1 | 23 | -| [src/music_kraken/audio_source/fetch_audio.py](/src/music_kraken/audio_source/fetch_audio.py) | Python | -1 | 1 | -2 | -2 | -| [src/music_kraken/audio_source/fetch_source.py](/src/music_kraken/audio_source/fetch_source.py) | Python | -1 | 0 | 1 | 0 | -| [src/music_kraken/audio_source/sources/musify.py](/src/music_kraken/audio_source/sources/musify.py) | Python | 4 | -111 | 0 | -107 | -| [src/music_kraken/audio_source/sources/source.py](/src/music_kraken/audio_source/sources/source.py) | Python | 1 | 0 | 2 | 3 | -| [src/music_kraken/audio_source/sources/youtube.py](/src/music_kraken/audio_source/sources/youtube.py) | Python | -4 | -61 | 2 | -63 | -| [src/music_kraken/database/database.py](/src/music_kraken/database/database.py) | Python | 163 | 80 | 41 | 284 | -| [src/music_kraken/database/song.py](/src/music_kraken/database/song.py) | Python | 86 | 5 | 34 | 125 | -| [src/music_kraken/database/temp_database.py](/src/music_kraken/database/temp_database.py) | Python | 11 | 0 | 5 | 16 | -| [src/music_kraken/lyrics/lyrics.py](/src/music_kraken/lyrics/lyrics.py) | Python | 1 | 0 | 1 | 2 | -| [src/music_kraken/metadata/metadata_fetch.py](/src/music_kraken/metadata/metadata_fetch.py) | Python | 1 | 0 | 1 | 2 | -| [src/music_kraken/target/set_target.py](/src/music_kraken/target/set_target.py) | Python | 1 | 0 | 0 | 1 | -| [src/music_kraken/utils/database.py](/src/music_kraken/utils/database.py) | Python | -158 | -80 | -40 | -278 | -| [src/music_kraken/utils/functions.py](/src/music_kraken/utils/functions.py) | Python | 3 | 0 | 1 | 4 | -| [src/music_kraken/utils/shared.py](/src/music_kraken/utils/shared.py) | Python | -7 | 0 | -3 | -10 | -| [src/music_kraken_cli.py](/src/music_kraken_cli.py) | Python | 94 | 9 | 32 | 135 | -| [src/music_kraken_gtk.py](/src/music_kraken_gtk.py) | Python | 3 | 0 | 2 | 5 | -| [src/try-programming-interface.py](/src/try-programming-interface.py) | Python | 3 | 3 | 3 | 9 | - -[Summary](results.md) / [Details](details.md) / [Diff Summary](diff.md) / Diff Details \ No newline at end of file diff --git a/.VSCodeCounter/2022-11-23_10-25-09/diff.csv b/.VSCodeCounter/2022-11-23_10-25-09/diff.csv deleted file mode 100644 index 07b814c..0000000 --- a/.VSCodeCounter/2022-11-23_10-25-09/diff.csv +++ /dev/null @@ -1,22 +0,0 @@ -"filename", "language", "Python", "SQLite", "comment", "blank", "total" -"/home/lars/Projects/music-downloader/src/__init__.py", "Python", 0, 0, 0, 1, 1 -"/home/lars/Projects/music-downloader/src/database_structure.sql", "SQLite", 0, 60, 0, 7, 67 -"/home/lars/Projects/music-downloader/src/music_kraken/__init__.py", "Python", 16, 0, 6, 1, 23 -"/home/lars/Projects/music-downloader/src/music_kraken/audio_source/fetch_audio.py", "Python", -1, 0, 1, -2, -2 -"/home/lars/Projects/music-downloader/src/music_kraken/audio_source/fetch_source.py", "Python", -1, 0, 0, 1, 0 -"/home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/musify.py", "Python", 4, 0, -111, 0, -107 -"/home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/source.py", "Python", 1, 0, 0, 2, 3 -"/home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/youtube.py", "Python", -4, 0, -61, 2, -63 -"/home/lars/Projects/music-downloader/src/music_kraken/database/database.py", "Python", 163, 0, 80, 41, 284 -"/home/lars/Projects/music-downloader/src/music_kraken/database/song.py", "Python", 86, 0, 5, 34, 125 -"/home/lars/Projects/music-downloader/src/music_kraken/database/temp_database.py", "Python", 11, 0, 0, 5, 16 -"/home/lars/Projects/music-downloader/src/music_kraken/lyrics/lyrics.py", "Python", 1, 0, 0, 1, 2 -"/home/lars/Projects/music-downloader/src/music_kraken/metadata/metadata_fetch.py", "Python", 1, 0, 0, 1, 2 -"/home/lars/Projects/music-downloader/src/music_kraken/target/set_target.py", "Python", 1, 0, 0, 0, 1 -"/home/lars/Projects/music-downloader/src/music_kraken/utils/database.py", "Python", -158, 0, -80, -40, -278 -"/home/lars/Projects/music-downloader/src/music_kraken/utils/functions.py", "Python", 3, 0, 0, 1, 4 -"/home/lars/Projects/music-downloader/src/music_kraken/utils/shared.py", "Python", -7, 0, 0, -3, -10 -"/home/lars/Projects/music-downloader/src/music_kraken_cli.py", "Python", 94, 0, 9, 32, 135 -"/home/lars/Projects/music-downloader/src/music_kraken_gtk.py", "Python", 3, 0, 0, 2, 5 -"/home/lars/Projects/music-downloader/src/try-programming-interface.py", "Python", 3, 0, 3, 3, 9 -"Total", "-", 216, 60, -148, 89, 217 \ No newline at end of file diff --git a/.VSCodeCounter/2022-11-23_10-25-09/diff.md b/.VSCodeCounter/2022-11-23_10-25-09/diff.md deleted file mode 100644 index 396aba4..0000000 --- a/.VSCodeCounter/2022-11-23_10-25-09/diff.md +++ /dev/null @@ -1,30 +0,0 @@ -# Diff Summary - -Date : 2022-11-23 10:25:09 - -Directory /home/lars/Projects/music-downloader/src - -Total : 20 files, 276 codes, -148 comments, 89 blanks, all 217 lines - -[Summary](results.md) / [Details](details.md) / Diff Summary / [Diff Details](diff-details.md) - -## Languages -| language | files | code | comment | blank | total | -| :--- | ---: | ---: | ---: | ---: | ---: | -| Python | 19 | 216 | -148 | 82 | 150 | -| SQLite | 1 | 60 | 0 | 7 | 67 | - -## Directories -| path | files | code | comment | blank | total | -| :--- | ---: | ---: | ---: | ---: | ---: | -| . | 20 | 276 | -148 | 89 | 217 | -| music_kraken | 15 | 116 | -160 | 44 | 0 | -| music_kraken/audio_source | 5 | -1 | -171 | 3 | -169 | -| music_kraken/audio_source/sources | 3 | 1 | -172 | 4 | -167 | -| music_kraken/database | 3 | 260 | 85 | 80 | 425 | -| music_kraken/lyrics | 1 | 1 | 0 | 1 | 2 | -| music_kraken/metadata | 1 | 1 | 0 | 1 | 2 | -| music_kraken/target | 1 | 1 | 0 | 0 | 1 | -| music_kraken/utils | 3 | -162 | -80 | -42 | -284 | - -[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-23_10-25-09/diff.txt b/.VSCodeCounter/2022-11-23_10-25-09/diff.txt deleted file mode 100644 index 2c8c64c..0000000 --- a/.VSCodeCounter/2022-11-23_10-25-09/diff.txt +++ /dev/null @@ -1,53 +0,0 @@ -Date : 2022-11-23 10:25:09 -Directory : /home/lars/Projects/music-downloader/src -Total : 20 files, 276 codes, -148 comments, 89 blanks, all 217 lines - -Languages -+----------+------------+------------+------------+------------+------------+ -| language | files | code | comment | blank | total | -+----------+------------+------------+------------+------------+------------+ -| Python | 19 | 216 | -148 | 82 | 150 | -| SQLite | 1 | 60 | 0 | 7 | 67 | -+----------+------------+------------+------------+------------+------------+ - -Directories -+---------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+ -| path | files | code | comment | blank | total | -+---------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+ -| . | 20 | 276 | -148 | 89 | 217 | -| music_kraken | 15 | 116 | -160 | 44 | 0 | -| music_kraken/audio_source | 5 | -1 | -171 | 3 | -169 | -| music_kraken/audio_source/sources | 3 | 1 | -172 | 4 | -167 | -| music_kraken/database | 3 | 260 | 85 | 80 | 425 | -| music_kraken/lyrics | 1 | 1 | 0 | 1 | 2 | -| music_kraken/metadata | 1 | 1 | 0 | 1 | 2 | -| music_kraken/target | 1 | 1 | 0 | 0 | 1 | -| music_kraken/utils | 3 | -162 | -80 | -42 | -284 | -+---------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+ - -Files -+---------------------------------------------------------------------------------------+----------+------------+------------+------------+------------+ -| filename | language | code | comment | blank | total | -+---------------------------------------------------------------------------------------+----------+------------+------------+------------+------------+ -| /home/lars/Projects/music-downloader/src/__init__.py | Python | 0 | 0 | 1 | 1 | -| /home/lars/Projects/music-downloader/src/database_structure.sql | SQLite | 60 | 0 | 7 | 67 | -| /home/lars/Projects/music-downloader/src/music_kraken/__init__.py | Python | 16 | 6 | 1 | 23 | -| /home/lars/Projects/music-downloader/src/music_kraken/audio_source/fetch_audio.py | Python | -1 | 1 | -2 | -2 | -| /home/lars/Projects/music-downloader/src/music_kraken/audio_source/fetch_source.py | Python | -1 | 0 | 1 | 0 | -| /home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/musify.py | Python | 4 | -111 | 0 | -107 | -| /home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/source.py | Python | 1 | 0 | 2 | 3 | -| /home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/youtube.py | Python | -4 | -61 | 2 | -63 | -| /home/lars/Projects/music-downloader/src/music_kraken/database/database.py | Python | 163 | 80 | 41 | 284 | -| /home/lars/Projects/music-downloader/src/music_kraken/database/song.py | Python | 86 | 5 | 34 | 125 | -| /home/lars/Projects/music-downloader/src/music_kraken/database/temp_database.py | Python | 11 | 0 | 5 | 16 | -| /home/lars/Projects/music-downloader/src/music_kraken/lyrics/lyrics.py | Python | 1 | 0 | 1 | 2 | -| /home/lars/Projects/music-downloader/src/music_kraken/metadata/metadata_fetch.py | Python | 1 | 0 | 1 | 2 | -| /home/lars/Projects/music-downloader/src/music_kraken/target/set_target.py | Python | 1 | 0 | 0 | 1 | -| /home/lars/Projects/music-downloader/src/music_kraken/utils/database.py | Python | -158 | -80 | -40 | -278 | -| /home/lars/Projects/music-downloader/src/music_kraken/utils/functions.py | Python | 3 | 0 | 1 | 4 | -| /home/lars/Projects/music-downloader/src/music_kraken/utils/shared.py | Python | -7 | 0 | -3 | -10 | -| /home/lars/Projects/music-downloader/src/music_kraken_cli.py | Python | 94 | 9 | 32 | 135 | -| /home/lars/Projects/music-downloader/src/music_kraken_gtk.py | Python | 3 | 0 | 2 | 5 | -| /home/lars/Projects/music-downloader/src/try-programming-interface.py | Python | 3 | 3 | 3 | 9 | -| Total | | 276 | -148 | 89 | 217 | -+---------------------------------------------------------------------------------------+----------+------------+------------+------------+------------+ \ No newline at end of file diff --git a/.VSCodeCounter/2022-11-23_10-25-09/results.csv b/.VSCodeCounter/2022-11-23_10-25-09/results.csv deleted file mode 100644 index 9bbafdb..0000000 --- a/.VSCodeCounter/2022-11-23_10-25-09/results.csv +++ /dev/null @@ -1,35 +0,0 @@ -"filename", "language", "Python", "SQLite", "comment", "blank", "total" -"/home/lars/Projects/music-downloader/src/__init__.py", "Python", 0, 0, 0, 1, 1 -"/home/lars/Projects/music-downloader/src/database_structure.sql", "SQLite", 0, 60, 0, 7, 67 -"/home/lars/Projects/music-downloader/src/music_kraken/__init__.py", "Python", 91, 0, 14, 28, 133 -"/home/lars/Projects/music-downloader/src/music_kraken/__main__.py", "Python", 4, 0, 3, 3, 10 -"/home/lars/Projects/music-downloader/src/music_kraken/audio_source/__init__.py", "Python", 0, 0, 0, 1, 1 -"/home/lars/Projects/music-downloader/src/music_kraken/audio_source/fetch_audio.py", "Python", 64, 0, 21, 20, 105 -"/home/lars/Projects/music-downloader/src/music_kraken/audio_source/fetch_source.py", "Python", 36, 0, 28, 16, 80 -"/home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/__init__.py", "Python", 0, 0, 0, 1, 1 -"/home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/local_files.py", "Python", 40, 0, 0, 18, 58 -"/home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/musify.py", "Python", 130, 0, 9, 37, 176 -"/home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/source.py", "Python", 11, 0, 5, 8, 24 -"/home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/youtube.py", "Python", 65, 0, 6, 22, 93 -"/home/lars/Projects/music-downloader/src/music_kraken/database/database.py", "Python", 163, 0, 80, 41, 284 -"/home/lars/Projects/music-downloader/src/music_kraken/database/song.py", "Python", 86, 0, 5, 34, 125 -"/home/lars/Projects/music-downloader/src/music_kraken/database/temp_database.py", "Python", 11, 0, 0, 5, 16 -"/home/lars/Projects/music-downloader/src/music_kraken/lyrics/__init__.py", "Python", 0, 0, 0, 1, 1 -"/home/lars/Projects/music-downloader/src/music_kraken/lyrics/genius.py", "Python", 99, 0, 38, 35, 172 -"/home/lars/Projects/music-downloader/src/music_kraken/lyrics/lyrics.py", "Python", 50, 0, 19, 26, 95 -"/home/lars/Projects/music-downloader/src/music_kraken/metadata/__init__.py", "Python", 0, 0, 0, 1, 1 -"/home/lars/Projects/music-downloader/src/music_kraken/metadata/metadata_fetch.py", "Python", 255, 0, 24, 64, 343 -"/home/lars/Projects/music-downloader/src/music_kraken/metadata/metadata_search.py", "Python", 253, 0, 40, 72, 365 -"/home/lars/Projects/music-downloader/src/music_kraken/tagging/__init__.py", "Python", 0, 0, 0, 1, 1 -"/home/lars/Projects/music-downloader/src/music_kraken/tagging/song.py", "Python", 3, 0, 0, 1, 4 -"/home/lars/Projects/music-downloader/src/music_kraken/target/__init__.py", "Python", 0, 0, 0, 1, 1 -"/home/lars/Projects/music-downloader/src/music_kraken/target/set_target.py", "Python", 37, 0, 7, 18, 62 -"/home/lars/Projects/music-downloader/src/music_kraken/utils/__init__.py", "Python", 1, 0, 1, 1, 3 -"/home/lars/Projects/music-downloader/src/music_kraken/utils/functions.py", "Python", 3, 0, 0, 1, 4 -"/home/lars/Projects/music-downloader/src/music_kraken/utils/object_handeling.py", "Python", 19, 0, 0, 6, 25 -"/home/lars/Projects/music-downloader/src/music_kraken/utils/phonetic_compares.py", "Python", 34, 0, 0, 15, 49 -"/home/lars/Projects/music-downloader/src/music_kraken/utils/shared.py", "Python", 39, 0, 2, 9, 50 -"/home/lars/Projects/music-downloader/src/music_kraken_cli.py", "Python", 94, 0, 9, 32, 135 -"/home/lars/Projects/music-downloader/src/music_kraken_gtk.py", "Python", 3, 0, 0, 2, 5 -"/home/lars/Projects/music-downloader/src/try-programming-interface.py", "Python", 3, 0, 3, 3, 9 -"Total", "-", 1594, 60, 314, 531, 2499 \ No newline at end of file diff --git a/.VSCodeCounter/2022-11-23_10-25-09/results.json b/.VSCodeCounter/2022-11-23_10-25-09/results.json deleted file mode 100644 index 9e2bdc5..0000000 --- a/.VSCodeCounter/2022-11-23_10-25-09/results.json +++ /dev/null @@ -1 +0,0 @@ -{"file:///home/lars/Projects/music-downloader/src/music_kraken_cli.py":{"language":"Python","code":94,"comment":9,"blank":32},"file:///home/lars/Projects/music-downloader/src/music_kraken/__init__.py":{"language":"Python","code":91,"comment":14,"blank":28},"file:///home/lars/Projects/music-downloader/src/__init__.py":{"language":"Python","code":0,"comment":0,"blank":1},"file:///home/lars/Projects/music-downloader/src/music_kraken/database/database.py":{"language":"Python","code":163,"comment":80,"blank":41},"file:///home/lars/Projects/music-downloader/src/music_kraken/audio_source/fetch_source.py":{"language":"Python","code":36,"comment":28,"blank":16},"file:///home/lars/Projects/music-downloader/src/music_kraken/database/song.py":{"language":"Python","code":86,"comment":5,"blank":34},"file:///home/lars/Projects/music-downloader/src/music_kraken/database/temp_database.py":{"language":"Python","code":11,"comment":0,"blank":5},"file:///home/lars/Projects/music-downloader/src/music_kraken/audio_source/fetch_audio.py":{"language":"Python","code":64,"comment":21,"blank":20},"file:///home/lars/Projects/music-downloader/src/music_kraken/audio_source/__init__.py":{"language":"Python","code":0,"comment":0,"blank":1},"file:///home/lars/Projects/music-downloader/src/music_kraken/utils/functions.py":{"language":"Python","code":3,"comment":0,"blank":1},"file:///home/lars/Projects/music-downloader/src/music_kraken/utils/object_handeling.py":{"language":"Python","code":19,"comment":0,"blank":6},"file:///home/lars/Projects/music-downloader/src/music_kraken/utils/shared.py":{"language":"Python","code":39,"comment":2,"blank":9},"file:///home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/local_files.py":{"language":"Python","code":40,"comment":0,"blank":18},"file:///home/lars/Projects/music-downloader/src/music_kraken/tagging/__init__.py":{"language":"Python","code":0,"comment":0,"blank":1},"file:///home/lars/Projects/music-downloader/src/music_kraken/tagging/song.py":{"language":"Python","code":3,"comment":0,"blank":1},"file:///home/lars/Projects/music-downloader/src/music_kraken/utils/__init__.py":{"language":"Python","code":1,"comment":1,"blank":1},"file:///home/lars/Projects/music-downloader/src/music_kraken/utils/phonetic_compares.py":{"language":"Python","code":34,"comment":0,"blank":15},"file:///home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/__init__.py":{"language":"Python","code":0,"comment":0,"blank":1},"file:///home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/source.py":{"language":"Python","code":11,"comment":5,"blank":8},"file:///home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/youtube.py":{"language":"Python","code":65,"comment":6,"blank":22},"file:///home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/musify.py":{"language":"Python","code":130,"comment":9,"blank":37},"file:///home/lars/Projects/music-downloader/src/music_kraken/__main__.py":{"language":"Python","code":4,"comment":3,"blank":3},"file:///home/lars/Projects/music-downloader/src/music_kraken/target/__init__.py":{"language":"Python","code":0,"comment":0,"blank":1},"file:///home/lars/Projects/music-downloader/src/music_kraken/metadata/__init__.py":{"language":"Python","code":0,"comment":0,"blank":1},"file:///home/lars/Projects/music-downloader/src/music_kraken/metadata/metadata_search.py":{"language":"Python","code":253,"comment":40,"blank":72},"file:///home/lars/Projects/music-downloader/src/music_kraken/metadata/metadata_fetch.py":{"language":"Python","code":255,"comment":24,"blank":64},"file:///home/lars/Projects/music-downloader/src/music_kraken/target/set_target.py":{"language":"Python","code":37,"comment":7,"blank":18},"file:///home/lars/Projects/music-downloader/src/music_kraken/lyrics/lyrics.py":{"language":"Python","code":50,"comment":19,"blank":26},"file:///home/lars/Projects/music-downloader/src/music_kraken/lyrics/genius.py":{"language":"Python","code":99,"comment":38,"blank":35},"file:///home/lars/Projects/music-downloader/src/music_kraken/lyrics/__init__.py":{"language":"Python","code":0,"comment":0,"blank":1},"file:///home/lars/Projects/music-downloader/src/music_kraken_gtk.py":{"language":"Python","code":3,"comment":0,"blank":2},"file:///home/lars/Projects/music-downloader/src/database_structure.sql":{"language":"SQLite","code":60,"comment":0,"blank":7},"file:///home/lars/Projects/music-downloader/src/try-programming-interface.py":{"language":"Python","code":3,"comment":3,"blank":3}} \ No newline at end of file diff --git a/.VSCodeCounter/2022-11-23_10-25-09/results.md b/.VSCodeCounter/2022-11-23_10-25-09/results.md deleted file mode 100644 index dd4d7c9..0000000 --- a/.VSCodeCounter/2022-11-23_10-25-09/results.md +++ /dev/null @@ -1,31 +0,0 @@ -# Summary - -Date : 2022-11-23 10:25:09 - -Directory /home/lars/Projects/music-downloader/src - -Total : 33 files, 1654 codes, 314 comments, 531 blanks, all 2499 lines - -Summary / [Details](details.md) / [Diff Summary](diff.md) / [Diff Details](diff-details.md) - -## Languages -| language | files | code | comment | blank | total | -| :--- | ---: | ---: | ---: | ---: | ---: | -| Python | 32 | 1,594 | 314 | 524 | 2,432 | -| SQLite | 1 | 60 | 0 | 7 | 67 | - -## Directories -| path | files | code | comment | blank | total | -| :--- | ---: | ---: | ---: | ---: | ---: | -| . | 33 | 1,654 | 314 | 531 | 2,499 | -| music_kraken | 28 | 1,494 | 302 | 486 | 2,282 | -| music_kraken/audio_source | 8 | 346 | 69 | 123 | 538 | -| music_kraken/audio_source/sources | 5 | 246 | 20 | 86 | 352 | -| music_kraken/database | 3 | 260 | 85 | 80 | 425 | -| music_kraken/lyrics | 3 | 149 | 57 | 62 | 268 | -| music_kraken/metadata | 3 | 508 | 64 | 137 | 709 | -| music_kraken/tagging | 2 | 3 | 0 | 2 | 5 | -| music_kraken/target | 2 | 37 | 7 | 19 | 63 | -| music_kraken/utils | 5 | 96 | 3 | 32 | 131 | - -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-23_10-25-09/results.txt b/.VSCodeCounter/2022-11-23_10-25-09/results.txt deleted file mode 100644 index 5414de2..0000000 --- a/.VSCodeCounter/2022-11-23_10-25-09/results.txt +++ /dev/null @@ -1,67 +0,0 @@ -Date : 2022-11-23 10:25:09 -Directory : /home/lars/Projects/music-downloader/src -Total : 33 files, 1654 codes, 314 comments, 531 blanks, all 2499 lines - -Languages -+----------+------------+------------+------------+------------+------------+ -| language | files | code | comment | blank | total | -+----------+------------+------------+------------+------------+------------+ -| Python | 32 | 1,594 | 314 | 524 | 2,432 | -| SQLite | 1 | 60 | 0 | 7 | 67 | -+----------+------------+------------+------------+------------+------------+ - -Directories -+-------------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+ -| path | files | code | comment | blank | total | -+-------------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+ -| . | 33 | 1,654 | 314 | 531 | 2,499 | -| music_kraken | 28 | 1,494 | 302 | 486 | 2,282 | -| music_kraken/audio_source | 8 | 346 | 69 | 123 | 538 | -| music_kraken/audio_source/sources | 5 | 246 | 20 | 86 | 352 | -| music_kraken/database | 3 | 260 | 85 | 80 | 425 | -| music_kraken/lyrics | 3 | 149 | 57 | 62 | 268 | -| music_kraken/metadata | 3 | 508 | 64 | 137 | 709 | -| music_kraken/tagging | 2 | 3 | 0 | 2 | 5 | -| music_kraken/target | 2 | 37 | 7 | 19 | 63 | -| music_kraken/utils | 5 | 96 | 3 | 32 | 131 | -+-------------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+ - -Files -+-------------------------------------------------------------------------------------------+----------+------------+------------+------------+------------+ -| filename | language | code | comment | blank | total | -+-------------------------------------------------------------------------------------------+----------+------------+------------+------------+------------+ -| /home/lars/Projects/music-downloader/src/__init__.py | Python | 0 | 0 | 1 | 1 | -| /home/lars/Projects/music-downloader/src/database_structure.sql | SQLite | 60 | 0 | 7 | 67 | -| /home/lars/Projects/music-downloader/src/music_kraken/__init__.py | Python | 91 | 14 | 28 | 133 | -| /home/lars/Projects/music-downloader/src/music_kraken/__main__.py | Python | 4 | 3 | 3 | 10 | -| /home/lars/Projects/music-downloader/src/music_kraken/audio_source/__init__.py | Python | 0 | 0 | 1 | 1 | -| /home/lars/Projects/music-downloader/src/music_kraken/audio_source/fetch_audio.py | Python | 64 | 21 | 20 | 105 | -| /home/lars/Projects/music-downloader/src/music_kraken/audio_source/fetch_source.py | Python | 36 | 28 | 16 | 80 | -| /home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/__init__.py | Python | 0 | 0 | 1 | 1 | -| /home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/local_files.py | Python | 40 | 0 | 18 | 58 | -| /home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/musify.py | Python | 130 | 9 | 37 | 176 | -| /home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/source.py | Python | 11 | 5 | 8 | 24 | -| /home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/youtube.py | Python | 65 | 6 | 22 | 93 | -| /home/lars/Projects/music-downloader/src/music_kraken/database/database.py | Python | 163 | 80 | 41 | 284 | -| /home/lars/Projects/music-downloader/src/music_kraken/database/song.py | Python | 86 | 5 | 34 | 125 | -| /home/lars/Projects/music-downloader/src/music_kraken/database/temp_database.py | Python | 11 | 0 | 5 | 16 | -| /home/lars/Projects/music-downloader/src/music_kraken/lyrics/__init__.py | Python | 0 | 0 | 1 | 1 | -| /home/lars/Projects/music-downloader/src/music_kraken/lyrics/genius.py | Python | 99 | 38 | 35 | 172 | -| /home/lars/Projects/music-downloader/src/music_kraken/lyrics/lyrics.py | Python | 50 | 19 | 26 | 95 | -| /home/lars/Projects/music-downloader/src/music_kraken/metadata/__init__.py | Python | 0 | 0 | 1 | 1 | -| /home/lars/Projects/music-downloader/src/music_kraken/metadata/metadata_fetch.py | Python | 255 | 24 | 64 | 343 | -| /home/lars/Projects/music-downloader/src/music_kraken/metadata/metadata_search.py | Python | 253 | 40 | 72 | 365 | -| /home/lars/Projects/music-downloader/src/music_kraken/tagging/__init__.py | Python | 0 | 0 | 1 | 1 | -| /home/lars/Projects/music-downloader/src/music_kraken/tagging/song.py | Python | 3 | 0 | 1 | 4 | -| /home/lars/Projects/music-downloader/src/music_kraken/target/__init__.py | Python | 0 | 0 | 1 | 1 | -| /home/lars/Projects/music-downloader/src/music_kraken/target/set_target.py | Python | 37 | 7 | 18 | 62 | -| /home/lars/Projects/music-downloader/src/music_kraken/utils/__init__.py | Python | 1 | 1 | 1 | 3 | -| /home/lars/Projects/music-downloader/src/music_kraken/utils/functions.py | Python | 3 | 0 | 1 | 4 | -| /home/lars/Projects/music-downloader/src/music_kraken/utils/object_handeling.py | Python | 19 | 0 | 6 | 25 | -| /home/lars/Projects/music-downloader/src/music_kraken/utils/phonetic_compares.py | Python | 34 | 0 | 15 | 49 | -| /home/lars/Projects/music-downloader/src/music_kraken/utils/shared.py | Python | 39 | 2 | 9 | 50 | -| /home/lars/Projects/music-downloader/src/music_kraken_cli.py | Python | 94 | 9 | 32 | 135 | -| /home/lars/Projects/music-downloader/src/music_kraken_gtk.py | Python | 3 | 0 | 2 | 5 | -| /home/lars/Projects/music-downloader/src/try-programming-interface.py | Python | 3 | 3 | 3 | 9 | -| Total | | 1,654 | 314 | 531 | 2,499 | -+-------------------------------------------------------------------------------------------+----------+------------+------------+------------+------------+ \ No newline at end of file diff --git a/.VSCodeCounter/2022-11-23_10-25-09/details.md b/.VSCodeCounter/2023-01-19_15-23-38/details.md similarity index 50% rename from .VSCodeCounter/2022-11-23_10-25-09/details.md rename to .VSCodeCounter/2023-01-19_15-23-38/details.md index 09f53a9..ea848e9 100644 --- a/.VSCodeCounter/2022-11-23_10-25-09/details.md +++ b/.VSCodeCounter/2023-01-19_15-23-38/details.md @@ -1,10 +1,10 @@ # Details -Date : 2022-11-23 10:25:09 +Date : 2023-01-19 15:23:38 Directory /home/lars/Projects/music-downloader/src -Total : 33 files, 1654 codes, 314 comments, 531 blanks, all 2499 lines +Total : 49 files, 3404 codes, 664 comments, 974 blanks, all 5042 lines [Summary](results.md) / Details / [Diff Summary](diff.md) / [Diff Details](diff-details.md) @@ -12,37 +12,53 @@ Total : 33 files, 1654 codes, 314 comments, 531 blanks, all 2499 lines | filename | language | code | comment | blank | total | | :--- | :--- | ---: | ---: | ---: | ---: | | [src/__init__.py](/src/__init__.py) | Python | 0 | 0 | 1 | 1 | -| [src/database_structure.sql](/src/database_structure.sql) | SQLite | 60 | 0 | 7 | 67 | -| [src/music_kraken/__init__.py](/src/music_kraken/__init__.py) | Python | 91 | 14 | 28 | 133 | -| [src/music_kraken/__main__.py](/src/music_kraken/__main__.py) | Python | 4 | 3 | 3 | 10 | -| [src/music_kraken/audio_source/__init__.py](/src/music_kraken/audio_source/__init__.py) | Python | 0 | 0 | 1 | 1 | -| [src/music_kraken/audio_source/fetch_audio.py](/src/music_kraken/audio_source/fetch_audio.py) | Python | 64 | 21 | 20 | 105 | -| [src/music_kraken/audio_source/fetch_source.py](/src/music_kraken/audio_source/fetch_source.py) | Python | 36 | 28 | 16 | 80 | +| [src/goof.py](/src/goof.py) | Python | 116 | 6 | 29 | 151 | +| [src/music_kraken/__init__.py](/src/music_kraken/__init__.py) | Python | 118 | 32 | 48 | 198 | +| [src/music_kraken/__main__.py](/src/music_kraken/__main__.py) | Python | 3 | 2 | 3 | 8 | +| [src/music_kraken/audio_source/__init__.py](/src/music_kraken/audio_source/__init__.py) | Python | 10 | 0 | 5 | 15 | +| [src/music_kraken/audio_source/fetch_audio.py](/src/music_kraken/audio_source/fetch_audio.py) | Python | 75 | 12 | 20 | 107 | +| [src/music_kraken/audio_source/fetch_source.py](/src/music_kraken/audio_source/fetch_source.py) | Python | 54 | 1 | 16 | 71 | | [src/music_kraken/audio_source/sources/__init__.py](/src/music_kraken/audio_source/sources/__init__.py) | Python | 0 | 0 | 1 | 1 | | [src/music_kraken/audio_source/sources/local_files.py](/src/music_kraken/audio_source/sources/local_files.py) | Python | 40 | 0 | 18 | 58 | -| [src/music_kraken/audio_source/sources/musify.py](/src/music_kraken/audio_source/sources/musify.py) | Python | 130 | 9 | 37 | 176 | +| [src/music_kraken/audio_source/sources/musify.py](/src/music_kraken/audio_source/sources/musify.py) | Python | 136 | 9 | 37 | 182 | | [src/music_kraken/audio_source/sources/source.py](/src/music_kraken/audio_source/sources/source.py) | Python | 11 | 5 | 8 | 24 | -| [src/music_kraken/audio_source/sources/youtube.py](/src/music_kraken/audio_source/sources/youtube.py) | Python | 65 | 6 | 22 | 93 | -| [src/music_kraken/database/database.py](/src/music_kraken/database/database.py) | Python | 163 | 80 | 41 | 284 | -| [src/music_kraken/database/song.py](/src/music_kraken/database/song.py) | Python | 86 | 5 | 34 | 125 | -| [src/music_kraken/database/temp_database.py](/src/music_kraken/database/temp_database.py) | Python | 11 | 0 | 5 | 16 | +| [src/music_kraken/audio_source/sources/youtube.py](/src/music_kraken/audio_source/sources/youtube.py) | Python | 71 | 4 | 24 | 99 | +| [src/music_kraken/database/__init__.py](/src/music_kraken/database/__init__.py) | Python | 12 | 1 | 4 | 17 | +| [src/music_kraken/database/database.py](/src/music_kraken/database/database.py) | Python | 191 | 102 | 45 | 338 | +| [src/music_kraken/database/get_song.py](/src/music_kraken/database/get_song.py) | Python | 40 | 5 | 11 | 56 | +| [src/music_kraken/database/new_database.py](/src/music_kraken/database/new_database.py) | Python | 402 | 110 | 107 | 619 | +| [src/music_kraken/database/objects/__init__.py](/src/music_kraken/database/objects/__init__.py) | Python | 15 | 0 | 5 | 20 | +| [src/music_kraken/database/objects/artist.py](/src/music_kraken/database/objects/artist.py) | Python | 18 | 0 | 5 | 23 | +| [src/music_kraken/database/objects/metadata.py](/src/music_kraken/database/objects/metadata.py) | Python | 245 | 52 | 50 | 347 | +| [src/music_kraken/database/objects/parents.py](/src/music_kraken/database/objects/parents.py) | Python | 46 | 8 | 23 | 77 | +| [src/music_kraken/database/objects/song.py](/src/music_kraken/database/objects/song.py) | Python | 258 | 52 | 76 | 386 | +| [src/music_kraken/database/objects/source.py](/src/music_kraken/database/objects/source.py) | Python | 46 | 7 | 13 | 66 | +| [src/music_kraken/database/song.py](/src/music_kraken/database/song.py) | Python | 125 | 20 | 45 | 190 | +| [src/music_kraken/database/temp_database.py](/src/music_kraken/database/temp_database.py) | Python | 12 | 0 | 8 | 20 | | [src/music_kraken/lyrics/__init__.py](/src/music_kraken/lyrics/__init__.py) | Python | 0 | 0 | 1 | 1 | -| [src/music_kraken/lyrics/genius.py](/src/music_kraken/lyrics/genius.py) | Python | 99 | 38 | 35 | 172 | -| [src/music_kraken/lyrics/lyrics.py](/src/music_kraken/lyrics/lyrics.py) | Python | 50 | 19 | 26 | 95 | -| [src/music_kraken/metadata/__init__.py](/src/music_kraken/metadata/__init__.py) | Python | 0 | 0 | 1 | 1 | -| [src/music_kraken/metadata/metadata_fetch.py](/src/music_kraken/metadata/metadata_fetch.py) | Python | 255 | 24 | 64 | 343 | +| [src/music_kraken/lyrics/genius.py](/src/music_kraken/lyrics/genius.py) | Python | 115 | 16 | 42 | 173 | +| [src/music_kraken/lyrics/lyrics.py](/src/music_kraken/lyrics/lyrics.py) | Python | 36 | 25 | 20 | 81 | +| [src/music_kraken/metadata/__init__.py](/src/music_kraken/metadata/__init__.py) | Python | 6 | 0 | 2 | 8 | +| [src/music_kraken/metadata/metadata_fetch.py](/src/music_kraken/metadata/metadata_fetch.py) | Python | 257 | 24 | 65 | 346 | | [src/music_kraken/metadata/metadata_search.py](/src/music_kraken/metadata/metadata_search.py) | Python | 253 | 40 | 72 | 365 | -| [src/music_kraken/tagging/__init__.py](/src/music_kraken/tagging/__init__.py) | Python | 0 | 0 | 1 | 1 | +| [src/music_kraken/metadata/sources/__init__.py](/src/music_kraken/metadata/sources/__init__.py) | Python | 3 | 0 | 2 | 5 | +| [src/music_kraken/metadata/sources/musicbrainz.py](/src/music_kraken/metadata/sources/musicbrainz.py) | Python | 42 | 6 | 9 | 57 | +| [src/music_kraken/static_files/new_db.sql](/src/music_kraken/static_files/new_db.sql) | SQLite | 71 | 0 | 10 | 81 | +| [src/music_kraken/static_files/temp_database_structure.sql](/src/music_kraken/static_files/temp_database_structure.sql) | SQLite | 135 | 0 | 10 | 145 | +| [src/music_kraken/tagging/__init__.py](/src/music_kraken/tagging/__init__.py) | Python | 8 | 0 | 2 | 10 | +| [src/music_kraken/tagging/id3.py](/src/music_kraken/tagging/id3.py) | Python | 51 | 4 | 20 | 75 | | [src/music_kraken/tagging/song.py](/src/music_kraken/tagging/song.py) | Python | 3 | 0 | 1 | 4 | -| [src/music_kraken/target/__init__.py](/src/music_kraken/target/__init__.py) | Python | 0 | 0 | 1 | 1 | +| [src/music_kraken/target/__init__.py](/src/music_kraken/target/__init__.py) | Python | 4 | 0 | 2 | 6 | | [src/music_kraken/target/set_target.py](/src/music_kraken/target/set_target.py) | Python | 37 | 7 | 18 | 62 | | [src/music_kraken/utils/__init__.py](/src/music_kraken/utils/__init__.py) | Python | 1 | 1 | 1 | 3 | | [src/music_kraken/utils/functions.py](/src/music_kraken/utils/functions.py) | Python | 3 | 0 | 1 | 4 | | [src/music_kraken/utils/object_handeling.py](/src/music_kraken/utils/object_handeling.py) | Python | 19 | 0 | 6 | 25 | -| [src/music_kraken/utils/phonetic_compares.py](/src/music_kraken/utils/phonetic_compares.py) | Python | 34 | 0 | 15 | 49 | -| [src/music_kraken/utils/shared.py](/src/music_kraken/utils/shared.py) | Python | 39 | 2 | 9 | 50 | +| [src/music_kraken/utils/phonetic_compares.py](/src/music_kraken/utils/phonetic_compares.py) | Python | 39 | 2 | 17 | 58 | +| [src/music_kraken/utils/shared.py](/src/music_kraken/utils/shared.py) | Python | 61 | 3 | 9 | 73 | | [src/music_kraken_cli.py](/src/music_kraken_cli.py) | Python | 94 | 9 | 32 | 135 | | [src/music_kraken_gtk.py](/src/music_kraken_gtk.py) | Python | 3 | 0 | 2 | 5 | -| [src/try-programming-interface.py](/src/try-programming-interface.py) | Python | 3 | 3 | 3 | 9 | +| [src/test.db](/src/test.db) | Database | 92 | 0 | 0 | 92 | +| [src/try-programming-interface.py](/src/try-programming-interface.py) | Python | 14 | 98 | 22 | 134 | +| [src/try_python.py](/src/try_python.py) | Python | 13 | 1 | 6 | 20 | [Summary](results.md) / Details / [Diff Summary](diff.md) / [Diff Details](diff-details.md) \ No newline at end of file diff --git a/.VSCodeCounter/2023-01-19_15-23-38/diff-details.md b/.VSCodeCounter/2023-01-19_15-23-38/diff-details.md new file mode 100644 index 0000000..fff14e5 --- /dev/null +++ b/.VSCodeCounter/2023-01-19_15-23-38/diff-details.md @@ -0,0 +1,17 @@ +# Diff Details + +Date : 2023-01-19 15:23:38 + +Directory /home/lars/Projects/music-downloader/src + +Total : 2 files, 2 codes, 1 comments, 1 blanks, all 4 lines + +[Summary](results.md) / [Details](details.md) / [Diff Summary](diff.md) / Diff Details + +## Files +| filename | language | code | comment | blank | total | +| :--- | :--- | ---: | ---: | ---: | ---: | +| [src/music_kraken/database/new_database.py](/src/music_kraken/database/new_database.py) | Python | 1 | 1 | 0 | 2 | +| [src/music_kraken/database/objects/__init__.py](/src/music_kraken/database/objects/__init__.py) | Python | 1 | 0 | 1 | 2 | + +[Summary](results.md) / [Details](details.md) / [Diff Summary](diff.md) / Diff Details \ No newline at end of file diff --git a/.VSCodeCounter/2023-01-19_15-23-38/diff.csv b/.VSCodeCounter/2023-01-19_15-23-38/diff.csv new file mode 100644 index 0000000..3a4c66e --- /dev/null +++ b/.VSCodeCounter/2023-01-19_15-23-38/diff.csv @@ -0,0 +1,4 @@ +"filename", "language", "Python", "comment", "blank", "total" +"/home/lars/Projects/music-downloader/src/music_kraken/database/new_database.py", "Python", 1, 1, 0, 2 +"/home/lars/Projects/music-downloader/src/music_kraken/database/objects/__init__.py", "Python", 1, 0, 1, 2 +"Total", "-", 2, 1, 1, 4 \ No newline at end of file diff --git a/.VSCodeCounter/2023-01-19_15-23-38/diff.md b/.VSCodeCounter/2023-01-19_15-23-38/diff.md new file mode 100644 index 0000000..baa16e8 --- /dev/null +++ b/.VSCodeCounter/2023-01-19_15-23-38/diff.md @@ -0,0 +1,25 @@ +# Diff Summary + +Date : 2023-01-19 15:23:38 + +Directory /home/lars/Projects/music-downloader/src + +Total : 2 files, 2 codes, 1 comments, 1 blanks, all 4 lines + +[Summary](results.md) / [Details](details.md) / Diff Summary / [Diff Details](diff-details.md) + +## Languages +| language | files | code | comment | blank | total | +| :--- | ---: | ---: | ---: | ---: | ---: | +| Python | 2 | 2 | 1 | 1 | 4 | + +## Directories +| path | files | code | comment | blank | total | +| :--- | ---: | ---: | ---: | ---: | ---: | +| . | 2 | 2 | 1 | 1 | 4 | +| music_kraken | 2 | 2 | 1 | 1 | 4 | +| music_kraken/database | 2 | 2 | 1 | 1 | 4 | +| music_kraken/database (Files) | 1 | 1 | 1 | 0 | 2 | +| music_kraken/database/objects | 1 | 1 | 0 | 1 | 2 | + +[Summary](results.md) / [Details](details.md) / Diff Summary / [Diff Details](diff-details.md) \ No newline at end of file diff --git a/.VSCodeCounter/2023-01-19_15-23-38/diff.txt b/.VSCodeCounter/2023-01-19_15-23-38/diff.txt new file mode 100644 index 0000000..268f9db --- /dev/null +++ b/.VSCodeCounter/2023-01-19_15-23-38/diff.txt @@ -0,0 +1,30 @@ +Date : 2023-01-19 15:23:38 +Directory : /home/lars/Projects/music-downloader/src +Total : 2 files, 2 codes, 1 comments, 1 blanks, all 4 lines + +Languages ++----------+------------+------------+------------+------------+------------+ +| language | files | code | comment | blank | total | ++----------+------------+------------+------------+------------+------------+ +| Python | 2 | 2 | 1 | 1 | 4 | ++----------+------------+------------+------------+------------+------------+ + +Directories ++------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+ +| path | files | code | comment | blank | total | ++------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+ +| . | 2 | 2 | 1 | 1 | 4 | +| music_kraken | 2 | 2 | 1 | 1 | 4 | +| music_kraken/database | 2 | 2 | 1 | 1 | 4 | +| music_kraken/database (Files) | 1 | 1 | 1 | 0 | 2 | +| music_kraken/database/objects | 1 | 1 | 0 | 1 | 2 | ++------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+ + +Files ++------------------------------------------------------------------------------------+----------+------------+------------+------------+------------+ +| filename | language | code | comment | blank | total | ++------------------------------------------------------------------------------------+----------+------------+------------+------------+------------+ +| /home/lars/Projects/music-downloader/src/music_kraken/database/new_database.py | Python | 1 | 1 | 0 | 2 | +| /home/lars/Projects/music-downloader/src/music_kraken/database/objects/__init__.py | Python | 1 | 0 | 1 | 2 | +| Total | | 2 | 1 | 1 | 4 | ++------------------------------------------------------------------------------------+----------+------------+------------+------------+------------+ \ No newline at end of file diff --git a/.VSCodeCounter/2023-01-19_15-23-38/results.csv b/.VSCodeCounter/2023-01-19_15-23-38/results.csv new file mode 100644 index 0000000..facaa98 --- /dev/null +++ b/.VSCodeCounter/2023-01-19_15-23-38/results.csv @@ -0,0 +1,51 @@ +"filename", "language", "Python", "SQLite", "Database", "comment", "blank", "total" +"/home/lars/Projects/music-downloader/src/__init__.py", "Python", 0, 0, 0, 0, 1, 1 +"/home/lars/Projects/music-downloader/src/goof.py", "Python", 116, 0, 0, 6, 29, 151 +"/home/lars/Projects/music-downloader/src/music_kraken/__init__.py", "Python", 118, 0, 0, 32, 48, 198 +"/home/lars/Projects/music-downloader/src/music_kraken/__main__.py", "Python", 3, 0, 0, 2, 3, 8 +"/home/lars/Projects/music-downloader/src/music_kraken/audio_source/__init__.py", "Python", 10, 0, 0, 0, 5, 15 +"/home/lars/Projects/music-downloader/src/music_kraken/audio_source/fetch_audio.py", "Python", 75, 0, 0, 12, 20, 107 +"/home/lars/Projects/music-downloader/src/music_kraken/audio_source/fetch_source.py", "Python", 54, 0, 0, 1, 16, 71 +"/home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/__init__.py", "Python", 0, 0, 0, 0, 1, 1 +"/home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/local_files.py", "Python", 40, 0, 0, 0, 18, 58 +"/home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/musify.py", "Python", 136, 0, 0, 9, 37, 182 +"/home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/source.py", "Python", 11, 0, 0, 5, 8, 24 +"/home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/youtube.py", "Python", 71, 0, 0, 4, 24, 99 +"/home/lars/Projects/music-downloader/src/music_kraken/database/__init__.py", "Python", 12, 0, 0, 1, 4, 17 +"/home/lars/Projects/music-downloader/src/music_kraken/database/database.py", "Python", 191, 0, 0, 102, 45, 338 +"/home/lars/Projects/music-downloader/src/music_kraken/database/get_song.py", "Python", 40, 0, 0, 5, 11, 56 +"/home/lars/Projects/music-downloader/src/music_kraken/database/new_database.py", "Python", 402, 0, 0, 110, 107, 619 +"/home/lars/Projects/music-downloader/src/music_kraken/database/objects/__init__.py", "Python", 15, 0, 0, 0, 5, 20 +"/home/lars/Projects/music-downloader/src/music_kraken/database/objects/artist.py", "Python", 18, 0, 0, 0, 5, 23 +"/home/lars/Projects/music-downloader/src/music_kraken/database/objects/metadata.py", "Python", 245, 0, 0, 52, 50, 347 +"/home/lars/Projects/music-downloader/src/music_kraken/database/objects/parents.py", "Python", 46, 0, 0, 8, 23, 77 +"/home/lars/Projects/music-downloader/src/music_kraken/database/objects/song.py", "Python", 258, 0, 0, 52, 76, 386 +"/home/lars/Projects/music-downloader/src/music_kraken/database/objects/source.py", "Python", 46, 0, 0, 7, 13, 66 +"/home/lars/Projects/music-downloader/src/music_kraken/database/song.py", "Python", 125, 0, 0, 20, 45, 190 +"/home/lars/Projects/music-downloader/src/music_kraken/database/temp_database.py", "Python", 12, 0, 0, 0, 8, 20 +"/home/lars/Projects/music-downloader/src/music_kraken/lyrics/__init__.py", "Python", 0, 0, 0, 0, 1, 1 +"/home/lars/Projects/music-downloader/src/music_kraken/lyrics/genius.py", "Python", 115, 0, 0, 16, 42, 173 +"/home/lars/Projects/music-downloader/src/music_kraken/lyrics/lyrics.py", "Python", 36, 0, 0, 25, 20, 81 +"/home/lars/Projects/music-downloader/src/music_kraken/metadata/__init__.py", "Python", 6, 0, 0, 0, 2, 8 +"/home/lars/Projects/music-downloader/src/music_kraken/metadata/metadata_fetch.py", "Python", 257, 0, 0, 24, 65, 346 +"/home/lars/Projects/music-downloader/src/music_kraken/metadata/metadata_search.py", "Python", 253, 0, 0, 40, 72, 365 +"/home/lars/Projects/music-downloader/src/music_kraken/metadata/sources/__init__.py", "Python", 3, 0, 0, 0, 2, 5 +"/home/lars/Projects/music-downloader/src/music_kraken/metadata/sources/musicbrainz.py", "Python", 42, 0, 0, 6, 9, 57 +"/home/lars/Projects/music-downloader/src/music_kraken/static_files/new_db.sql", "SQLite", 0, 71, 0, 0, 10, 81 +"/home/lars/Projects/music-downloader/src/music_kraken/static_files/temp_database_structure.sql", "SQLite", 0, 135, 0, 0, 10, 145 +"/home/lars/Projects/music-downloader/src/music_kraken/tagging/__init__.py", "Python", 8, 0, 0, 0, 2, 10 +"/home/lars/Projects/music-downloader/src/music_kraken/tagging/id3.py", "Python", 51, 0, 0, 4, 20, 75 +"/home/lars/Projects/music-downloader/src/music_kraken/tagging/song.py", "Python", 3, 0, 0, 0, 1, 4 +"/home/lars/Projects/music-downloader/src/music_kraken/target/__init__.py", "Python", 4, 0, 0, 0, 2, 6 +"/home/lars/Projects/music-downloader/src/music_kraken/target/set_target.py", "Python", 37, 0, 0, 7, 18, 62 +"/home/lars/Projects/music-downloader/src/music_kraken/utils/__init__.py", "Python", 1, 0, 0, 1, 1, 3 +"/home/lars/Projects/music-downloader/src/music_kraken/utils/functions.py", "Python", 3, 0, 0, 0, 1, 4 +"/home/lars/Projects/music-downloader/src/music_kraken/utils/object_handeling.py", "Python", 19, 0, 0, 0, 6, 25 +"/home/lars/Projects/music-downloader/src/music_kraken/utils/phonetic_compares.py", "Python", 39, 0, 0, 2, 17, 58 +"/home/lars/Projects/music-downloader/src/music_kraken/utils/shared.py", "Python", 61, 0, 0, 3, 9, 73 +"/home/lars/Projects/music-downloader/src/music_kraken_cli.py", "Python", 94, 0, 0, 9, 32, 135 +"/home/lars/Projects/music-downloader/src/music_kraken_gtk.py", "Python", 3, 0, 0, 0, 2, 5 +"/home/lars/Projects/music-downloader/src/test.db", "Database", 0, 0, 92, 0, 0, 92 +"/home/lars/Projects/music-downloader/src/try-programming-interface.py", "Python", 14, 0, 0, 98, 22, 134 +"/home/lars/Projects/music-downloader/src/try_python.py", "Python", 13, 0, 0, 1, 6, 20 +"Total", "-", 3106, 206, 92, 664, 974, 5042 \ No newline at end of file diff --git a/.VSCodeCounter/2023-01-19_15-23-38/results.json b/.VSCodeCounter/2023-01-19_15-23-38/results.json new file mode 100644 index 0000000..a7dd376 --- /dev/null +++ b/.VSCodeCounter/2023-01-19_15-23-38/results.json @@ -0,0 +1 @@ +{"file:///home/lars/Projects/music-downloader/src/__init__.py":{"language":"Python","code":0,"comment":0,"blank":1},"file:///home/lars/Projects/music-downloader/src/try_python.py":{"language":"Python","code":13,"comment":1,"blank":6},"file:///home/lars/Projects/music-downloader/src/music_kraken/__init__.py":{"language":"Python","code":118,"comment":32,"blank":48},"file:///home/lars/Projects/music-downloader/src/music_kraken/database/new_database.py":{"language":"Python","code":402,"comment":110,"blank":107},"file:///home/lars/Projects/music-downloader/src/music_kraken/database/__init__.py":{"language":"Python","code":12,"comment":1,"blank":4},"file:///home/lars/Projects/music-downloader/src/music_kraken/database/database.py":{"language":"Python","code":191,"comment":102,"blank":45},"file:///home/lars/Projects/music-downloader/src/music_kraken/database/get_song.py":{"language":"Python","code":40,"comment":5,"blank":11},"file:///home/lars/Projects/music-downloader/src/music_kraken/database/song.py":{"language":"Python","code":125,"comment":20,"blank":45},"file:///home/lars/Projects/music-downloader/src/music_kraken/database/temp_database.py":{"language":"Python","code":12,"comment":0,"blank":8},"file:///home/lars/Projects/music-downloader/src/music_kraken/database/objects/source.py":{"language":"Python","code":46,"comment":7,"blank":13},"file:///home/lars/Projects/music-downloader/src/music_kraken/database/objects/metadata.py":{"language":"Python","code":245,"comment":52,"blank":50},"file:///home/lars/Projects/music-downloader/src/music_kraken/utils/__init__.py":{"language":"Python","code":1,"comment":1,"blank":1},"file:///home/lars/Projects/music-downloader/src/music_kraken/utils/object_handeling.py":{"language":"Python","code":19,"comment":0,"blank":6},"file:///home/lars/Projects/music-downloader/src/music_kraken/database/objects/artist.py":{"language":"Python","code":18,"comment":0,"blank":5},"file:///home/lars/Projects/music-downloader/src/music_kraken/database/objects/__init__.py":{"language":"Python","code":15,"comment":0,"blank":5},"file:///home/lars/Projects/music-downloader/src/music_kraken/utils/functions.py":{"language":"Python","code":3,"comment":0,"blank":1},"file:///home/lars/Projects/music-downloader/src/music_kraken/database/objects/parents.py":{"language":"Python","code":46,"comment":8,"blank":23},"file:///home/lars/Projects/music-downloader/src/music_kraken/utils/shared.py":{"language":"Python","code":61,"comment":3,"blank":9},"file:///home/lars/Projects/music-downloader/src/music_kraken/utils/phonetic_compares.py":{"language":"Python","code":39,"comment":2,"blank":17},"file:///home/lars/Projects/music-downloader/src/music_kraken/database/objects/song.py":{"language":"Python","code":258,"comment":52,"blank":76},"file:///home/lars/Projects/music-downloader/src/music_kraken/static_files/new_db.sql":{"language":"SQLite","code":71,"comment":0,"blank":10},"file:///home/lars/Projects/music-downloader/src/music_kraken/static_files/temp_database_structure.sql":{"language":"SQLite","code":135,"comment":0,"blank":10},"file:///home/lars/Projects/music-downloader/src/music_kraken/metadata/__init__.py":{"language":"Python","code":6,"comment":0,"blank":2},"file:///home/lars/Projects/music-downloader/src/music_kraken/tagging/__init__.py":{"language":"Python","code":8,"comment":0,"blank":2},"file:///home/lars/Projects/music-downloader/src/music_kraken/metadata/metadata_search.py":{"language":"Python","code":253,"comment":40,"blank":72},"file:///home/lars/Projects/music-downloader/src/music_kraken/tagging/song.py":{"language":"Python","code":3,"comment":0,"blank":1},"file:///home/lars/Projects/music-downloader/src/music_kraken/tagging/id3.py":{"language":"Python","code":51,"comment":4,"blank":20},"file:///home/lars/Projects/music-downloader/src/music_kraken/metadata/metadata_fetch.py":{"language":"Python","code":257,"comment":24,"blank":65},"file:///home/lars/Projects/music-downloader/src/music_kraken/metadata/sources/musicbrainz.py":{"language":"Python","code":42,"comment":6,"blank":9},"file:///home/lars/Projects/music-downloader/src/music_kraken/metadata/sources/__init__.py":{"language":"Python","code":3,"comment":0,"blank":2},"file:///home/lars/Projects/music-downloader/src/music_kraken/__main__.py":{"language":"Python","code":3,"comment":2,"blank":3},"file:///home/lars/Projects/music-downloader/src/music_kraken/target/set_target.py":{"language":"Python","code":37,"comment":7,"blank":18},"file:///home/lars/Projects/music-downloader/src/music_kraken/lyrics/__init__.py":{"language":"Python","code":0,"comment":0,"blank":1},"file:///home/lars/Projects/music-downloader/src/music_kraken/target/__init__.py":{"language":"Python","code":4,"comment":0,"blank":2},"file:///home/lars/Projects/music-downloader/src/music_kraken/lyrics/lyrics.py":{"language":"Python","code":36,"comment":25,"blank":20},"file:///home/lars/Projects/music-downloader/src/music_kraken/lyrics/genius.py":{"language":"Python","code":115,"comment":16,"blank":42},"file:///home/lars/Projects/music-downloader/src/test.db":{"language":"Database","code":92,"comment":0,"blank":0},"file:///home/lars/Projects/music-downloader/src/music_kraken_gtk.py":{"language":"Python","code":3,"comment":0,"blank":2},"file:///home/lars/Projects/music-downloader/src/goof.py":{"language":"Python","code":116,"comment":6,"blank":29},"file:///home/lars/Projects/music-downloader/src/music_kraken_cli.py":{"language":"Python","code":94,"comment":9,"blank":32},"file:///home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/__init__.py":{"language":"Python","code":0,"comment":0,"blank":1},"file:///home/lars/Projects/music-downloader/src/try-programming-interface.py":{"language":"Python","code":14,"comment":98,"blank":22},"file:///home/lars/Projects/music-downloader/src/music_kraken/audio_source/__init__.py":{"language":"Python","code":10,"comment":0,"blank":5},"file:///home/lars/Projects/music-downloader/src/music_kraken/audio_source/fetch_audio.py":{"language":"Python","code":75,"comment":12,"blank":20},"file:///home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/source.py":{"language":"Python","code":11,"comment":5,"blank":8},"file:///home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/youtube.py":{"language":"Python","code":71,"comment":4,"blank":24},"file:///home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/musify.py":{"language":"Python","code":136,"comment":9,"blank":37},"file:///home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/local_files.py":{"language":"Python","code":40,"comment":0,"blank":18},"file:///home/lars/Projects/music-downloader/src/music_kraken/audio_source/fetch_source.py":{"language":"Python","code":54,"comment":1,"blank":16}} \ No newline at end of file diff --git a/.VSCodeCounter/2023-01-19_15-23-38/results.md b/.VSCodeCounter/2023-01-19_15-23-38/results.md new file mode 100644 index 0000000..ed987be --- /dev/null +++ b/.VSCodeCounter/2023-01-19_15-23-38/results.md @@ -0,0 +1,40 @@ +# Summary + +Date : 2023-01-19 15:23:38 + +Directory /home/lars/Projects/music-downloader/src + +Total : 49 files, 3404 codes, 664 comments, 974 blanks, all 5042 lines + +Summary / [Details](details.md) / [Diff Summary](diff.md) / [Diff Details](diff-details.md) + +## Languages +| language | files | code | comment | blank | total | +| :--- | ---: | ---: | ---: | ---: | ---: | +| Python | 46 | 3,106 | 664 | 954 | 4,724 | +| SQLite | 2 | 206 | 0 | 20 | 226 | +| Database | 1 | 92 | 0 | 0 | 92 | + +## Directories +| path | files | code | comment | blank | total | +| :--- | ---: | ---: | ---: | ---: | ---: | +| . | 49 | 3,404 | 664 | 974 | 5,042 | +| . (Files) | 7 | 332 | 114 | 92 | 538 | +| music_kraken | 42 | 3,072 | 550 | 882 | 4,504 | +| music_kraken (Files) | 2 | 121 | 34 | 51 | 206 | +| music_kraken/audio_source | 8 | 397 | 31 | 129 | 557 | +| music_kraken/audio_source (Files) | 3 | 139 | 13 | 41 | 193 | +| music_kraken/audio_source/sources | 5 | 258 | 18 | 88 | 364 | +| music_kraken/database | 12 | 1,410 | 357 | 392 | 2,159 | +| music_kraken/database (Files) | 6 | 782 | 238 | 220 | 1,240 | +| music_kraken/database/objects | 6 | 628 | 119 | 172 | 919 | +| music_kraken/lyrics | 3 | 151 | 41 | 63 | 255 | +| music_kraken/metadata | 5 | 561 | 70 | 150 | 781 | +| music_kraken/metadata (Files) | 3 | 516 | 64 | 139 | 719 | +| music_kraken/metadata/sources | 2 | 45 | 6 | 11 | 62 | +| music_kraken/static_files | 2 | 206 | 0 | 20 | 226 | +| music_kraken/tagging | 3 | 62 | 4 | 23 | 89 | +| music_kraken/target | 2 | 41 | 7 | 20 | 68 | +| music_kraken/utils | 5 | 123 | 6 | 34 | 163 | + +Summary / [Details](details.md) / [Diff Summary](diff.md) / [Diff Details](diff-details.md) \ No newline at end of file diff --git a/.VSCodeCounter/2023-01-19_15-23-38/results.txt b/.VSCodeCounter/2023-01-19_15-23-38/results.txt new file mode 100644 index 0000000..b30d3f0 --- /dev/null +++ b/.VSCodeCounter/2023-01-19_15-23-38/results.txt @@ -0,0 +1,92 @@ +Date : 2023-01-19 15:23:38 +Directory : /home/lars/Projects/music-downloader/src +Total : 49 files, 3404 codes, 664 comments, 974 blanks, all 5042 lines + +Languages ++----------+------------+------------+------------+------------+------------+ +| language | files | code | comment | blank | total | ++----------+------------+------------+------------+------------+------------+ +| Python | 46 | 3,106 | 664 | 954 | 4,724 | +| SQLite | 2 | 206 | 0 | 20 | 226 | +| Database | 1 | 92 | 0 | 0 | 92 | ++----------+------------+------------+------------+------------+------------+ + +Directories ++------------------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+ +| path | files | code | comment | blank | total | ++------------------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+ +| . | 49 | 3,404 | 664 | 974 | 5,042 | +| . (Files) | 7 | 332 | 114 | 92 | 538 | +| music_kraken | 42 | 3,072 | 550 | 882 | 4,504 | +| music_kraken (Files) | 2 | 121 | 34 | 51 | 206 | +| music_kraken/audio_source | 8 | 397 | 31 | 129 | 557 | +| music_kraken/audio_source (Files) | 3 | 139 | 13 | 41 | 193 | +| music_kraken/audio_source/sources | 5 | 258 | 18 | 88 | 364 | +| music_kraken/database | 12 | 1,410 | 357 | 392 | 2,159 | +| music_kraken/database (Files) | 6 | 782 | 238 | 220 | 1,240 | +| music_kraken/database/objects | 6 | 628 | 119 | 172 | 919 | +| music_kraken/lyrics | 3 | 151 | 41 | 63 | 255 | +| music_kraken/metadata | 5 | 561 | 70 | 150 | 781 | +| music_kraken/metadata (Files) | 3 | 516 | 64 | 139 | 719 | +| music_kraken/metadata/sources | 2 | 45 | 6 | 11 | 62 | +| music_kraken/static_files | 2 | 206 | 0 | 20 | 226 | +| music_kraken/tagging | 3 | 62 | 4 | 23 | 89 | +| music_kraken/target | 2 | 41 | 7 | 20 | 68 | +| music_kraken/utils | 5 | 123 | 6 | 34 | 163 | ++------------------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+ + +Files ++------------------------------------------------------------------------------------------------+----------+------------+------------+------------+------------+ +| filename | language | code | comment | blank | total | ++------------------------------------------------------------------------------------------------+----------+------------+------------+------------+------------+ +| /home/lars/Projects/music-downloader/src/__init__.py | Python | 0 | 0 | 1 | 1 | +| /home/lars/Projects/music-downloader/src/goof.py | Python | 116 | 6 | 29 | 151 | +| /home/lars/Projects/music-downloader/src/music_kraken/__init__.py | Python | 118 | 32 | 48 | 198 | +| /home/lars/Projects/music-downloader/src/music_kraken/__main__.py | Python | 3 | 2 | 3 | 8 | +| /home/lars/Projects/music-downloader/src/music_kraken/audio_source/__init__.py | Python | 10 | 0 | 5 | 15 | +| /home/lars/Projects/music-downloader/src/music_kraken/audio_source/fetch_audio.py | Python | 75 | 12 | 20 | 107 | +| /home/lars/Projects/music-downloader/src/music_kraken/audio_source/fetch_source.py | Python | 54 | 1 | 16 | 71 | +| /home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/__init__.py | Python | 0 | 0 | 1 | 1 | +| /home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/local_files.py | Python | 40 | 0 | 18 | 58 | +| /home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/musify.py | Python | 136 | 9 | 37 | 182 | +| /home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/source.py | Python | 11 | 5 | 8 | 24 | +| /home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/youtube.py | Python | 71 | 4 | 24 | 99 | +| /home/lars/Projects/music-downloader/src/music_kraken/database/__init__.py | Python | 12 | 1 | 4 | 17 | +| /home/lars/Projects/music-downloader/src/music_kraken/database/database.py | Python | 191 | 102 | 45 | 338 | +| /home/lars/Projects/music-downloader/src/music_kraken/database/get_song.py | Python | 40 | 5 | 11 | 56 | +| /home/lars/Projects/music-downloader/src/music_kraken/database/new_database.py | Python | 402 | 110 | 107 | 619 | +| /home/lars/Projects/music-downloader/src/music_kraken/database/objects/__init__.py | Python | 15 | 0 | 5 | 20 | +| /home/lars/Projects/music-downloader/src/music_kraken/database/objects/artist.py | Python | 18 | 0 | 5 | 23 | +| /home/lars/Projects/music-downloader/src/music_kraken/database/objects/metadata.py | Python | 245 | 52 | 50 | 347 | +| /home/lars/Projects/music-downloader/src/music_kraken/database/objects/parents.py | Python | 46 | 8 | 23 | 77 | +| /home/lars/Projects/music-downloader/src/music_kraken/database/objects/song.py | Python | 258 | 52 | 76 | 386 | +| /home/lars/Projects/music-downloader/src/music_kraken/database/objects/source.py | Python | 46 | 7 | 13 | 66 | +| /home/lars/Projects/music-downloader/src/music_kraken/database/song.py | Python | 125 | 20 | 45 | 190 | +| /home/lars/Projects/music-downloader/src/music_kraken/database/temp_database.py | Python | 12 | 0 | 8 | 20 | +| /home/lars/Projects/music-downloader/src/music_kraken/lyrics/__init__.py | Python | 0 | 0 | 1 | 1 | +| /home/lars/Projects/music-downloader/src/music_kraken/lyrics/genius.py | Python | 115 | 16 | 42 | 173 | +| /home/lars/Projects/music-downloader/src/music_kraken/lyrics/lyrics.py | Python | 36 | 25 | 20 | 81 | +| /home/lars/Projects/music-downloader/src/music_kraken/metadata/__init__.py | Python | 6 | 0 | 2 | 8 | +| /home/lars/Projects/music-downloader/src/music_kraken/metadata/metadata_fetch.py | Python | 257 | 24 | 65 | 346 | +| /home/lars/Projects/music-downloader/src/music_kraken/metadata/metadata_search.py | Python | 253 | 40 | 72 | 365 | +| /home/lars/Projects/music-downloader/src/music_kraken/metadata/sources/__init__.py | Python | 3 | 0 | 2 | 5 | +| /home/lars/Projects/music-downloader/src/music_kraken/metadata/sources/musicbrainz.py | Python | 42 | 6 | 9 | 57 | +| /home/lars/Projects/music-downloader/src/music_kraken/static_files/new_db.sql | SQLite | 71 | 0 | 10 | 81 | +| /home/lars/Projects/music-downloader/src/music_kraken/static_files/temp_database_structure.sql | SQLite | 135 | 0 | 10 | 145 | +| /home/lars/Projects/music-downloader/src/music_kraken/tagging/__init__.py | Python | 8 | 0 | 2 | 10 | +| /home/lars/Projects/music-downloader/src/music_kraken/tagging/id3.py | Python | 51 | 4 | 20 | 75 | +| /home/lars/Projects/music-downloader/src/music_kraken/tagging/song.py | Python | 3 | 0 | 1 | 4 | +| /home/lars/Projects/music-downloader/src/music_kraken/target/__init__.py | Python | 4 | 0 | 2 | 6 | +| /home/lars/Projects/music-downloader/src/music_kraken/target/set_target.py | Python | 37 | 7 | 18 | 62 | +| /home/lars/Projects/music-downloader/src/music_kraken/utils/__init__.py | Python | 1 | 1 | 1 | 3 | +| /home/lars/Projects/music-downloader/src/music_kraken/utils/functions.py | Python | 3 | 0 | 1 | 4 | +| /home/lars/Projects/music-downloader/src/music_kraken/utils/object_handeling.py | Python | 19 | 0 | 6 | 25 | +| /home/lars/Projects/music-downloader/src/music_kraken/utils/phonetic_compares.py | Python | 39 | 2 | 17 | 58 | +| /home/lars/Projects/music-downloader/src/music_kraken/utils/shared.py | Python | 61 | 3 | 9 | 73 | +| /home/lars/Projects/music-downloader/src/music_kraken_cli.py | Python | 94 | 9 | 32 | 135 | +| /home/lars/Projects/music-downloader/src/music_kraken_gtk.py | Python | 3 | 0 | 2 | 5 | +| /home/lars/Projects/music-downloader/src/test.db | Database | 92 | 0 | 0 | 92 | +| /home/lars/Projects/music-downloader/src/try-programming-interface.py | Python | 14 | 98 | 22 | 134 | +| /home/lars/Projects/music-downloader/src/try_python.py | Python | 13 | 1 | 6 | 20 | +| Total | | 3,404 | 664 | 974 | 5,042 | ++------------------------------------------------------------------------------------------------+----------+------------+------------+------------+------------+ \ No newline at end of file diff --git a/src/goof.py b/src/goof.py index 83d1459..b5cc69c 100644 --- a/src/goof.py +++ b/src/goof.py @@ -6,7 +6,8 @@ from music_kraken import ( Source, Album, Artist, - ID3Timestamp + ID3Timestamp, + source_types ) from music_kraken.tagging import ( @@ -64,8 +65,8 @@ song_input = Song( Lyrics(text="test", language="en") ], sources=[ - Source(src="youtube", url="https://youtu.be/dfnsdajlhkjhsd"), - Source(src="musify", url="https://ln.topdf.de/Music-Kraken/") + Source(source_types.SONG, src="youtube", url="https://youtu.be/dfnsdajlhkjhsd"), + Source(source_types.SONG, src="musify", url="https://ln.topdf.de/Music-Kraken/") ], album=album_input, main_artist_list=[main_artist], diff --git a/src/music_kraken/__init__.py b/src/music_kraken/__init__.py index 7094e79..b20d84e 100644 --- a/src/music_kraken/__init__.py +++ b/src/music_kraken/__init__.py @@ -41,6 +41,7 @@ musicbrainzngs.set_useragent("metadata receiver", "0.1", "https://github.com/HeI Song = database.Song Artist = database.Artist Source = database.Source +source_types = database.source_types Target = database.Target Lyrics = database.Lyrics Album = database.Album diff --git a/src/music_kraken/database/__init__.py b/src/music_kraken/database/__init__.py index 07410fe..a29e6bf 100644 --- a/src/music_kraken/database/__init__.py +++ b/src/music_kraken/database/__init__.py @@ -4,6 +4,7 @@ from . import ( ) ID3Timestamp = objects.ID3Timestamp +source_types = objects.source_types Song = objects.Song Source = objects.Source Target = objects.Target diff --git a/src/music_kraken/database/new_database.py b/src/music_kraken/database/new_database.py index eb5a46b..9dc65a0 100644 --- a/src/music_kraken/database/new_database.py +++ b/src/music_kraken/database/new_database.py @@ -113,6 +113,7 @@ class Database: return self.push_artist(artist=db_object) if type(db_object) == Source: + # needs to have the property type_enum or type_str set return self.push_source(source=db_object) if type(db_object) == Album: @@ -185,6 +186,7 @@ class Database: # add sources for source in song.sources: source.add_song(song) + source.type_enum = source_types.SONG self.push_source(source=source) # add lyrics @@ -221,6 +223,8 @@ class Database: self.connection.commit() def push_source(self, source: Source): + + if source.song_ref_id is None: logger.warning("the Source don't refer to a song") @@ -228,7 +232,7 @@ class Database: query = f"INSERT OR REPLACE INTO {table} (id, type, song_id, src, url) VALUES (?, ?, ?, ?, ?);" values = ( source.id, - source.type, + source.type_str, source.song_ref_id, source.site_str, source.url @@ -359,11 +363,12 @@ class Database: self.cursor.execute(query) source_rows = self.cursor.fetchall() + return [Source( + source_types(source_row['type']), id_=source_row['id'], src=source_row['src'], - url=source_row['url'], - type_str=type_enum.value + url=source_row['url'] ) for source_row in source_rows] def pull_artist_song(self, song_ref: Reference = None, artist_ref: Reference = None) -> List[tuple]: diff --git a/src/music_kraken/database/objects/source.py b/src/music_kraken/database/objects/source.py index c98b125..5db17c6 100644 --- a/src/music_kraken/database/objects/source.py +++ b/src/music_kraken/database/objects/source.py @@ -42,13 +42,11 @@ class Source(DatabaseObject, SongAttribute, ID3Metadata): ``` """ - def __init__(self, id_: str = None, src: str = None, url: str = None, type_str: str = None) -> None: + def __init__(self, type_enum, id_: str = None, src: str = None, url: str = None) -> None: DatabaseObject.__init__(self, id_=id_) SongAttribute.__init__(self) - self.type_enum = None - if type_str is not None: - self.type_enum = source_types(type_str) + self.type_enum = type_enum self.src = sources(src) self.url = url @@ -62,4 +60,5 @@ class Source(DatabaseObject, SongAttribute, ID3Metadata): return f"{self.src}: {self.url}" site_str = property(fget=lambda self: self.src.value) + type_str = property(fget=lambda self: self.type_enum.value) homepage = property(fget=lambda self: sources.get_homepage(self.src)) diff --git a/src/music_kraken/static_files/new_db.sql b/src/music_kraken/static_files/new_db.sql index 057476d..7210dc0 100644 --- a/src/music_kraken/static_files/new_db.sql +++ b/src/music_kraken/static_files/new_db.sql @@ -14,7 +14,7 @@ CREATE TABLE Song CREATE TABLE Source ( id BIGINT AUTO_INCREMENT PRIMARY KEY, - type TEXT NOT NULL + type TEXT NOT NULL, src TEXT NOT NULL, url TEXT NOT NULL, certainty INT NOT NULL DEFAULT 0, -- certainty=0 -> it is definitely a valid source diff --git a/test.db b/test.db index b11714e0ec2a5ccbfcc5d0ba3102feb54e829510..e33bf422fa692a3fd5ace0129c6352837d3a34a4 100644 GIT binary patch delta 2476 zcmd5;O^X~w7@q0g`Pj|Q^p23kWeyo|F@a4S#eu3#7!pfuW?TvvwL#n}gADNm5uRx+Qj0yO zuk^gVb#vo-@2$;^>y#=h3HKAiD#><-W+WXNrrzo7+ffoR`IN7Zvzt-ILyjAcxY8PuIENfb4P#WmNvEN|TYC|Q zgf3x?lJOMQN$1+#$ z26R*sTT~Q<0G3msHBf!F7%oM%yi&SW5d{d->|K@Cr-9@5Ie z_yTHtEWFzPMtSk1cIW5zipxyK1ut#IYs3lG2qrF&G~hLa;4I^0R2!cga)u?<@S#wp zBT9uNs0a~H1!h)j!qS2358Ot`C^lidmpZvitpFhkM8GEz2UkUgrzuig3SD4Ilv9Hn zuJ3w!^uxFd9yfc+kD-1F>5xXJgO>rFP6r=Sed%$4^!K-uq2UG94!j#k4N{{8Xu}d< zHP}riozzy+*KTa~2WO)=KMB6>QbI|&cQE3GF@U_K2;M>rWk40SzjgcOAgjmuss=}c z!Eg}TbPXBUSHfacq>w^8E;C(aqdy-!U)xRINycEdmk*pjq^MfyW&s&k{a}~OE<6HM z&g|{2?EiAVJq)pzkn9)Zxjb)%L_5^<@Q6`dj38Xl9y=87sA$!)xM%T~Ke5iIHWkwA g{vWr%$^tfi2#qdO;~ai8X8%4MuIvQ2&!8Fm2X#JfTPmOd8j)nE4 zQLBAXAF1w-epwlOceqm7x&Qi9b^6@7(u4K3kS(*Rv3r_V-d$c=U5;0m-dtIZ-G|0} zBX-N)5g(ai_O;%{iu%M4naHbh>OfltBDvL}vTfBI~=SO!-)qM7K*%_;3|ZdZFncBz-5-0ib3V|=2cJeApQwf^bC0lwD*I3^ zI$IdEf~a5rVI%5LZfwFa29RqPUB*%%q069zP@xoIV-R_3V`s0uP!98H#VAE-ssWV7 zwLakrNy0QKh6^dG2__it?Y1`CbTrH_F(DbXTmh`8buEnuH!2JTX~LM61Tg_isQcIB z7b~|;{2yOG>G?jSD#PLM{6C=4;-C-lvdhf;;o;ozZ@)}-d|Hf0d}t*c$@7{I+Nq#B zXGpP9c5q%3>=fKtXr+SOvkXg~8sx))=o9PlpIcGKXC(NjakUiYxewTBW-mR{W~gv| NFy%(!&(Yx#{s-(XnkN7N