Benjamin Loison
5540098e96
The `MAXIMAL_NUMBER_OF_RESULTS` constant was computed thanks to: ```py import os, json path = '/home/benjamin/Desktop/bens_folder/dev/yt/audio_library' os.chdir(path) with open('sound_effects.json') as json_file: tracks = json.load(json_file) mostResults = 0 mostResultsTitle = None for track in tracks: title = track['title'] results = 0 for otherTrack in tracks: if title in otherTrack['title']: results += 1 if results > mostResults: mostResults = results mostResultsTitle = title print(mostResults, mostResultsTitle) ``` |
||
---|---|---|
media_files_extractor.py | ||
metadata_extracter.py | ||
music.json | ||
README.md | ||
sound_effects.json |