Over looked crucial detail while making program.

This commit is contained in:
Kepoor Hampond 2017-01-26 20:16:30 -08:00
parent d4a2ea3382
commit a28525f144
3 changed files with 6 additions and 3 deletions

View file

@ -1,3 +1,5 @@
from os.path import expanduser
CONFIG = dict( CONFIG = dict(
# To autostart rhythmbox with a new song: # To autostart rhythmbox with a new song:
@ -12,7 +14,7 @@ CONFIG = dict(
client_secret = '', client_secret = '',
# For a custom directory. Note that `~` will not work as a shortcut. # For a custom directory. Note that `~` will not work as a shortcut.
directory = '', directory = str(expanduser("~")) + "/Music",
# If you want numbered file names # If you want numbered file names
numbered_file_names = True, numbered_file_names = True,

View file

@ -242,7 +242,8 @@ class Manager:
if CONFIG["download_file_names"]: if CONFIG["download_file_names"]:
filename = track + strip_special_chars((BeautifulSoup(\ 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 = { ydl_opts = {
'format': 'bestaudio/best', 'format': 'bestaudio/best',

View file

@ -2,7 +2,7 @@ from setuptools import setup
setup( setup(
name='irs', name='irs',
version='4.8.22', version='4.8.23',
description='A music downloader that just gets metadata.', description='A music downloader that just gets metadata.',
url='https://github.com/kepoorhampond/irs', url='https://github.com/kepoorhampond/irs',
author='Kepoor Hampond', author='Kepoor Hampond',