added type to src

This commit is contained in:
Lars Noack 2023-01-20 10:56:40 +01:00
parent a876ebc708
commit 4b4a3e8fc3
24 changed files with 316 additions and 307 deletions

View File

@ -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

View File

@ -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
1 filename language Python SQLite comment blank total
2 /home/lars/Projects/music-downloader/src/__init__.py Python 0 0 0 1 1
3 /home/lars/Projects/music-downloader/src/database_structure.sql SQLite 0 60 0 7 67
4 /home/lars/Projects/music-downloader/src/music_kraken/__init__.py Python 16 0 6 1 23
5 /home/lars/Projects/music-downloader/src/music_kraken/audio_source/fetch_audio.py Python -1 0 1 -2 -2
6 /home/lars/Projects/music-downloader/src/music_kraken/audio_source/fetch_source.py Python -1 0 0 1 0
7 /home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/musify.py Python 4 0 -111 0 -107
8 /home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/source.py Python 1 0 0 2 3
9 /home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/youtube.py Python -4 0 -61 2 -63
10 /home/lars/Projects/music-downloader/src/music_kraken/database/database.py Python 163 0 80 41 284
11 /home/lars/Projects/music-downloader/src/music_kraken/database/song.py Python 86 0 5 34 125
12 /home/lars/Projects/music-downloader/src/music_kraken/database/temp_database.py Python 11 0 0 5 16
13 /home/lars/Projects/music-downloader/src/music_kraken/lyrics/lyrics.py Python 1 0 0 1 2
14 /home/lars/Projects/music-downloader/src/music_kraken/metadata/metadata_fetch.py Python 1 0 0 1 2
15 /home/lars/Projects/music-downloader/src/music_kraken/target/set_target.py Python 1 0 0 0 1
16 /home/lars/Projects/music-downloader/src/music_kraken/utils/database.py Python -158 0 -80 -40 -278
17 /home/lars/Projects/music-downloader/src/music_kraken/utils/functions.py Python 3 0 0 1 4
18 /home/lars/Projects/music-downloader/src/music_kraken/utils/shared.py Python -7 0 0 -3 -10
19 /home/lars/Projects/music-downloader/src/music_kraken_cli.py Python 94 0 9 32 135
20 /home/lars/Projects/music-downloader/src/music_kraken_gtk.py Python 3 0 0 2 5
21 /home/lars/Projects/music-downloader/src/try-programming-interface.py Python 3 0 3 3 9
22 Total - 216 60 -148 89 217

View File

@ -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)

View File

@ -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 |
+---------------------------------------------------------------------------------------+----------+------------+------------+------------+------------+

View File

@ -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
1 filename language Python SQLite comment blank total
2 /home/lars/Projects/music-downloader/src/__init__.py Python 0 0 0 1 1
3 /home/lars/Projects/music-downloader/src/database_structure.sql SQLite 0 60 0 7 67
4 /home/lars/Projects/music-downloader/src/music_kraken/__init__.py Python 91 0 14 28 133
5 /home/lars/Projects/music-downloader/src/music_kraken/__main__.py Python 4 0 3 3 10
6 /home/lars/Projects/music-downloader/src/music_kraken/audio_source/__init__.py Python 0 0 0 1 1
7 /home/lars/Projects/music-downloader/src/music_kraken/audio_source/fetch_audio.py Python 64 0 21 20 105
8 /home/lars/Projects/music-downloader/src/music_kraken/audio_source/fetch_source.py Python 36 0 28 16 80
9 /home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/__init__.py Python 0 0 0 1 1
10 /home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/local_files.py Python 40 0 0 18 58
11 /home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/musify.py Python 130 0 9 37 176
12 /home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/source.py Python 11 0 5 8 24
13 /home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/youtube.py Python 65 0 6 22 93
14 /home/lars/Projects/music-downloader/src/music_kraken/database/database.py Python 163 0 80 41 284
15 /home/lars/Projects/music-downloader/src/music_kraken/database/song.py Python 86 0 5 34 125
16 /home/lars/Projects/music-downloader/src/music_kraken/database/temp_database.py Python 11 0 0 5 16
17 /home/lars/Projects/music-downloader/src/music_kraken/lyrics/__init__.py Python 0 0 0 1 1
18 /home/lars/Projects/music-downloader/src/music_kraken/lyrics/genius.py Python 99 0 38 35 172
19 /home/lars/Projects/music-downloader/src/music_kraken/lyrics/lyrics.py Python 50 0 19 26 95
20 /home/lars/Projects/music-downloader/src/music_kraken/metadata/__init__.py Python 0 0 0 1 1
21 /home/lars/Projects/music-downloader/src/music_kraken/metadata/metadata_fetch.py Python 255 0 24 64 343
22 /home/lars/Projects/music-downloader/src/music_kraken/metadata/metadata_search.py Python 253 0 40 72 365
23 /home/lars/Projects/music-downloader/src/music_kraken/tagging/__init__.py Python 0 0 0 1 1
24 /home/lars/Projects/music-downloader/src/music_kraken/tagging/song.py Python 3 0 0 1 4
25 /home/lars/Projects/music-downloader/src/music_kraken/target/__init__.py Python 0 0 0 1 1
26 /home/lars/Projects/music-downloader/src/music_kraken/target/set_target.py Python 37 0 7 18 62
27 /home/lars/Projects/music-downloader/src/music_kraken/utils/__init__.py Python 1 0 1 1 3
28 /home/lars/Projects/music-downloader/src/music_kraken/utils/functions.py Python 3 0 0 1 4
29 /home/lars/Projects/music-downloader/src/music_kraken/utils/object_handeling.py Python 19 0 0 6 25
30 /home/lars/Projects/music-downloader/src/music_kraken/utils/phonetic_compares.py Python 34 0 0 15 49
31 /home/lars/Projects/music-downloader/src/music_kraken/utils/shared.py Python 39 0 2 9 50
32 /home/lars/Projects/music-downloader/src/music_kraken_cli.py Python 94 0 9 32 135
33 /home/lars/Projects/music-downloader/src/music_kraken_gtk.py Python 3 0 0 2 5
34 /home/lars/Projects/music-downloader/src/try-programming-interface.py Python 3 0 3 3 9
35 Total - 1594 60 314 531 2499

View File

@ -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}}

View File

@ -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)

View File

@ -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 |
+-------------------------------------------------------------------------------------------+----------+------------+------------+------------+------------+

View File

@ -1,10 +1,10 @@
# Details # Details
Date : 2022-11-23 10:25:09 Date : 2023-01-19 15:23:38
Directory /home/lars/Projects/music-downloader/src 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) [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 | | filename | language | code | comment | blank | total |
| :--- | :--- | ---: | ---: | ---: | ---: | | :--- | :--- | ---: | ---: | ---: | ---: |
| [src/__init__.py](/src/__init__.py) | Python | 0 | 0 | 1 | 1 | | [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/goof.py](/src/goof.py) | Python | 116 | 6 | 29 | 151 |
| [src/music_kraken/__init__.py](/src/music_kraken/__init__.py) | Python | 91 | 14 | 28 | 133 | | [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 | 4 | 3 | 3 | 10 | | [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 | 0 | 0 | 1 | 1 | | [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 | 64 | 21 | 20 | 105 | | [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 | 36 | 28 | 16 | 80 | | [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/__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/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/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/audio_source/sources/youtube.py](/src/music_kraken/audio_source/sources/youtube.py) | Python | 71 | 4 | 24 | 99 |
| [src/music_kraken/database/database.py](/src/music_kraken/database/database.py) | Python | 163 | 80 | 41 | 284 | | [src/music_kraken/database/__init__.py](/src/music_kraken/database/__init__.py) | Python | 12 | 1 | 4 | 17 |
| [src/music_kraken/database/song.py](/src/music_kraken/database/song.py) | Python | 86 | 5 | 34 | 125 | | [src/music_kraken/database/database.py](/src/music_kraken/database/database.py) | Python | 191 | 102 | 45 | 338 |
| [src/music_kraken/database/temp_database.py](/src/music_kraken/database/temp_database.py) | Python | 11 | 0 | 5 | 16 | | [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/__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/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 | 50 | 19 | 26 | 95 | | [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 | 0 | 0 | 1 | 1 | | [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 | 255 | 24 | 64 | 343 | | [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/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/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/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/__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/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/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/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 | 39 | 2 | 9 | 50 | | [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_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/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) [Summary](results.md) / Details / [Diff Summary](diff.md) / [Diff Details](diff-details.md)

View File

@ -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

View File

@ -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
1 filename language Python comment blank total
2 /home/lars/Projects/music-downloader/src/music_kraken/database/new_database.py Python 1 1 0 2
3 /home/lars/Projects/music-downloader/src/music_kraken/database/objects/__init__.py Python 1 0 1 2
4 Total - 2 1 1 4

View File

@ -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)

View File

@ -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 |
+------------------------------------------------------------------------------------+----------+------------+------------+------------+------------+

View File

@ -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
1 filename language Python SQLite Database comment blank total
2 /home/lars/Projects/music-downloader/src/__init__.py Python 0 0 0 0 1 1
3 /home/lars/Projects/music-downloader/src/goof.py Python 116 0 0 6 29 151
4 /home/lars/Projects/music-downloader/src/music_kraken/__init__.py Python 118 0 0 32 48 198
5 /home/lars/Projects/music-downloader/src/music_kraken/__main__.py Python 3 0 0 2 3 8
6 /home/lars/Projects/music-downloader/src/music_kraken/audio_source/__init__.py Python 10 0 0 0 5 15
7 /home/lars/Projects/music-downloader/src/music_kraken/audio_source/fetch_audio.py Python 75 0 0 12 20 107
8 /home/lars/Projects/music-downloader/src/music_kraken/audio_source/fetch_source.py Python 54 0 0 1 16 71
9 /home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/__init__.py Python 0 0 0 0 1 1
10 /home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/local_files.py Python 40 0 0 0 18 58
11 /home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/musify.py Python 136 0 0 9 37 182
12 /home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/source.py Python 11 0 0 5 8 24
13 /home/lars/Projects/music-downloader/src/music_kraken/audio_source/sources/youtube.py Python 71 0 0 4 24 99
14 /home/lars/Projects/music-downloader/src/music_kraken/database/__init__.py Python 12 0 0 1 4 17
15 /home/lars/Projects/music-downloader/src/music_kraken/database/database.py Python 191 0 0 102 45 338
16 /home/lars/Projects/music-downloader/src/music_kraken/database/get_song.py Python 40 0 0 5 11 56
17 /home/lars/Projects/music-downloader/src/music_kraken/database/new_database.py Python 402 0 0 110 107 619
18 /home/lars/Projects/music-downloader/src/music_kraken/database/objects/__init__.py Python 15 0 0 0 5 20
19 /home/lars/Projects/music-downloader/src/music_kraken/database/objects/artist.py Python 18 0 0 0 5 23
20 /home/lars/Projects/music-downloader/src/music_kraken/database/objects/metadata.py Python 245 0 0 52 50 347
21 /home/lars/Projects/music-downloader/src/music_kraken/database/objects/parents.py Python 46 0 0 8 23 77
22 /home/lars/Projects/music-downloader/src/music_kraken/database/objects/song.py Python 258 0 0 52 76 386
23 /home/lars/Projects/music-downloader/src/music_kraken/database/objects/source.py Python 46 0 0 7 13 66
24 /home/lars/Projects/music-downloader/src/music_kraken/database/song.py Python 125 0 0 20 45 190
25 /home/lars/Projects/music-downloader/src/music_kraken/database/temp_database.py Python 12 0 0 0 8 20
26 /home/lars/Projects/music-downloader/src/music_kraken/lyrics/__init__.py Python 0 0 0 0 1 1
27 /home/lars/Projects/music-downloader/src/music_kraken/lyrics/genius.py Python 115 0 0 16 42 173
28 /home/lars/Projects/music-downloader/src/music_kraken/lyrics/lyrics.py Python 36 0 0 25 20 81
29 /home/lars/Projects/music-downloader/src/music_kraken/metadata/__init__.py Python 6 0 0 0 2 8
30 /home/lars/Projects/music-downloader/src/music_kraken/metadata/metadata_fetch.py Python 257 0 0 24 65 346
31 /home/lars/Projects/music-downloader/src/music_kraken/metadata/metadata_search.py Python 253 0 0 40 72 365
32 /home/lars/Projects/music-downloader/src/music_kraken/metadata/sources/__init__.py Python 3 0 0 0 2 5
33 /home/lars/Projects/music-downloader/src/music_kraken/metadata/sources/musicbrainz.py Python 42 0 0 6 9 57
34 /home/lars/Projects/music-downloader/src/music_kraken/static_files/new_db.sql SQLite 0 71 0 0 10 81
35 /home/lars/Projects/music-downloader/src/music_kraken/static_files/temp_database_structure.sql SQLite 0 135 0 0 10 145
36 /home/lars/Projects/music-downloader/src/music_kraken/tagging/__init__.py Python 8 0 0 0 2 10
37 /home/lars/Projects/music-downloader/src/music_kraken/tagging/id3.py Python 51 0 0 4 20 75
38 /home/lars/Projects/music-downloader/src/music_kraken/tagging/song.py Python 3 0 0 0 1 4
39 /home/lars/Projects/music-downloader/src/music_kraken/target/__init__.py Python 4 0 0 0 2 6
40 /home/lars/Projects/music-downloader/src/music_kraken/target/set_target.py Python 37 0 0 7 18 62
41 /home/lars/Projects/music-downloader/src/music_kraken/utils/__init__.py Python 1 0 0 1 1 3
42 /home/lars/Projects/music-downloader/src/music_kraken/utils/functions.py Python 3 0 0 0 1 4
43 /home/lars/Projects/music-downloader/src/music_kraken/utils/object_handeling.py Python 19 0 0 0 6 25
44 /home/lars/Projects/music-downloader/src/music_kraken/utils/phonetic_compares.py Python 39 0 0 2 17 58
45 /home/lars/Projects/music-downloader/src/music_kraken/utils/shared.py Python 61 0 0 3 9 73
46 /home/lars/Projects/music-downloader/src/music_kraken_cli.py Python 94 0 0 9 32 135
47 /home/lars/Projects/music-downloader/src/music_kraken_gtk.py Python 3 0 0 0 2 5
48 /home/lars/Projects/music-downloader/src/test.db Database 0 0 92 0 0 92
49 /home/lars/Projects/music-downloader/src/try-programming-interface.py Python 14 0 0 98 22 134
50 /home/lars/Projects/music-downloader/src/try_python.py Python 13 0 0 1 6 20
51 Total - 3106 206 92 664 974 5042

File diff suppressed because one or more lines are too long

View File

@ -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)

View File

@ -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 |
+------------------------------------------------------------------------------------------------+----------+------------+------------+------------+------------+

View File

@ -6,7 +6,8 @@ from music_kraken import (
Source, Source,
Album, Album,
Artist, Artist,
ID3Timestamp ID3Timestamp,
source_types
) )
from music_kraken.tagging import ( from music_kraken.tagging import (
@ -64,8 +65,8 @@ song_input = Song(
Lyrics(text="test", language="en") Lyrics(text="test", language="en")
], ],
sources=[ sources=[
Source(src="youtube", url="https://youtu.be/dfnsdajlhkjhsd"), Source(source_types.SONG, src="youtube", url="https://youtu.be/dfnsdajlhkjhsd"),
Source(src="musify", url="https://ln.topdf.de/Music-Kraken/") Source(source_types.SONG, src="musify", url="https://ln.topdf.de/Music-Kraken/")
], ],
album=album_input, album=album_input,
main_artist_list=[main_artist], main_artist_list=[main_artist],

View File

@ -41,6 +41,7 @@ musicbrainzngs.set_useragent("metadata receiver", "0.1", "https://github.com/HeI
Song = database.Song Song = database.Song
Artist = database.Artist Artist = database.Artist
Source = database.Source Source = database.Source
source_types = database.source_types
Target = database.Target Target = database.Target
Lyrics = database.Lyrics Lyrics = database.Lyrics
Album = database.Album Album = database.Album

View File

@ -4,6 +4,7 @@ from . import (
) )
ID3Timestamp = objects.ID3Timestamp ID3Timestamp = objects.ID3Timestamp
source_types = objects.source_types
Song = objects.Song Song = objects.Song
Source = objects.Source Source = objects.Source
Target = objects.Target Target = objects.Target

View File

@ -113,6 +113,7 @@ class Database:
return self.push_artist(artist=db_object) return self.push_artist(artist=db_object)
if type(db_object) == Source: if type(db_object) == Source:
# needs to have the property type_enum or type_str set
return self.push_source(source=db_object) return self.push_source(source=db_object)
if type(db_object) == Album: if type(db_object) == Album:
@ -185,6 +186,7 @@ class Database:
# add sources # add sources
for source in song.sources: for source in song.sources:
source.add_song(song) source.add_song(song)
source.type_enum = source_types.SONG
self.push_source(source=source) self.push_source(source=source)
# add lyrics # add lyrics
@ -221,6 +223,8 @@ class Database:
self.connection.commit() self.connection.commit()
def push_source(self, source: Source): def push_source(self, source: Source):
if source.song_ref_id is None: if source.song_ref_id is None:
logger.warning("the Source don't refer to a song") 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 (?, ?, ?, ?, ?);" query = f"INSERT OR REPLACE INTO {table} (id, type, song_id, src, url) VALUES (?, ?, ?, ?, ?);"
values = ( values = (
source.id, source.id,
source.type, source.type_str,
source.song_ref_id, source.song_ref_id,
source.site_str, source.site_str,
source.url source.url
@ -359,11 +363,12 @@ class Database:
self.cursor.execute(query) self.cursor.execute(query)
source_rows = self.cursor.fetchall() source_rows = self.cursor.fetchall()
return [Source( return [Source(
source_types(source_row['type']),
id_=source_row['id'], id_=source_row['id'],
src=source_row['src'], src=source_row['src'],
url=source_row['url'], url=source_row['url']
type_str=type_enum.value
) for source_row in source_rows] ) for source_row in source_rows]
def pull_artist_song(self, song_ref: Reference = None, artist_ref: Reference = None) -> List[tuple]: def pull_artist_song(self, song_ref: Reference = None, artist_ref: Reference = None) -> List[tuple]:

View File

@ -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_) DatabaseObject.__init__(self, id_=id_)
SongAttribute.__init__(self) SongAttribute.__init__(self)
self.type_enum = None self.type_enum = type_enum
if type_str is not None:
self.type_enum = source_types(type_str)
self.src = sources(src) self.src = sources(src)
self.url = url self.url = url
@ -62,4 +60,5 @@ class Source(DatabaseObject, SongAttribute, ID3Metadata):
return f"{self.src}: {self.url}" return f"{self.src}: {self.url}"
site_str = property(fget=lambda self: self.src.value) 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)) homepage = property(fget=lambda self: sources.get_homepage(self.src))

View File

@ -14,7 +14,7 @@ CREATE TABLE Song
CREATE TABLE Source CREATE TABLE Source
( (
id BIGINT AUTO_INCREMENT PRIMARY KEY, id BIGINT AUTO_INCREMENT PRIMARY KEY,
type TEXT NOT NULL type TEXT NOT NULL,
src TEXT NOT NULL, src TEXT NOT NULL,
url TEXT NOT NULL, url TEXT NOT NULL,
certainty INT NOT NULL DEFAULT 0, -- certainty=0 -> it is definitely a valid source certainty INT NOT NULL DEFAULT 0, -- certainty=0 -> it is definitely a valid source

BIN
test.db

Binary file not shown.