src/run.py
Set artwork from YouTube thumbnail.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
videoid |
str
|
YouTube Video ID |
required |
mp3_file_path |
str
|
MP3 file Path |
required |
Source code in src/run.py
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
|
Set Metadata from metadata dict.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
metadata |
dict
|
metadata dict in data.py |
required |
mp3_file_path |
str
|
MP3 file Path |
required |
Source code in src/run.py
54 55 56 57 58 59 60 61 62 63 64 65 |
|
Downloads YouTube videos as MP3 files, validates data.py, and sets metadata.
Raises:
Type | Description |
---|---|
RuntimeError
|
Raised if Validation fails. |
RuntimeError
|
Raised if Thumbnail Image URL returns a 404 status. |
RuntimeError
|
Raised if Downloading fails with non-zero return code. |
Source code in src/run.py
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
|