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(
|
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,
|
||||||
|
|
|
@ -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',
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue