Refactored metadata extraction -> created an EpisodeData dataclass to represent metadata clearly. Modularized download process: Broke down huge main function into several parts. Added error handling for yt_dlp. Added docstrings to functions for ease of understanding.
26 lines
772 B
Python
26 lines
772 B
Python
settings = {
|
|
"Pete Tong":{
|
|
"artist": "Pete Tong",
|
|
"base_url":"https://www.bbc.co.uk/programmes/b006ww0v",
|
|
"cut_intro":True,
|
|
"modify_timestamp":7200,
|
|
"calculate_amount_of_fridays":True
|
|
},
|
|
"Radio 1s Classic Essential Mix":{
|
|
"artist":"Radio 1s Classic Essential Mix",
|
|
"use_different_release_date":True,
|
|
"base_url":"https://www.bbc.co.uk/programmes/b00f3pc4",
|
|
"cut_intro":True,
|
|
"remove_amount_of_characters_from_title":-5
|
|
},
|
|
"Defected on Radio 1 Dance":{
|
|
"artist": "Defected on Radio 1 Dance",
|
|
"base_url":"https://www.bbc.co.uk/programmes/m00287n1",
|
|
"remove_amount_of_characters_from_title":-10
|
|
},
|
|
"Radio 1s Essential Mix":{
|
|
"artist":"Radio 1s Essential Mix",
|
|
"base_url":"https://www.bbc.co.uk/programmes/b006wkfp",
|
|
"cut_intro":True
|
|
}
|
|
} |