mirror of
https://github.com/cooperhammond/irs.git
synced 2025-01-02 19:15:26 +00:00
Over looked crucial detail while making program.
This commit is contained in:
parent
d4a2ea3382
commit
a28525f144
|
@ -1,3 +1,5 @@
|
|||
from os.path import expanduser
|
||||
|
||||
CONFIG = dict(
|
||||
|
||||
# To autostart rhythmbox with a new song:
|
||||
|
@ -12,7 +14,7 @@ CONFIG = dict(
|
|||
client_secret = '',
|
||||
|
||||
# For a custom directory. Note that `~` will not work as a shortcut.
|
||||
directory = '',
|
||||
directory = str(expanduser("~")) + "/Music",
|
||||
|
||||
# If you want numbered file names
|
||||
numbered_file_names = True,
|
||||
|
|
|
@ -242,7 +242,8 @@ class Manager:
|
|||
|
||||
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"
|
||||
urlopen("http://www.youtube.com/watch?v=" + audio_code), 'html.parser'))\
|
||||
.title.string.lower()).strip("youtube") + ".mp3"
|
||||
|
||||
ydl_opts = {
|
||||
'format': 'bestaudio/best',
|
||||
|
|
Loading…
Reference in a new issue