From c92ae213cf2fe0f4663a00d787c1c8ff4456d355 Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Wed, 26 Oct 2022 08:14:05 +0200 Subject: [PATCH 1/2] added documentation for the fetching of metadata --- README.md | 58 ++++++++++++++++++ src/__pycache__/download.cpython-310.pyc | Bin 2318 -> 2297 bytes .../download_links.cpython-310.pyc | Bin 1841 -> 1820 bytes src/__pycache__/metadata.cpython-310.pyc | Bin 13942 -> 13921 bytes src/__pycache__/musify.cpython-310.pyc | Bin 1837 -> 1810 bytes src/__pycache__/url_to_path.cpython-310.pyc | Bin 2151 -> 2130 bytes src/__pycache__/youtube_music.cpython-310.pyc | Bin 1776 -> 1755 bytes src/main.py | 2 +- src/musify.py | 2 +- temp/.cache1.csv | 21 +++---- temp/.cache2.csv | 19 +++--- temp/.cache3.csv | 19 +++--- 12 files changed, 82 insertions(+), 39 deletions(-) diff --git a/README.md b/README.md index deef63d..1a23f8b 100644 --- a/README.md +++ b/README.md @@ -2,5 +2,63 @@ This programm will first get the metadata of various songs from metadata provider like musicbrainz, and then search for download links on pages like bandcamp. Then it will download the song and edit the metadata according. ## Metadata + +First the metadata has to be downloaded. The best api to do so is undeniably [Musicbrainz](musicbrainz.org/). This is a result of them being a website with a large Database spanning over all Genres. + +### Musicbrainz + ![Musicbrainz Data Scheme](https://wiki.musicbrainz.org/-/images/9/9e/pymb3-model-core.png) +To fetch from [Musicbrainz](musicbrainz.org/) we first have to know what to fetch. A good start is to get an input querry, which can be just put into the MB-Api. It then returns a list of possible artists, releases and recordings. + +Then we can output them in the Terminal and ask for further input. Following can be inputed afterwards: + +- `q` to quit +- `ok` to download +- `..` for previous options +- `.` for current options +- `an integer` for this element + +If the following chosen element is an artist, its discography + a couple tracks are outputed, if a release is chosen, the artists + tracklist + release is outputted, If a track is chosen its artists and releases are shown. + +**TO DO** + +- Schow always the whole tracklist of an release if it is chosen +- Show always the whole discography of an artist if it is chosen + +Up to now it doesn't if the discography or tracklist is chosen. + +### Metadata to fetch + +I orient on which metadata to download on the keys in `mutagen.EasyID3` . Following I fatch and thus tag the MP3 with: +- title +- artist +- albumartist +- tracknumber +- albumsort can sort albums cronological +- titlesort is just set to the tracknumber to sort by track order to sort correctly +- isrc +- musicbrainz_artistid +- musicbrainz_albumid +- musicbrainz_albumartistid +- musicbrainz_albumstatus +- language +- musicbrainz_albumtype +- releasecountry +- barcode + +#### albumsort/titlesort + +Those Tags are for the musicplayer to not sort for Example the albums of a band alphabetically, but in another way. I set it just to chronological order + +#### isrc + +This is the **international standart release code**. With this a track can be identified 100% percicely all of the time, if it is known and the website has a search api for that. Obviously this will get important later. + + + +## Download + +### Musify + +### Youtube diff --git a/src/__pycache__/download.cpython-310.pyc b/src/__pycache__/download.cpython-310.pyc index 03564b8d678fc233d483f3cb1ab158d095d3335e..d6ffd6c239abc8edd5e24520b25cb41ed1f320e9 100644 GIT binary patch delta 38 scmeAZ`YFhj&&$ij00c228@awP^P1>qj!LBV0p&^0K75^tN;K2 delta 59 zcmew<*eAr5&&$ij00hxO8@awPD|zbYrlw>j>gOaD73+uP=alBA>IW3%XQgJB6zeBt NrYjU|=4N@v0s#KK60ZON diff --git a/src/__pycache__/download_links.cpython-310.pyc b/src/__pycache__/download_links.cpython-310.pyc index 09813658ff713b05bd27e08c0fd38d1d663d3c88..63a93b3c32ad2c6247854d98fd1ad7e9374e2d6d 100644 GIT binary patch delta 39 tcmdnUH;0cqpO=@50SMkY25#hD&CF}1pOK%Ns-KfsRIDGc`37?&GXTun3t9jG delta 60 zcmbQkw~>!KpO=@50SNd%1#RSB&8+0FpPQPJnW&$WSX8VZmY-9ao2nmBl%JKFT~e%{ Ol$owju=y}^Br^aJ$rCgH diff --git a/src/__pycache__/metadata.cpython-310.pyc b/src/__pycache__/metadata.cpython-310.pyc index 1ea4948af6d2168374f3d2b07a49f48f959ca96a..55d3127955860dfb7b758257f3405807368b6200 100644 GIT binary patch delta 38 scmeyC^Du`ipO=@50SMk@ZR9%1$ZMjXk)NBYpOaWrtRJxXD`TSx0QUI}0RR91 delta 59 zcmaEu^DT!fpO=@50SNd%ZR9%1sN|`io0^iDsGpNqRIDGCpHrHfsvl64pOu?yA6tDmQ diff --git a/src/__pycache__/musify.cpython-310.pyc b/src/__pycache__/musify.cpython-310.pyc index 955cadfb60a46ce2512b84fd5e5f37b9e347bb03..30bb45901a8f407785969d5a0252f9a08f5d4032 100644 GIT binary patch delta 234 zcmZ3>H;IoopO=@50SF9aLXwp>^1fi?HPX+>&rQ|ONh~VX57;cuWY1L31X2M7EI^tA zh@FABco~o=VOYSJ!dSyNn<0g1F7rZ0Murlm1$3V;!^x#=wv0xTH?x_s83Kihj3&QlvjYIY C_%y`; delta 260 zcmbQlx0a7LpO=@50SNd%1tn{2oD3Roxmv540*&1Ohpn#;V9k&&TNU4Nj0c#CNHS1iU8b*c`wqS-5wiI@-7zaolP>vHwv(ILj%ht@;#8|>n z!!oUKA&CHAplb^7hWM{p_Qjl1ZF?k(pJfqQMJ~kH) g1E3o<8HFe1**p04pOujQ{`u diff --git a/src/__pycache__/url_to_path.cpython-310.pyc b/src/__pycache__/url_to_path.cpython-310.pyc index 4b4fa4168de3718b458f1a0905ed50559e71a16a..b608493a904b3d5793ec80723a0ac07b3413d134 100644 GIT binary patch delta 39 tcmaDZa7lnWpO=@50SM;X`fcQX%EW7~pOK%Ns-KfsRIDGcS%^856#&*b3gZ9( delta 60 zcmca4@LYg9pO=@50SLT~`)=fZ%B19@pPQPJnW&$WSX8VZmY-9ao2nmBl%JKFT~e%{ Ol$owju=y`jC@TOrloT8Q diff --git a/src/__pycache__/youtube_music.cpython-310.pyc b/src/__pycache__/youtube_music.cpython-310.pyc index 33f5d80c89aae3d64885abacfb32cf9c1c2e00e5..b706e4ebeb026a5e22ea1b26264f8c2929204327 100644 GIT binary patch delta 39 tcmeysdz+U#pO=@50SIKn12=NZF!5UIXXNLm>gOaD73&9V_GDVl0sy|q3Q7O~ delta 60 zcmcc3`+=7`pO=@50SNd%1#RS(VN&wb&rMCqOw`XwEGpIy%g-szP1O%5%Fjy8E-BVe O%1l=%*lfbIoCN?B_Y&R! diff --git a/src/main.py b/src/main.py index 47a1665..87264dc 100644 --- a/src/main.py +++ b/src/main.py @@ -71,4 +71,4 @@ def cli(start_at: int = 0): if __name__ == "__main__": - cli(start_at=3) + cli(start_at=0) diff --git a/src/musify.py b/src/musify.py index e2337c5..2619e93 100644 --- a/src/musify.py +++ b/src/musify.py @@ -34,7 +34,7 @@ def get_download_link(default_url): return f"https://musify.club/track/dl/{musify_id}/{musify_name}.mp3" -def download_from_musify(path, file, url): +def download_from_musify(file, url): logging.info(f"downloading: '{url}'") r = session.get(url) if r.status_code != 200: diff --git a/temp/.cache1.csv b/temp/.cache1.csv index 4094f93..652d651 100644 --- a/temp/.cache1.csv +++ b/temp/.cache1.csv @@ -1,14 +1,9 @@ ,id,album,title,artist,album_artist,tracknumber,albumsort,titlesort,isrc,date,year,musicbrainz_artistid,musicbrainz_albumid,musicbrainz_albumartistid,musicbrainz_albumstatus,total_tracks,language,musicbrainz_albumtype,compilation,releasecountry,barcode -0,adae3514-9f16-4164-849b-a64f9d49770a,Hurra die Welt geht unter,Wir,['K.I.Z'],K.I.Z,1,0,1,DEUM71500709,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,0602547326324 -1,9c566dc6-d7d6-42eb-9e4f-471824ea3d8f,Hurra die Welt geht unter,Geld,['K.I.Z'],K.I.Z,2,0,2,DEUM71500710,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,0602547326324 -2,23d60d4c-f2b3-401e-94e0-0a3e6353d4bf,Hurra die Welt geht unter,Glücklich und satt,['K.I.Z'],K.I.Z,3,0,3,DEUM71500711,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,0602547326324 -3,7177e7dc-813a-4e1e-8d36-1d4e38eeb796,Hurra die Welt geht unter,Boom Boom Boom,['K.I.Z'],K.I.Z,4,0,4,DEUM71500712,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,0602547326324 -4,00192a27-f412-4eb0-a111-5cc1faa9b2d7,Hurra die Welt geht unter,AMG Mercedes,['K.I.Z'],K.I.Z,5,0,5,DEUM71500713,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,0602547326324 -5,960e130a-53e7-4b0e-b720-c23347d2d728,Hurra die Welt geht unter,Freier Fall,['K.I.Z'],K.I.Z,6,0,6,DEUM71500714,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,0602547326324 -6,24fbd3e5-28f5-42d3-9aff-b5356ad08470,Hurra die Welt geht unter,Ariane,['K.I.Z'],K.I.Z,7,0,7,DEUM71500715,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,0602547326324 -7,bd087625-4cc8-4b34-8837-31d0690b7aca,Hurra die Welt geht unter,Käfigbett,['K.I.Z'],K.I.Z,8,0,8,DEUM71500716,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,0602547326324 -8,032a80d1-f211-4dd4-ac68-f125a09a4be8,Hurra die Welt geht unter,Verrückt nach dir,['K.I.Z'],K.I.Z,9,0,9,DEUM71500717,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,0602547326324 -9,a9d08fbc-d275-4427-a1d9-adc1c79e083a,Hurra die Welt geht unter,Ehrenlos,['K.I.Z'],K.I.Z,10,0,10,DEUM71500718,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,0602547326324 -10,80f2b1b0-9a95-4fd0-a886-546e9dd8ceff,Hurra die Welt geht unter,Superstars,"['K.I.Z', 'Sefo']",K.I.Z,11,0,11,DEUM71500719,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,0602547326324 -11,4db0ff20-321f-49f3-b20b-a17fc6f3709b,Hurra die Welt geht unter,Was würde Manny Marc tun?,"['K.I.Z', 'Audio88', 'Yassin', 'Manny Marc']",K.I.Z,12,0,12,DEUM71500720,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,0602547326324 -12,05404ed1-4f8b-43ba-833f-54e6c2918ff6,Hurra die Welt geht unter,Hurra die Welt geht unter,"['K.I.Z', 'Henning May']",K.I.Z,13,0,13,DEUM71500721,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,f538d982-71fd-4d19-8ef5-8664b4cbe0ac,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,0602547326362 +0,03634ecf-5ef1-4ec4-8c9a-89be5df6462d,Mate. Feed. Kill. Repeat.,Slipknot,['Slipknot'],Slipknot,1,2,1,,1996-10-31,1996,a466c2a2-6517-42fb-a160-1087c3bafd9f,ce4722b7-7d58-4f7d-b76d-cb4b37fb661b,a466c2a2-6517-42fb-a160-1087c3bafd9f,Official,8,eng,Album,,US,742617000027 +1,c4d73bed-2164-4869-a274-db111f12f09f,Mate. Feed. Kill. Repeat.,Gently,['Slipknot'],Slipknot,2,2,2,,1996-10-31,1996,a466c2a2-6517-42fb-a160-1087c3bafd9f,ce4722b7-7d58-4f7d-b76d-cb4b37fb661b,a466c2a2-6517-42fb-a160-1087c3bafd9f,Official,8,eng,Album,,US,742617000027 +2,1be117c9-9cad-4141-82c1-e0c07a5a0d09,Mate. Feed. Kill. Repeat.,Do Nothing / Bitchslap,['Slipknot'],Slipknot,3,2,3,,1996-10-31,1996,a466c2a2-6517-42fb-a160-1087c3bafd9f,ce4722b7-7d58-4f7d-b76d-cb4b37fb661b,a466c2a2-6517-42fb-a160-1087c3bafd9f,Official,8,eng,Album,,US,742617000027 +3,e5eb92c4-89c1-46ba-819d-717f20753b17,Mate. Feed. Kill. Repeat.,Only One,['Slipknot'],Slipknot,4,2,4,,1996-10-31,1996,a466c2a2-6517-42fb-a160-1087c3bafd9f,ce4722b7-7d58-4f7d-b76d-cb4b37fb661b,a466c2a2-6517-42fb-a160-1087c3bafd9f,Official,8,eng,Album,,US,742617000027 +4,2a0ece26-1d36-4fd1-84be-8dc018a599d1,Mate. Feed. Kill. Repeat.,Tattered & Torn,['Slipknot'],Slipknot,5,2,5,,1996-10-31,1996,a466c2a2-6517-42fb-a160-1087c3bafd9f,ce4722b7-7d58-4f7d-b76d-cb4b37fb661b,a466c2a2-6517-42fb-a160-1087c3bafd9f,Official,8,eng,Album,,US,742617000027 +5,baf6624a-fc9c-4485-8beb-4aed5d8a0ea6,Mate. Feed. Kill. Repeat.,Confessions,['Slipknot'],Slipknot,6,2,6,,1996-10-31,1996,a466c2a2-6517-42fb-a160-1087c3bafd9f,ce4722b7-7d58-4f7d-b76d-cb4b37fb661b,a466c2a2-6517-42fb-a160-1087c3bafd9f,Official,8,eng,Album,,US,742617000027 +6,42119c6c-74a6-4b73-a887-1b9e023db9a5,Mate. Feed. Kill. Repeat.,Some Feel,['Slipknot'],Slipknot,7,2,7,,1996-10-31,1996,a466c2a2-6517-42fb-a160-1087c3bafd9f,ce4722b7-7d58-4f7d-b76d-cb4b37fb661b,a466c2a2-6517-42fb-a160-1087c3bafd9f,Official,8,eng,Album,,US,742617000027 +7,a4c44e11-ff51-49f5-b100-658f4e263a59,Mate. Feed. Kill. Repeat.,Killers Are Quiet / Dogfish Rising,['Slipknot'],Slipknot,8,2,8,,1996-10-31,1996,a466c2a2-6517-42fb-a160-1087c3bafd9f,ce4722b7-7d58-4f7d-b76d-cb4b37fb661b,a466c2a2-6517-42fb-a160-1087c3bafd9f,Official,8,eng,Album,,US,742617000027 diff --git a/temp/.cache2.csv b/temp/.cache2.csv index 8450c3c..468cecb 100644 --- a/temp/.cache2.csv +++ b/temp/.cache2.csv @@ -1,13 +1,8 @@ ,id,album,title,artist,album_artist,tracknumber,albumsort,titlesort,isrc,date,year,musicbrainz_artistid,musicbrainz_albumid,musicbrainz_albumartistid,musicbrainz_albumstatus,total_tracks,language,musicbrainz_albumtype,compilation,releasecountry,barcode,url,src -0,adae3514-9f16-4164-849b-a64f9d49770a,Hurra die Welt geht unter,Wir,['K.I.Z'],K.I.Z,1,0,1,DEUM71500709,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,602547326324,https://www.youtube.com/watch?v=WizfUqQZyns,youtube -1,9c566dc6-d7d6-42eb-9e4f-471824ea3d8f,Hurra die Welt geht unter,Geld,['K.I.Z'],K.I.Z,2,0,2,DEUM71500710,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,602547326324,https://www.youtube.com/watch?v=PZd1zNX0tjs,youtube -2,23d60d4c-f2b3-401e-94e0-0a3e6353d4bf,Hurra die Welt geht unter,Glücklich und satt,['K.I.Z'],K.I.Z,3,0,3,DEUM71500711,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,602547326324,https://www.youtube.com/watch?v=s-FU9TVq9Wk,youtube -3,7177e7dc-813a-4e1e-8d36-1d4e38eeb796,Hurra die Welt geht unter,Boom Boom Boom,['K.I.Z'],K.I.Z,4,0,4,DEUM71500712,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,602547326324,https://www.youtube.com/watch?v=NDbKzEJtqRs,youtube -4,00192a27-f412-4eb0-a111-5cc1faa9b2d7,Hurra die Welt geht unter,AMG Mercedes,['K.I.Z'],K.I.Z,5,0,5,DEUM71500713,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,602547326324,https://www.youtube.com/watch?v=GsBtsh6fdKQ,youtube -5,960e130a-53e7-4b0e-b720-c23347d2d728,Hurra die Welt geht unter,Freier Fall,['K.I.Z'],K.I.Z,6,0,6,DEUM71500714,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,602547326324,https://www.youtube.com/watch?v=rWX-O3uu_GU,youtube -6,24fbd3e5-28f5-42d3-9aff-b5356ad08470,Hurra die Welt geht unter,Ariane,['K.I.Z'],K.I.Z,7,0,7,DEUM71500715,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,602547326324,https://www.youtube.com/watch?v=x3rQam9YyQo,youtube -7,bd087625-4cc8-4b34-8837-31d0690b7aca,Hurra die Welt geht unter,Käfigbett,['K.I.Z'],K.I.Z,8,0,8,DEUM71500716,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,602547326324,https://www.youtube.com/watch?v=ERCLP3d5GMU,youtube -8,032a80d1-f211-4dd4-ac68-f125a09a4be8,Hurra die Welt geht unter,Verrückt nach dir,['K.I.Z'],K.I.Z,9,0,9,DEUM71500717,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,602547326324,https://www.youtube.com/watch?v=adtEjaZP1NI,youtube -9,a9d08fbc-d275-4427-a1d9-adc1c79e083a,Hurra die Welt geht unter,Ehrenlos,['K.I.Z'],K.I.Z,10,0,10,DEUM71500718,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,602547326324,https://www.youtube.com/watch?v=2ZJ9dJJRcic,youtube -10,80f2b1b0-9a95-4fd0-a886-546e9dd8ceff,Hurra die Welt geht unter,Superstars,"['K.I.Z', 'Sefo']",K.I.Z,11,0,11,DEUM71500719,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,602547326324,https://www.youtube.com/watch?v=_lyVnfIfeqk,youtube -11,4db0ff20-321f-49f3-b20b-a17fc6f3709b,Hurra die Welt geht unter,Was würde Manny Marc tun?,"['K.I.Z', 'Audio88', 'Yassin', 'Manny Marc']",K.I.Z,12,0,12,DEUM71500720,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,602547326324,https://www.youtube.com/watch?v=3YyjUFBLMNE,youtube +0,03634ecf-5ef1-4ec4-8c9a-89be5df6462d,Mate. Feed. Kill. Repeat.,Slipknot,['Slipknot'],Slipknot,1,2,1,,1996-10-31,1996,a466c2a2-6517-42fb-a160-1087c3bafd9f,ce4722b7-7d58-4f7d-b76d-cb4b37fb661b,a466c2a2-6517-42fb-a160-1087c3bafd9f,Official,8,eng,Album,,US,742617000027,https://musify.club/track/dl/48121/slipknot-slipknot.mp3,musify +1,c4d73bed-2164-4869-a274-db111f12f09f,Mate. Feed. Kill. Repeat.,Gently,['Slipknot'],Slipknot,2,2,2,,1996-10-31,1996,a466c2a2-6517-42fb-a160-1087c3bafd9f,ce4722b7-7d58-4f7d-b76d-cb4b37fb661b,a466c2a2-6517-42fb-a160-1087c3bafd9f,Official,8,eng,Album,,US,742617000027,https://musify.club/track/dl/11541988/slipknot-gently.mp3,musify +2,1be117c9-9cad-4141-82c1-e0c07a5a0d09,Mate. Feed. Kill. Repeat.,Do Nothing / Bitchslap,['Slipknot'],Slipknot,3,2,3,,1996-10-31,1996,a466c2a2-6517-42fb-a160-1087c3bafd9f,ce4722b7-7d58-4f7d-b76d-cb4b37fb661b,a466c2a2-6517-42fb-a160-1087c3bafd9f,Official,8,eng,Album,,US,742617000027,https://musify.club/track/dl/48127/slipknot-do-nothing-bitchslap.mp3,musify +3,e5eb92c4-89c1-46ba-819d-717f20753b17,Mate. Feed. Kill. Repeat.,Only One,['Slipknot'],Slipknot,4,2,4,,1996-10-31,1996,a466c2a2-6517-42fb-a160-1087c3bafd9f,ce4722b7-7d58-4f7d-b76d-cb4b37fb661b,a466c2a2-6517-42fb-a160-1087c3bafd9f,Official,8,eng,Album,,US,742617000027,https://musify.club/track/dl/10278/slipknot-only-one.mp3,musify +4,2a0ece26-1d36-4fd1-84be-8dc018a599d1,Mate. Feed. Kill. Repeat.,Tattered & Torn,['Slipknot'],Slipknot,5,2,5,,1996-10-31,1996,a466c2a2-6517-42fb-a160-1087c3bafd9f,ce4722b7-7d58-4f7d-b76d-cb4b37fb661b,a466c2a2-6517-42fb-a160-1087c3bafd9f,Official,8,eng,Album,,US,742617000027,https://musify.club/track/dl/10267/slipknot-tattered-and-torn.mp3,musify +5,baf6624a-fc9c-4485-8beb-4aed5d8a0ea6,Mate. Feed. Kill. Repeat.,Confessions,['Slipknot'],Slipknot,6,2,6,,1996-10-31,1996,a466c2a2-6517-42fb-a160-1087c3bafd9f,ce4722b7-7d58-4f7d-b76d-cb4b37fb661b,a466c2a2-6517-42fb-a160-1087c3bafd9f,Official,8,eng,Album,,US,742617000027,https://musify.club/track/dl/48126/slipknot-confessions.mp3,musify +6,42119c6c-74a6-4b73-a887-1b9e023db9a5,Mate. Feed. Kill. Repeat.,Some Feel,['Slipknot'],Slipknot,7,2,7,,1996-10-31,1996,a466c2a2-6517-42fb-a160-1087c3bafd9f,ce4722b7-7d58-4f7d-b76d-cb4b37fb661b,a466c2a2-6517-42fb-a160-1087c3bafd9f,Official,8,eng,Album,,US,742617000027,https://musify.club/track/dl/48124/slipknot-some-feel.mp3,musify diff --git a/temp/.cache3.csv b/temp/.cache3.csv index 09f69e6..24f675f 100644 --- a/temp/.cache3.csv +++ b/temp/.cache3.csv @@ -1,13 +1,8 @@ ,id,album,title,artist,album_artist,tracknumber,albumsort,titlesort,isrc,date,year,musicbrainz_artistid,musicbrainz_albumid,musicbrainz_albumartistid,musicbrainz_albumstatus,total_tracks,language,musicbrainz_albumtype,compilation,releasecountry,barcode,url,src,path,file,genre -0,adae3514-9f16-4164-849b-a64f9d49770a,Hurra die Welt geht unter,Wir,['K.I.Z'],K.I.Z,1,0,1,DEUM71500709,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,602547326324,https://www.youtube.com/watch?v=WizfUqQZyns,youtube,dsbm/K.I.Z/Hurra die Welt geht unter,dsbm/K.I.Z/Hurra die Welt geht unter/Wir.mp3,dsbm -1,9c566dc6-d7d6-42eb-9e4f-471824ea3d8f,Hurra die Welt geht unter,Geld,['K.I.Z'],K.I.Z,2,0,2,DEUM71500710,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,602547326324,https://www.youtube.com/watch?v=PZd1zNX0tjs,youtube,dsbm/K.I.Z/Hurra die Welt geht unter,dsbm/K.I.Z/Hurra die Welt geht unter/Geld.mp3,dsbm -2,23d60d4c-f2b3-401e-94e0-0a3e6353d4bf,Hurra die Welt geht unter,Glücklich und satt,['K.I.Z'],K.I.Z,3,0,3,DEUM71500711,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,602547326324,https://www.youtube.com/watch?v=s-FU9TVq9Wk,youtube,dsbm/K.I.Z/Hurra die Welt geht unter,dsbm/K.I.Z/Hurra die Welt geht unter/Glücklich und satt.mp3,dsbm -3,7177e7dc-813a-4e1e-8d36-1d4e38eeb796,Hurra die Welt geht unter,Boom Boom Boom,['K.I.Z'],K.I.Z,4,0,4,DEUM71500712,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,602547326324,https://www.youtube.com/watch?v=NDbKzEJtqRs,youtube,dsbm/K.I.Z/Hurra die Welt geht unter,dsbm/K.I.Z/Hurra die Welt geht unter/Boom Boom Boom.mp3,dsbm -4,00192a27-f412-4eb0-a111-5cc1faa9b2d7,Hurra die Welt geht unter,AMG Mercedes,['K.I.Z'],K.I.Z,5,0,5,DEUM71500713,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,602547326324,https://www.youtube.com/watch?v=GsBtsh6fdKQ,youtube,dsbm/K.I.Z/Hurra die Welt geht unter,dsbm/K.I.Z/Hurra die Welt geht unter/AMG Mercedes.mp3,dsbm -5,960e130a-53e7-4b0e-b720-c23347d2d728,Hurra die Welt geht unter,Freier Fall,['K.I.Z'],K.I.Z,6,0,6,DEUM71500714,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,602547326324,https://www.youtube.com/watch?v=rWX-O3uu_GU,youtube,dsbm/K.I.Z/Hurra die Welt geht unter,dsbm/K.I.Z/Hurra die Welt geht unter/Freier Fall.mp3,dsbm -6,24fbd3e5-28f5-42d3-9aff-b5356ad08470,Hurra die Welt geht unter,Ariane,['K.I.Z'],K.I.Z,7,0,7,DEUM71500715,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,602547326324,https://www.youtube.com/watch?v=x3rQam9YyQo,youtube,dsbm/K.I.Z/Hurra die Welt geht unter,dsbm/K.I.Z/Hurra die Welt geht unter/Ariane.mp3,dsbm -7,bd087625-4cc8-4b34-8837-31d0690b7aca,Hurra die Welt geht unter,Käfigbett,['K.I.Z'],K.I.Z,8,0,8,DEUM71500716,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,602547326324,https://www.youtube.com/watch?v=ERCLP3d5GMU,youtube,dsbm/K.I.Z/Hurra die Welt geht unter,dsbm/K.I.Z/Hurra die Welt geht unter/Käfigbett.mp3,dsbm -8,032a80d1-f211-4dd4-ac68-f125a09a4be8,Hurra die Welt geht unter,Verrückt nach dir,['K.I.Z'],K.I.Z,9,0,9,DEUM71500717,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,602547326324,https://www.youtube.com/watch?v=adtEjaZP1NI,youtube,dsbm/K.I.Z/Hurra die Welt geht unter,dsbm/K.I.Z/Hurra die Welt geht unter/Verrückt nach dir.mp3,dsbm -9,a9d08fbc-d275-4427-a1d9-adc1c79e083a,Hurra die Welt geht unter,Ehrenlos,['K.I.Z'],K.I.Z,10,0,10,DEUM71500718,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,602547326324,https://www.youtube.com/watch?v=2ZJ9dJJRcic,youtube,dsbm/K.I.Z/Hurra die Welt geht unter,dsbm/K.I.Z/Hurra die Welt geht unter/Ehrenlos.mp3,dsbm -10,80f2b1b0-9a95-4fd0-a886-546e9dd8ceff,Hurra die Welt geht unter,Superstars,"['K.I.Z', 'Sefo']",K.I.Z,11,0,11,DEUM71500719,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,602547326324,https://www.youtube.com/watch?v=_lyVnfIfeqk,youtube,dsbm/K.I.Z/Hurra die Welt geht unter,dsbm/K.I.Z/Hurra die Welt geht unter/Superstars.mp3,dsbm -11,4db0ff20-321f-49f3-b20b-a17fc6f3709b,Hurra die Welt geht unter,Was würde Manny Marc tun?,"['K.I.Z', 'Audio88', 'Yassin', 'Manny Marc']",K.I.Z,12,0,12,DEUM71500720,2015-07-10,2015,13c9c494-09aa-4518-8572-9f41dbdff461,27d0fac9-c7d2-48ef-8739-6b839ed7c461,13c9c494-09aa-4518-8572-9f41dbdff461,Official,13,deu,Album,,DE,602547326324,https://www.youtube.com/watch?v=3YyjUFBLMNE,youtube,dsbm/K.I.Z/Hurra die Welt geht unter,dsbm/K.I.Z/Hurra die Welt geht unter/Was würde Manny Marc tun?.mp3,dsbm +0,03634ecf-5ef1-4ec4-8c9a-89be5df6462d,Mate. Feed. Kill. Repeat.,Slipknot,['Slipknot'],Slipknot,1,2,1,,1996-10-31,1996,a466c2a2-6517-42fb-a160-1087c3bafd9f,ce4722b7-7d58-4f7d-b76d-cb4b37fb661b,a466c2a2-6517-42fb-a160-1087c3bafd9f,Official,8,eng,Album,,US,742617000027,https://musify.club/track/dl/48121/slipknot-slipknot.mp3,musify,nu metal/Slipknot/Mate. Feed. Kill. Repeat.,nu metal/Slipknot/Mate. Feed. Kill. Repeat./Slipknot.mp3,nu metal +1,c4d73bed-2164-4869-a274-db111f12f09f,Mate. Feed. Kill. Repeat.,Gently,['Slipknot'],Slipknot,2,2,2,,1996-10-31,1996,a466c2a2-6517-42fb-a160-1087c3bafd9f,ce4722b7-7d58-4f7d-b76d-cb4b37fb661b,a466c2a2-6517-42fb-a160-1087c3bafd9f,Official,8,eng,Album,,US,742617000027,https://musify.club/track/dl/11541988/slipknot-gently.mp3,musify,nu metal/Slipknot/Mate. Feed. Kill. Repeat.,nu metal/Slipknot/Mate. Feed. Kill. Repeat./Gently.mp3,nu metal +2,1be117c9-9cad-4141-82c1-e0c07a5a0d09,Mate. Feed. Kill. Repeat.,Do Nothing / Bitchslap,['Slipknot'],Slipknot,3,2,3,,1996-10-31,1996,a466c2a2-6517-42fb-a160-1087c3bafd9f,ce4722b7-7d58-4f7d-b76d-cb4b37fb661b,a466c2a2-6517-42fb-a160-1087c3bafd9f,Official,8,eng,Album,,US,742617000027,https://musify.club/track/dl/48127/slipknot-do-nothing-bitchslap.mp3,musify,nu metal/Slipknot/Mate. Feed. Kill. Repeat.,nu metal/Slipknot/Mate. Feed. Kill. Repeat./Do Nothing Bitchslap.mp3,nu metal +3,e5eb92c4-89c1-46ba-819d-717f20753b17,Mate. Feed. Kill. Repeat.,Only One,['Slipknot'],Slipknot,4,2,4,,1996-10-31,1996,a466c2a2-6517-42fb-a160-1087c3bafd9f,ce4722b7-7d58-4f7d-b76d-cb4b37fb661b,a466c2a2-6517-42fb-a160-1087c3bafd9f,Official,8,eng,Album,,US,742617000027,https://musify.club/track/dl/10278/slipknot-only-one.mp3,musify,nu metal/Slipknot/Mate. Feed. Kill. Repeat.,nu metal/Slipknot/Mate. Feed. Kill. Repeat./Only One.mp3,nu metal +4,2a0ece26-1d36-4fd1-84be-8dc018a599d1,Mate. Feed. Kill. Repeat.,Tattered & Torn,['Slipknot'],Slipknot,5,2,5,,1996-10-31,1996,a466c2a2-6517-42fb-a160-1087c3bafd9f,ce4722b7-7d58-4f7d-b76d-cb4b37fb661b,a466c2a2-6517-42fb-a160-1087c3bafd9f,Official,8,eng,Album,,US,742617000027,https://musify.club/track/dl/10267/slipknot-tattered-and-torn.mp3,musify,nu metal/Slipknot/Mate. Feed. Kill. Repeat.,nu metal/Slipknot/Mate. Feed. Kill. Repeat./Tattered & Torn.mp3,nu metal +5,baf6624a-fc9c-4485-8beb-4aed5d8a0ea6,Mate. Feed. Kill. Repeat.,Confessions,['Slipknot'],Slipknot,6,2,6,,1996-10-31,1996,a466c2a2-6517-42fb-a160-1087c3bafd9f,ce4722b7-7d58-4f7d-b76d-cb4b37fb661b,a466c2a2-6517-42fb-a160-1087c3bafd9f,Official,8,eng,Album,,US,742617000027,https://musify.club/track/dl/48126/slipknot-confessions.mp3,musify,nu metal/Slipknot/Mate. Feed. Kill. Repeat.,nu metal/Slipknot/Mate. Feed. Kill. Repeat./Confessions.mp3,nu metal +6,42119c6c-74a6-4b73-a887-1b9e023db9a5,Mate. Feed. Kill. Repeat.,Some Feel,['Slipknot'],Slipknot,7,2,7,,1996-10-31,1996,a466c2a2-6517-42fb-a160-1087c3bafd9f,ce4722b7-7d58-4f7d-b76d-cb4b37fb661b,a466c2a2-6517-42fb-a160-1087c3bafd9f,Official,8,eng,Album,,US,742617000027,https://musify.club/track/dl/48124/slipknot-some-feel.mp3,musify,nu metal/Slipknot/Mate. Feed. Kill. Repeat.,nu metal/Slipknot/Mate. Feed. Kill. Repeat./Some Feel.mp3,nu metal From 4a042e40f0885df829486db7dcedfc0b1749cea8 Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Wed, 26 Oct 2022 08:42:50 +0200 Subject: [PATCH 2/2] added documentation for the musify autocomplete api --- README.md | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1a23f8b..63d5698 100644 --- a/README.md +++ b/README.md @@ -56,9 +56,36 @@ Those Tags are for the musicplayer to not sort for Example the albums of a band This is the **international standart release code**. With this a track can be identified 100% percicely all of the time, if it is known and the website has a search api for that. Obviously this will get important later. - ## Download +Now that the metadata is downloaded and cached, download sources need to be sound, because one can't listen to metadata. Granted it would be amazing if that would be possible. + ### Musify +The quickest source to get download links from is to my knowledge [musify](https://musify.club/). Its a russian music downloading page, where many many songs are available to stream and to download. Due to me not wanting to stress the server to much, I abuse a handy feature nearly every page where you can search suff has. The autocomplete api for the search input. Those always are quite limited in the number of results it returns, but it is optimized to be quick. Thus with the http header `Connection` set to `keep-alive` the bottelneck defently is not at the speed of those requests. + +For musify the endpoint is following: [https://musify.club/search/suggestions?term={title}](https://musify.club/search/suggestions?term=LornaShore) If the http headers are set correctly, then searching for example for "Lorna Shore" yields following result: + +```json +[ + { + "id":"Lorna Shore", + "label":"Lorna Shore", + "value":"Lorna Shore", + "category":"Исполнители", + "image":"https://39s.musify.club/img/68/9561484/25159224.jpg", + "url":"/artist/lorna-shore-59611" + }, + {"id":"Immortal","label":"Lorna Shore - Immortal (2020)","value":"Immortal","category":"Релизы","image":"https://39s-a.musify.club/img/70/20335517/52174338.jpg","url":"/release/lorna-shore-immortal-2020-1241300"}, + {"id":"Immortal","label":"Lorna Shore - Immortal","value":"Immortal","category":"Треки","image":"","url":"/track/lorna-shore-immortal-12475071"} +] +``` + +This is a shortened example for the response the api gives. The results are very Limited, but it is also very efficient to parse. The steps I take are: + +- call the api with the querry being the track name +- parse the json response to an object +- look at how different the title and artist are on every element from the category `Треки`, translated roughly to track or release. +- If they match get the download links and cache them. + ### Youtube