Commit Graph

8 Commits

Author SHA1 Message Date
ead3fef5b3
Add goToAudioLibraryAndSelect100RowsPerPage function to keep rows per page setting even after round-tripping chrome://downloads 2023-02-20 14:19:16 +01:00
9d12e9cbe3
Add media export support for duplicates 2023-02-04 19:45:30 +01:00
5540098e96
Make the media download work up to 100 results or duplicates
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)
```
2023-02-04 19:12:54 +01:00
4f7e9ac336
Move from Firefox to Chromium to be able to retrieve download URL
Thanks to `chrome://downloads`.
2023-02-04 19:08:02 +01:00
73a8d77a32
Precise different possibilities in media_files_extractor.py to manage duplicates 2023-02-04 16:14:49 +01:00
a327e8fdb2
Remove previous code from media_files_extractor.py 2023-02-04 14:23:18 +01:00
176b057edb
Move the comment concerning not using deprecated Selenium feature to #1 2023-02-04 14:21:54 +01:00
c73b0e0f5d
Add media_files_extractor.py 2023-02-04 14:18:26 +01:00