polished logs for downloading metadata

This commit is contained in:
Lars Noack 2022-11-09 08:09:20 +01:00
parent dbf47c1937
commit 36b9125027
10 changed files with 332 additions and 11 deletions

View File

@ -0,0 +1,49 @@
# Details
Date : 2022-11-08 16:41:25
Directory /home/lars/Projects/music-downloader
Total : 34 files, 1767 codes, 166 comments, 486 blanks, all 2419 lines
[Summary](results.md) / Details / [Diff Summary](diff.md) / [Diff Details](diff-details.md)
## Files
| filename | language | code | comment | blank | total |
| :--- | :--- | ---: | ---: | ---: | ---: |
| [music-downloader/.VSCodeCounter/2022-10-28_12-39-22/details.md](/music-downloader/.VSCodeCounter/2022-10-28_12-39-22/details.md) | Markdown | 31 | 0 | 6 | 37 |
| [music-downloader/.VSCodeCounter/2022-10-28_12-39-22/diff-details.md](/music-downloader/.VSCodeCounter/2022-10-28_12-39-22/diff-details.md) | Markdown | 9 | 0 | 6 | 15 |
| [music-downloader/.VSCodeCounter/2022-10-28_12-39-22/diff.md](/music-downloader/.VSCodeCounter/2022-10-28_12-39-22/diff.md) | Markdown | 12 | 0 | 7 | 19 |
| [music-downloader/.VSCodeCounter/2022-10-28_12-39-22/results.json](/music-downloader/.VSCodeCounter/2022-10-28_12-39-22/results.json) | JSON | 1 | 0 | 0 | 1 |
| [music-downloader/.VSCodeCounter/2022-10-28_12-39-22/results.md](/music-downloader/.VSCodeCounter/2022-10-28_12-39-22/results.md) | Markdown | 22 | 0 | 7 | 29 |
| [music-downloader/.VSCodeCounter/2022-11-07_11-51-29/details.md](/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/details.md) | Markdown | 37 | 0 | 6 | 43 |
| [music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff-details.md](/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff-details.md) | Markdown | 25 | 0 | 6 | 31 |
| [music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff.md](/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff.md) | Markdown | 22 | 0 | 7 | 29 |
| [music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.json](/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.json) | JSON | 1 | 0 | 0 | 1 |
| [music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.md](/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.md) | Markdown | 26 | 0 | 7 | 33 |
| [music-downloader/.idea/dataSources.xml](/music-downloader/.idea/dataSources.xml) | XML | 12 | 0 | 0 | 12 |
| [music-downloader/.idea/inspectionProfiles/profiles_settings.xml](/music-downloader/.idea/inspectionProfiles/profiles_settings.xml) | XML | 6 | 0 | 0 | 6 |
| [music-downloader/.idea/misc.xml](/music-downloader/.idea/misc.xml) | XML | 4 | 0 | 0 | 4 |
| [music-downloader/.idea/modules.xml](/music-downloader/.idea/modules.xml) | XML | 8 | 0 | 0 | 8 |
| [music-downloader/.idea/music-downloader.iml](/music-downloader/.idea/music-downloader.iml) | XML | 10 | 0 | 0 | 10 |
| [music-downloader/.idea/vcs.xml](/music-downloader/.idea/vcs.xml) | XML | 6 | 0 | 0 | 6 |
| [music-downloader/README.md](/music-downloader/README.md) | Markdown | 99 | 0 | 36 | 135 |
| [music-downloader/assets/database_structure.sql](/music-downloader/assets/database_structure.sql) | SQLite | 51 | 0 | 6 | 57 |
| [music-downloader/requirements.txt](/music-downloader/requirements.txt) | pip requirements | 8 | 0 | 0 | 8 |
| [music-downloader/src/download.py](/music-downloader/src/download.py) | Python | 57 | 11 | 19 | 87 |
| [music-downloader/src/download_links.py](/music-downloader/src/download_links.py) | Python | 41 | 3 | 15 | 59 |
| [music-downloader/src/main.py](/music-downloader/src/main.py) | Python | 98 | 0 | 30 | 128 |
| [music-downloader/src/metadata/database.py](/music-downloader/src/metadata/database.py) | Python | 153 | 61 | 38 | 252 |
| [music-downloader/src/metadata/database_structure.sql](/music-downloader/src/metadata/database_structure.sql) | SQLite | 51 | 0 | 6 | 57 |
| [music-downloader/src/metadata/download.py](/music-downloader/src/metadata/download.py) | Python | 270 | 24 | 67 | 361 |
| [music-downloader/src/metadata/metadata.py](/music-downloader/src/metadata/metadata.py) | Python | 106 | 9 | 28 | 143 |
| [music-downloader/src/metadata/object_handeling.py](/music-downloader/src/metadata/object_handeling.py) | Python | 19 | 0 | 6 | 25 |
| [music-downloader/src/metadata/options.py](/music-downloader/src/metadata/options.py) | Python | 87 | 8 | 24 | 119 |
| [music-downloader/src/metadata/search.py](/music-downloader/src/metadata/search.py) | Python | 257 | 39 | 75 | 371 |
| [music-downloader/src/scraping/musify.py](/music-downloader/src/scraping/musify.py) | Python | 112 | 2 | 40 | 154 |
| [music-downloader/src/scraping/phonetic_compares.py](/music-downloader/src/scraping/phonetic_compares.py) | Python | 15 | 0 | 8 | 23 |
| [music-downloader/src/scraping/youtube_music.py](/music-downloader/src/scraping/youtube_music.py) | Python | 66 | 2 | 17 | 85 |
| [music-downloader/src/test.py](/music-downloader/src/test.py) | Python | 18 | 1 | 6 | 25 |
| [music-downloader/src/url_to_path.py](/music-downloader/src/url_to_path.py) | Python | 27 | 6 | 13 | 46 |
[Summary](results.md) / Details / [Diff Summary](diff.md) / [Diff Details](diff-details.md)

View File

@ -0,0 +1,31 @@
# Diff Details
Date : 2022-11-08 16:41:25
Directory /home/lars/Projects/music-downloader
Total : 16 files, 401 codes, 39 comments, 98 blanks, all 538 lines
[Summary](results.md) / [Details](details.md) / [Diff Summary](diff.md) / Diff Details
## Files
| filename | language | code | comment | blank | total |
| :--- | :--- | ---: | ---: | ---: | ---: |
| [music-downloader/.VSCodeCounter/2022-11-07_11-51-29/details.md](/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/details.md) | Markdown | 37 | 0 | 6 | 43 |
| [music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff-details.md](/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff-details.md) | Markdown | 25 | 0 | 6 | 31 |
| [music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff.md](/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff.md) | Markdown | 22 | 0 | 7 | 29 |
| [music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.json](/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.json) | JSON | 1 | 0 | 0 | 1 |
| [music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.md](/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.md) | Markdown | 26 | 0 | 7 | 33 |
| [music-downloader/README.md](/music-downloader/README.md) | Markdown | 23 | 0 | 1 | 24 |
| [music-downloader/src/download.py](/music-downloader/src/download.py) | Python | -3 | 0 | -3 | -6 |
| [music-downloader/src/download_links.py](/music-downloader/src/download_links.py) | Python | 4 | 0 | 0 | 4 |
| [music-downloader/src/main.py](/music-downloader/src/main.py) | Python | 0 | 0 | -1 | -1 |
| [music-downloader/src/metadata/search.py](/music-downloader/src/metadata/search.py) | Python | 257 | 39 | 75 | 371 |
| [music-downloader/src/musify.py](/music-downloader/src/musify.py) | Python | -106 | -2 | -40 | -148 |
| [music-downloader/src/phonetic_compares.py](/music-downloader/src/phonetic_compares.py) | Python | -15 | 0 | -8 | -23 |
| [music-downloader/src/scraping/musify.py](/music-downloader/src/scraping/musify.py) | Python | 112 | 2 | 40 | 154 |
| [music-downloader/src/scraping/phonetic_compares.py](/music-downloader/src/scraping/phonetic_compares.py) | Python | 15 | 0 | 8 | 23 |
| [music-downloader/src/scraping/youtube_music.py](/music-downloader/src/scraping/youtube_music.py) | Python | 66 | 2 | 17 | 85 |
| [music-downloader/src/youtube_music.py](/music-downloader/src/youtube_music.py) | Python | -63 | -2 | -17 | -82 |
[Summary](results.md) / [Details](details.md) / [Diff Summary](diff.md) / Diff Details

View File

@ -0,0 +1,18 @@
"filename", "language", "Markdown", "Python", "JSON", "comment", "blank", "total"
"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/details.md", "Markdown", 37, 0, 0, 0, 6, 43
"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff-details.md", "Markdown", 25, 0, 0, 0, 6, 31
"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff.md", "Markdown", 22, 0, 0, 0, 7, 29
"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.json", "JSON", 0, 0, 1, 0, 0, 1
"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.md", "Markdown", 26, 0, 0, 0, 7, 33
"/home/lars/Projects/music-downloader/README.md", "Markdown", 23, 0, 0, 0, 1, 24
"/home/lars/Projects/music-downloader/src/download.py", "Python", 0, -3, 0, 0, -3, -6
"/home/lars/Projects/music-downloader/src/download_links.py", "Python", 0, 4, 0, 0, 0, 4
"/home/lars/Projects/music-downloader/src/main.py", "Python", 0, 0, 0, 0, -1, -1
"/home/lars/Projects/music-downloader/src/metadata/search.py", "Python", 0, 257, 0, 39, 75, 371
"/home/lars/Projects/music-downloader/src/musify.py", "Python", 0, -106, 0, -2, -40, -148
"/home/lars/Projects/music-downloader/src/phonetic_compares.py", "Python", 0, -15, 0, 0, -8, -23
"/home/lars/Projects/music-downloader/src/scraping/musify.py", "Python", 0, 112, 0, 2, 40, 154
"/home/lars/Projects/music-downloader/src/scraping/phonetic_compares.py", "Python", 0, 15, 0, 0, 8, 23
"/home/lars/Projects/music-downloader/src/scraping/youtube_music.py", "Python", 0, 66, 0, 2, 17, 85
"/home/lars/Projects/music-downloader/src/youtube_music.py", "Python", 0, -63, 0, -2, -17, -82
"Total", "-", 133, 267, 1, 39, 98, 538
1 filename language Markdown Python JSON comment blank total
2 /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/details.md Markdown 37 0 0 0 6 43
3 /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff-details.md Markdown 25 0 0 0 6 31
4 /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff.md Markdown 22 0 0 0 7 29
5 /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.json JSON 0 0 1 0 0 1
6 /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.md Markdown 26 0 0 0 7 33
7 /home/lars/Projects/music-downloader/README.md Markdown 23 0 0 0 1 24
8 /home/lars/Projects/music-downloader/src/download.py Python 0 -3 0 0 -3 -6
9 /home/lars/Projects/music-downloader/src/download_links.py Python 0 4 0 0 0 4
10 /home/lars/Projects/music-downloader/src/main.py Python 0 0 0 0 -1 -1
11 /home/lars/Projects/music-downloader/src/metadata/search.py Python 0 257 0 39 75 371
12 /home/lars/Projects/music-downloader/src/musify.py Python 0 -106 0 -2 -40 -148
13 /home/lars/Projects/music-downloader/src/phonetic_compares.py Python 0 -15 0 0 -8 -23
14 /home/lars/Projects/music-downloader/src/scraping/musify.py Python 0 112 0 2 40 154
15 /home/lars/Projects/music-downloader/src/scraping/phonetic_compares.py Python 0 15 0 0 8 23
16 /home/lars/Projects/music-downloader/src/scraping/youtube_music.py Python 0 66 0 2 17 85
17 /home/lars/Projects/music-downloader/src/youtube_music.py Python 0 -63 0 -2 -17 -82
18 Total - 133 267 1 39 98 538

View File

@ -0,0 +1,28 @@
# Diff Summary
Date : 2022-11-08 16:41:25
Directory /home/lars/Projects/music-downloader
Total : 16 files, 401 codes, 39 comments, 98 blanks, all 538 lines
[Summary](results.md) / [Details](details.md) / Diff Summary / [Diff Details](diff-details.md)
## Languages
| language | files | code | comment | blank | total |
| :--- | ---: | ---: | ---: | ---: | ---: |
| Python | 10 | 267 | 39 | 71 | 377 |
| Markdown | 5 | 133 | 0 | 27 | 160 |
| JSON | 1 | 1 | 0 | 0 | 1 |
## Directories
| path | files | code | comment | blank | total |
| :--- | ---: | ---: | ---: | ---: | ---: |
| . | 16 | 401 | 39 | 98 | 538 |
| .VSCodeCounter | 5 | 111 | 0 | 26 | 137 |
| .VSCodeCounter/2022-11-07_11-51-29 | 5 | 111 | 0 | 26 | 137 |
| src | 10 | 267 | 39 | 71 | 377 |
| src/metadata | 1 | 257 | 39 | 75 | 371 |
| src/scraping | 3 | 193 | 4 | 65 | 262 |
[Summary](results.md) / [Details](details.md) / Diff Summary / [Diff Details](diff-details.md)

View File

@ -0,0 +1,47 @@
Date : 2022-11-08 16:41:25
Directory : /home/lars/Projects/music-downloader
Total : 16 files, 401 codes, 39 comments, 98 blanks, all 538 lines
Languages
+----------+------------+------------+------------+------------+------------+
| language | files | code | comment | blank | total |
+----------+------------+------------+------------+------------+------------+
| Python | 10 | 267 | 39 | 71 | 377 |
| Markdown | 5 | 133 | 0 | 27 | 160 |
| JSON | 1 | 1 | 0 | 0 | 1 |
+----------+------------+------------+------------+------------+------------+
Directories
+-----------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+
| path | files | code | comment | blank | total |
+-----------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+
| . | 16 | 401 | 39 | 98 | 538 |
| .VSCodeCounter | 5 | 111 | 0 | 26 | 137 |
| .VSCodeCounter/2022-11-07_11-51-29 | 5 | 111 | 0 | 26 | 137 |
| src | 10 | 267 | 39 | 71 | 377 |
| src/metadata | 1 | 257 | 39 | 75 | 371 |
| src/scraping | 3 | 193 | 4 | 65 | 262 |
+-----------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+
Files
+-----------------------------------------------------------------------------------------+----------+------------+------------+------------+------------+
| filename | language | code | comment | blank | total |
+-----------------------------------------------------------------------------------------+----------+------------+------------+------------+------------+
| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/details.md | Markdown | 37 | 0 | 6 | 43 |
| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff-details.md | Markdown | 25 | 0 | 6 | 31 |
| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff.md | Markdown | 22 | 0 | 7 | 29 |
| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.json | JSON | 1 | 0 | 0 | 1 |
| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.md | Markdown | 26 | 0 | 7 | 33 |
| /home/lars/Projects/music-downloader/README.md | Markdown | 23 | 0 | 1 | 24 |
| /home/lars/Projects/music-downloader/src/download.py | Python | -3 | 0 | -3 | -6 |
| /home/lars/Projects/music-downloader/src/download_links.py | Python | 4 | 0 | 0 | 4 |
| /home/lars/Projects/music-downloader/src/main.py | Python | 0 | 0 | -1 | -1 |
| /home/lars/Projects/music-downloader/src/metadata/search.py | Python | 257 | 39 | 75 | 371 |
| /home/lars/Projects/music-downloader/src/musify.py | Python | -106 | -2 | -40 | -148 |
| /home/lars/Projects/music-downloader/src/phonetic_compares.py | Python | -15 | 0 | -8 | -23 |
| /home/lars/Projects/music-downloader/src/scraping/musify.py | Python | 112 | 2 | 40 | 154 |
| /home/lars/Projects/music-downloader/src/scraping/phonetic_compares.py | Python | 15 | 0 | 8 | 23 |
| /home/lars/Projects/music-downloader/src/scraping/youtube_music.py | Python | 66 | 2 | 17 | 85 |
| /home/lars/Projects/music-downloader/src/youtube_music.py | Python | -63 | -2 | -17 | -82 |
| Total | | 401 | 39 | 98 | 538 |
+-----------------------------------------------------------------------------------------+----------+------------+------------+------------+------------+

View File

@ -0,0 +1,36 @@
"filename", "language", "Markdown", "pip requirements", "XML", "SQLite", "Python", "JSON", "comment", "blank", "total"
"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-10-28_12-39-22/details.md", "Markdown", 31, 0, 0, 0, 0, 0, 0, 6, 37
"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-10-28_12-39-22/diff-details.md", "Markdown", 9, 0, 0, 0, 0, 0, 0, 6, 15
"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-10-28_12-39-22/diff.md", "Markdown", 12, 0, 0, 0, 0, 0, 0, 7, 19
"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-10-28_12-39-22/results.json", "JSON", 0, 0, 0, 0, 0, 1, 0, 0, 1
"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-10-28_12-39-22/results.md", "Markdown", 22, 0, 0, 0, 0, 0, 0, 7, 29
"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/details.md", "Markdown", 37, 0, 0, 0, 0, 0, 0, 6, 43
"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff-details.md", "Markdown", 25, 0, 0, 0, 0, 0, 0, 6, 31
"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff.md", "Markdown", 22, 0, 0, 0, 0, 0, 0, 7, 29
"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.json", "JSON", 0, 0, 0, 0, 0, 1, 0, 0, 1
"/home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.md", "Markdown", 26, 0, 0, 0, 0, 0, 0, 7, 33
"/home/lars/Projects/music-downloader/.idea/dataSources.xml", "XML", 0, 0, 12, 0, 0, 0, 0, 0, 12
"/home/lars/Projects/music-downloader/.idea/inspectionProfiles/profiles_settings.xml", "XML", 0, 0, 6, 0, 0, 0, 0, 0, 6
"/home/lars/Projects/music-downloader/.idea/misc.xml", "XML", 0, 0, 4, 0, 0, 0, 0, 0, 4
"/home/lars/Projects/music-downloader/.idea/modules.xml", "XML", 0, 0, 8, 0, 0, 0, 0, 0, 8
"/home/lars/Projects/music-downloader/.idea/music-downloader.iml", "XML", 0, 0, 10, 0, 0, 0, 0, 0, 10
"/home/lars/Projects/music-downloader/.idea/vcs.xml", "XML", 0, 0, 6, 0, 0, 0, 0, 0, 6
"/home/lars/Projects/music-downloader/README.md", "Markdown", 99, 0, 0, 0, 0, 0, 0, 36, 135
"/home/lars/Projects/music-downloader/assets/database_structure.sql", "SQLite", 0, 0, 0, 51, 0, 0, 0, 6, 57
"/home/lars/Projects/music-downloader/requirements.txt", "pip requirements", 0, 8, 0, 0, 0, 0, 0, 0, 8
"/home/lars/Projects/music-downloader/src/download.py", "Python", 0, 0, 0, 0, 57, 0, 11, 19, 87
"/home/lars/Projects/music-downloader/src/download_links.py", "Python", 0, 0, 0, 0, 41, 0, 3, 15, 59
"/home/lars/Projects/music-downloader/src/main.py", "Python", 0, 0, 0, 0, 98, 0, 0, 30, 128
"/home/lars/Projects/music-downloader/src/metadata/database.py", "Python", 0, 0, 0, 0, 153, 0, 61, 38, 252
"/home/lars/Projects/music-downloader/src/metadata/database_structure.sql", "SQLite", 0, 0, 0, 51, 0, 0, 0, 6, 57
"/home/lars/Projects/music-downloader/src/metadata/download.py", "Python", 0, 0, 0, 0, 270, 0, 24, 67, 361
"/home/lars/Projects/music-downloader/src/metadata/metadata.py", "Python", 0, 0, 0, 0, 106, 0, 9, 28, 143
"/home/lars/Projects/music-downloader/src/metadata/object_handeling.py", "Python", 0, 0, 0, 0, 19, 0, 0, 6, 25
"/home/lars/Projects/music-downloader/src/metadata/options.py", "Python", 0, 0, 0, 0, 87, 0, 8, 24, 119
"/home/lars/Projects/music-downloader/src/metadata/search.py", "Python", 0, 0, 0, 0, 257, 0, 39, 75, 371
"/home/lars/Projects/music-downloader/src/scraping/musify.py", "Python", 0, 0, 0, 0, 112, 0, 2, 40, 154
"/home/lars/Projects/music-downloader/src/scraping/phonetic_compares.py", "Python", 0, 0, 0, 0, 15, 0, 0, 8, 23
"/home/lars/Projects/music-downloader/src/scraping/youtube_music.py", "Python", 0, 0, 0, 0, 66, 0, 2, 17, 85
"/home/lars/Projects/music-downloader/src/test.py", "Python", 0, 0, 0, 0, 18, 0, 1, 6, 25
"/home/lars/Projects/music-downloader/src/url_to_path.py", "Python", 0, 0, 0, 0, 27, 0, 6, 13, 46
"Total", "-", 283, 8, 46, 102, 1326, 2, 166, 486, 2419
1 filename language Markdown pip requirements XML SQLite Python JSON comment blank total
2 /home/lars/Projects/music-downloader/.VSCodeCounter/2022-10-28_12-39-22/details.md Markdown 31 0 0 0 0 0 0 6 37
3 /home/lars/Projects/music-downloader/.VSCodeCounter/2022-10-28_12-39-22/diff-details.md Markdown 9 0 0 0 0 0 0 6 15
4 /home/lars/Projects/music-downloader/.VSCodeCounter/2022-10-28_12-39-22/diff.md Markdown 12 0 0 0 0 0 0 7 19
5 /home/lars/Projects/music-downloader/.VSCodeCounter/2022-10-28_12-39-22/results.json JSON 0 0 0 0 0 1 0 0 1
6 /home/lars/Projects/music-downloader/.VSCodeCounter/2022-10-28_12-39-22/results.md Markdown 22 0 0 0 0 0 0 7 29
7 /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/details.md Markdown 37 0 0 0 0 0 0 6 43
8 /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff-details.md Markdown 25 0 0 0 0 0 0 6 31
9 /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff.md Markdown 22 0 0 0 0 0 0 7 29
10 /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.json JSON 0 0 0 0 0 1 0 0 1
11 /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.md Markdown 26 0 0 0 0 0 0 7 33
12 /home/lars/Projects/music-downloader/.idea/dataSources.xml XML 0 0 12 0 0 0 0 0 12
13 /home/lars/Projects/music-downloader/.idea/inspectionProfiles/profiles_settings.xml XML 0 0 6 0 0 0 0 0 6
14 /home/lars/Projects/music-downloader/.idea/misc.xml XML 0 0 4 0 0 0 0 0 4
15 /home/lars/Projects/music-downloader/.idea/modules.xml XML 0 0 8 0 0 0 0 0 8
16 /home/lars/Projects/music-downloader/.idea/music-downloader.iml XML 0 0 10 0 0 0 0 0 10
17 /home/lars/Projects/music-downloader/.idea/vcs.xml XML 0 0 6 0 0 0 0 0 6
18 /home/lars/Projects/music-downloader/README.md Markdown 99 0 0 0 0 0 0 36 135
19 /home/lars/Projects/music-downloader/assets/database_structure.sql SQLite 0 0 0 51 0 0 0 6 57
20 /home/lars/Projects/music-downloader/requirements.txt pip requirements 0 8 0 0 0 0 0 0 8
21 /home/lars/Projects/music-downloader/src/download.py Python 0 0 0 0 57 0 11 19 87
22 /home/lars/Projects/music-downloader/src/download_links.py Python 0 0 0 0 41 0 3 15 59
23 /home/lars/Projects/music-downloader/src/main.py Python 0 0 0 0 98 0 0 30 128
24 /home/lars/Projects/music-downloader/src/metadata/database.py Python 0 0 0 0 153 0 61 38 252
25 /home/lars/Projects/music-downloader/src/metadata/database_structure.sql SQLite 0 0 0 51 0 0 0 6 57
26 /home/lars/Projects/music-downloader/src/metadata/download.py Python 0 0 0 0 270 0 24 67 361
27 /home/lars/Projects/music-downloader/src/metadata/metadata.py Python 0 0 0 0 106 0 9 28 143
28 /home/lars/Projects/music-downloader/src/metadata/object_handeling.py Python 0 0 0 0 19 0 0 6 25
29 /home/lars/Projects/music-downloader/src/metadata/options.py Python 0 0 0 0 87 0 8 24 119
30 /home/lars/Projects/music-downloader/src/metadata/search.py Python 0 0 0 0 257 0 39 75 371
31 /home/lars/Projects/music-downloader/src/scraping/musify.py Python 0 0 0 0 112 0 2 40 154
32 /home/lars/Projects/music-downloader/src/scraping/phonetic_compares.py Python 0 0 0 0 15 0 0 8 23
33 /home/lars/Projects/music-downloader/src/scraping/youtube_music.py Python 0 0 0 0 66 0 2 17 85
34 /home/lars/Projects/music-downloader/src/test.py Python 0 0 0 0 18 0 1 6 25
35 /home/lars/Projects/music-downloader/src/url_to_path.py Python 0 0 0 0 27 0 6 13 46
36 Total - 283 8 46 102 1326 2 166 486 2419

View File

@ -0,0 +1 @@
{"file:///home/lars/Projects/music-downloader/README.md":{"language":"Markdown","code":99,"comment":0,"blank":36},"file:///home/lars/Projects/music-downloader/requirements.txt":{"language":"pip requirements","code":8,"comment":0,"blank":0},"file:///home/lars/Projects/music-downloader/.idea/music-downloader.iml":{"language":"XML","code":10,"comment":0,"blank":0},"file:///home/lars/Projects/music-downloader/assets/database_structure.sql":{"language":"SQLite","code":51,"comment":0,"blank":6},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-10-28_12-39-22/diff-details.md":{"language":"Markdown","code":9,"comment":0,"blank":6},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-10-28_12-39-22/results.md":{"language":"Markdown","code":22,"comment":0,"blank":7},"file:///home/lars/Projects/music-downloader/src/test.py":{"language":"Python","code":18,"comment":1,"blank":6},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-10-28_12-39-22/details.md":{"language":"Markdown","code":31,"comment":0,"blank":6},"file:///home/lars/Projects/music-downloader/.idea/dataSources.xml":{"language":"XML","code":12,"comment":0,"blank":0},"file:///home/lars/Projects/music-downloader/.idea/modules.xml":{"language":"XML","code":8,"comment":0,"blank":0},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-10-28_12-39-22/results.json":{"language":"JSON","code":1,"comment":0,"blank":0},"file:///home/lars/Projects/music-downloader/src/download_links.py":{"language":"Python","code":41,"comment":3,"blank":15},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-10-28_12-39-22/diff.md":{"language":"Markdown","code":12,"comment":0,"blank":7},"file:///home/lars/Projects/music-downloader/src/url_to_path.py":{"language":"Python","code":27,"comment":6,"blank":13},"file:///home/lars/Projects/music-downloader/src/main.py":{"language":"Python","code":98,"comment":0,"blank":30},"file:///home/lars/Projects/music-downloader/src/download.py":{"language":"Python","code":57,"comment":11,"blank":19},"file:///home/lars/Projects/music-downloader/src/scraping/phonetic_compares.py":{"language":"Python","code":15,"comment":0,"blank":8},"file:///home/lars/Projects/music-downloader/src/scraping/youtube_music.py":{"language":"Python","code":66,"comment":2,"blank":17},"file:///home/lars/Projects/music-downloader/src/scraping/musify.py":{"language":"Python","code":112,"comment":2,"blank":40},"file:///home/lars/Projects/music-downloader/src/metadata/database.py":{"language":"Python","code":153,"comment":61,"blank":38},"file:///home/lars/Projects/music-downloader/src/metadata/search.py":{"language":"Python","code":257,"comment":39,"blank":75},"file:///home/lars/Projects/music-downloader/src/metadata/download.py":{"language":"Python","code":270,"comment":24,"blank":67},"file:///home/lars/Projects/music-downloader/.idea/misc.xml":{"language":"XML","code":4,"comment":0,"blank":0},"file:///home/lars/Projects/music-downloader/src/metadata/metadata.py":{"language":"Python","code":106,"comment":9,"blank":28},"file:///home/lars/Projects/music-downloader/src/metadata/object_handeling.py":{"language":"Python","code":19,"comment":0,"blank":6},"file:///home/lars/Projects/music-downloader/src/metadata/database_structure.sql":{"language":"SQLite","code":51,"comment":0,"blank":6},"file:///home/lars/Projects/music-downloader/src/metadata/options.py":{"language":"Python","code":87,"comment":8,"blank":24},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff-details.md":{"language":"Markdown","code":25,"comment":0,"blank":6},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.md":{"language":"Markdown","code":26,"comment":0,"blank":7},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.json":{"language":"JSON","code":1,"comment":0,"blank":0},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff.md":{"language":"Markdown","code":22,"comment":0,"blank":7},"file:///home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/details.md":{"language":"Markdown","code":37,"comment":0,"blank":6},"file:///home/lars/Projects/music-downloader/.idea/vcs.xml":{"language":"XML","code":6,"comment":0,"blank":0},"file:///home/lars/Projects/music-downloader/.idea/inspectionProfiles/profiles_settings.xml":{"language":"XML","code":6,"comment":0,"blank":0}}

View File

@ -0,0 +1,35 @@
# Summary
Date : 2022-11-08 16:41:25
Directory /home/lars/Projects/music-downloader
Total : 34 files, 1767 codes, 166 comments, 486 blanks, all 2419 lines
Summary / [Details](details.md) / [Diff Summary](diff.md) / [Diff Details](diff-details.md)
## Languages
| language | files | code | comment | blank | total |
| :--- | ---: | ---: | ---: | ---: | ---: |
| Python | 14 | 1,326 | 166 | 386 | 1,878 |
| Markdown | 9 | 283 | 0 | 88 | 371 |
| SQLite | 2 | 102 | 0 | 12 | 114 |
| XML | 6 | 46 | 0 | 0 | 46 |
| pip requirements | 1 | 8 | 0 | 0 | 8 |
| JSON | 2 | 2 | 0 | 0 | 2 |
## Directories
| path | files | code | comment | blank | total |
| :--- | ---: | ---: | ---: | ---: | ---: |
| . | 34 | 1,767 | 166 | 486 | 2,419 |
| .VSCodeCounter | 10 | 186 | 0 | 52 | 238 |
| .VSCodeCounter/2022-10-28_12-39-22 | 5 | 75 | 0 | 26 | 101 |
| .VSCodeCounter/2022-11-07_11-51-29 | 5 | 111 | 0 | 26 | 137 |
| .idea | 6 | 46 | 0 | 0 | 46 |
| .idea/inspectionProfiles | 1 | 6 | 0 | 0 | 6 |
| assets | 1 | 51 | 0 | 6 | 57 |
| src | 15 | 1,377 | 166 | 392 | 1,935 |
| src/metadata | 7 | 943 | 141 | 244 | 1,328 |
| src/scraping | 3 | 193 | 4 | 65 | 262 |
Summary / [Details](details.md) / [Diff Summary](diff.md) / [Diff Details](diff-details.md)

View File

@ -0,0 +1,72 @@
Date : 2022-11-08 16:41:25
Directory : /home/lars/Projects/music-downloader
Total : 34 files, 1767 codes, 166 comments, 486 blanks, all 2419 lines
Languages
+------------------+------------+------------+------------+------------+------------+
| language | files | code | comment | blank | total |
+------------------+------------+------------+------------+------------+------------+
| Python | 14 | 1,326 | 166 | 386 | 1,878 |
| Markdown | 9 | 283 | 0 | 88 | 371 |
| SQLite | 2 | 102 | 0 | 12 | 114 |
| XML | 6 | 46 | 0 | 0 | 46 |
| pip requirements | 1 | 8 | 0 | 0 | 8 |
| JSON | 2 | 2 | 0 | 0 | 2 |
+------------------+------------+------------+------------+------------+------------+
Directories
+-----------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+
| path | files | code | comment | blank | total |
+-----------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+
| . | 34 | 1,767 | 166 | 486 | 2,419 |
| .VSCodeCounter | 10 | 186 | 0 | 52 | 238 |
| .VSCodeCounter/2022-10-28_12-39-22 | 5 | 75 | 0 | 26 | 101 |
| .VSCodeCounter/2022-11-07_11-51-29 | 5 | 111 | 0 | 26 | 137 |
| .idea | 6 | 46 | 0 | 0 | 46 |
| .idea/inspectionProfiles | 1 | 6 | 0 | 0 | 6 |
| assets | 1 | 51 | 0 | 6 | 57 |
| src | 15 | 1,377 | 166 | 392 | 1,935 |
| src/metadata | 7 | 943 | 141 | 244 | 1,328 |
| src/scraping | 3 | 193 | 4 | 65 | 262 |
+-----------------------------------------------------------------------------------------+------------+------------+------------+------------+------------+
Files
+-----------------------------------------------------------------------------------------+------------------+------------+------------+------------+------------+
| filename | language | code | comment | blank | total |
+-----------------------------------------------------------------------------------------+------------------+------------+------------+------------+------------+
| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-10-28_12-39-22/details.md | Markdown | 31 | 0 | 6 | 37 |
| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-10-28_12-39-22/diff-details.md | Markdown | 9 | 0 | 6 | 15 |
| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-10-28_12-39-22/diff.md | Markdown | 12 | 0 | 7 | 19 |
| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-10-28_12-39-22/results.json | JSON | 1 | 0 | 0 | 1 |
| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-10-28_12-39-22/results.md | Markdown | 22 | 0 | 7 | 29 |
| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/details.md | Markdown | 37 | 0 | 6 | 43 |
| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff-details.md | Markdown | 25 | 0 | 6 | 31 |
| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/diff.md | Markdown | 22 | 0 | 7 | 29 |
| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.json | JSON | 1 | 0 | 0 | 1 |
| /home/lars/Projects/music-downloader/.VSCodeCounter/2022-11-07_11-51-29/results.md | Markdown | 26 | 0 | 7 | 33 |
| /home/lars/Projects/music-downloader/.idea/dataSources.xml | XML | 12 | 0 | 0 | 12 |
| /home/lars/Projects/music-downloader/.idea/inspectionProfiles/profiles_settings.xml | XML | 6 | 0 | 0 | 6 |
| /home/lars/Projects/music-downloader/.idea/misc.xml | XML | 4 | 0 | 0 | 4 |
| /home/lars/Projects/music-downloader/.idea/modules.xml | XML | 8 | 0 | 0 | 8 |
| /home/lars/Projects/music-downloader/.idea/music-downloader.iml | XML | 10 | 0 | 0 | 10 |
| /home/lars/Projects/music-downloader/.idea/vcs.xml | XML | 6 | 0 | 0 | 6 |
| /home/lars/Projects/music-downloader/README.md | Markdown | 99 | 0 | 36 | 135 |
| /home/lars/Projects/music-downloader/assets/database_structure.sql | SQLite | 51 | 0 | 6 | 57 |
| /home/lars/Projects/music-downloader/requirements.txt | pip requirements | 8 | 0 | 0 | 8 |
| /home/lars/Projects/music-downloader/src/download.py | Python | 57 | 11 | 19 | 87 |
| /home/lars/Projects/music-downloader/src/download_links.py | Python | 41 | 3 | 15 | 59 |
| /home/lars/Projects/music-downloader/src/main.py | Python | 98 | 0 | 30 | 128 |
| /home/lars/Projects/music-downloader/src/metadata/database.py | Python | 153 | 61 | 38 | 252 |
| /home/lars/Projects/music-downloader/src/metadata/database_structure.sql | SQLite | 51 | 0 | 6 | 57 |
| /home/lars/Projects/music-downloader/src/metadata/download.py | Python | 270 | 24 | 67 | 361 |
| /home/lars/Projects/music-downloader/src/metadata/metadata.py | Python | 106 | 9 | 28 | 143 |
| /home/lars/Projects/music-downloader/src/metadata/object_handeling.py | Python | 19 | 0 | 6 | 25 |
| /home/lars/Projects/music-downloader/src/metadata/options.py | Python | 87 | 8 | 24 | 119 |
| /home/lars/Projects/music-downloader/src/metadata/search.py | Python | 257 | 39 | 75 | 371 |
| /home/lars/Projects/music-downloader/src/scraping/musify.py | Python | 112 | 2 | 40 | 154 |
| /home/lars/Projects/music-downloader/src/scraping/phonetic_compares.py | Python | 15 | 0 | 8 | 23 |
| /home/lars/Projects/music-downloader/src/scraping/youtube_music.py | Python | 66 | 2 | 17 | 85 |
| /home/lars/Projects/music-downloader/src/test.py | Python | 18 | 1 | 6 | 25 |
| /home/lars/Projects/music-downloader/src/url_to_path.py | Python | 27 | 6 | 13 | 46 |
| Total | | 1,767 | 166 | 486 | 2,419 |
+-----------------------------------------------------------------------------------------+------------------+------------+------------+------------+------------+

View File

@ -70,10 +70,10 @@ class MetadataDownloader:
def __str__(self): def __str__(self):
newline = "\n" newline = "\n"
return f"id: {self.musicbrainz_artistid}\nname: {self.artist}\n{newline.join([str(release_group) for release_group in self.release_groups])}" return f"artist: \"{self.artist}\""
def save(self): def save(self):
self.logger.info(f"artist: {self}") self.logger.info(f"caching {self}")
self.database.add_artist( self.database.add_artist(
musicbrainz_artistid=self.musicbrainz_artistid, musicbrainz_artistid=self.musicbrainz_artistid,
artist=self.artist artist=self.artist
@ -107,6 +107,9 @@ class MetadataDownloader:
artist_datas = get_elem_from_obj(release_group_data, ['artist-credit'], return_if_none={}) artist_datas = get_elem_from_obj(release_group_data, ['artist-credit'], return_if_none={})
release_datas = get_elem_from_obj(release_group_data, ['release-list'], return_if_none={}) release_datas = get_elem_from_obj(release_group_data, ['release-list'], return_if_none={})
# only for printing the release
self.name = get_elem_from_obj(release_group_data, ['title'])
for artist_data in artist_datas: for artist_data in artist_datas:
artist_id = get_elem_from_obj(artist_data, ['artist', 'id']) artist_id = get_elem_from_obj(artist_data, ['artist', 'id'])
if artist_id is None: if artist_id is None:
@ -131,11 +134,10 @@ class MetadataDownloader:
self.append_all_releases(release_datas) self.append_all_releases(release_datas)
def __str__(self): def __str__(self):
newline = "\n" return f"release group: \"{self.name}\""
return f"{newline.join([str(release_group) for release_group in self.releases])}"
def save(self): def save(self):
self.logger.info(f"caching release_group {self}") self.logger.info(f"caching {self}")
self.database.add_release_group( self.database.add_release_group(
musicbrainz_releasegroupid=self.musicbrainz_releasegroupid, musicbrainz_releasegroupid=self.musicbrainz_releasegroupid,
artist_ids=[artist.musicbrainz_artistid for artist in self.artists], artist_ids=[artist.musicbrainz_artistid for artist in self.artists],
@ -223,10 +225,10 @@ class MetadataDownloader:
self.append_recordings(recording_datas) self.append_recordings(recording_datas)
def __str__(self): def __str__(self):
return f"{self.title} ©{self.copyright} {self.album_status}" return f"release: {self.title} ©{self.copyright} {self.album_status}"
def save(self): def save(self):
self.logger.info(f"caching release {self}") self.logger.info(f"caching {self}")
self.database.add_release( self.database.add_release(
musicbrainz_albumid=self.musicbrainz_albumid, musicbrainz_albumid=self.musicbrainz_albumid,
release_group_id=self.release_group.musicbrainz_releasegroupid, release_group_id=self.release_group.musicbrainz_releasegroupid,
@ -291,10 +293,10 @@ class MetadataDownloader:
self.save() self.save()
def __str__(self): def __str__(self):
return f"{self.title}: {self.isrc}" return f"track: \"{self.title}\" {self.isrc or ''}"
def save(self): def save(self):
self.logger.info(f"caching track {self}") self.logger.info(f"caching {self}")
self.database.add_track( self.database.add_track(
musicbrainz_releasetrackid=self.musicbrainz_releasetrackid, musicbrainz_releasetrackid=self.musicbrainz_releasetrackid,
@ -346,8 +348,10 @@ if __name__ == "__main__":
import database import database
database_ = database.Database(os.path.join(temp_dir, "metadata.db"), database_ = database.Database(os.path.join(temp_dir, "metadata.db"),
os.path.join(temp_dir, "database_structure.sql"), db_logger, os.path.join(temp_dir, "database_structure.sql"),
reset_anyways=True) "https://raw.githubusercontent.com/HeIIow2/music-downloader/new_metadata/assets/database_structure.sql",
db_logger,
reset_anyways=False)
download_logger = logging.getLogger("metadata downloader") download_logger = logging.getLogger("metadata downloader")
download_logger.setLevel(logging.INFO) download_logger.setLevel(logging.INFO)