mirror of
https://github.com/cooperhammond/irs.git
synced 2024-12-22 17:35:28 +00:00
True file names are a thing.
This commit is contained in:
parent
c9972e5762
commit
d4a2ea3382
|
@ -16,4 +16,7 @@ CONFIG = dict(
|
|||
|
||||
# If you want numbered file names
|
||||
numbered_file_names = True,
|
||||
|
||||
# Downloaded file names
|
||||
download_file_names = True,
|
||||
)
|
||||
|
|
|
@ -240,6 +240,10 @@ class Manager:
|
|||
|
||||
filename = track + strip_special_chars(song) + ".mp3"
|
||||
|
||||
if CONFIG["download_file_names"]:
|
||||
filename = track + strip_special_chars((BeautifulSoup(\
|
||||
urlopen("http://www.youtube.com/watch?v=" + audio_code), 'html.parser')).title.string.lower()) + ".mp3"
|
||||
|
||||
ydl_opts = {
|
||||
'format': 'bestaudio/best',
|
||||
#'quiet': True,
|
||||
|
|
Loading…
Reference in a new issue