mirror of
https://github.com/cooperhammond/irs.git
synced 2025-07-22 20:08:29 +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
|
# If you want numbered file names
|
||||||
numbered_file_names = True,
|
numbered_file_names = True,
|
||||||
|
|
||||||
|
# Downloaded file names
|
||||||
|
download_file_names = True,
|
||||||
)
|
)
|
||||||
|
|
|
@ -240,6 +240,10 @@ class Manager:
|
||||||
|
|
||||||
filename = track + strip_special_chars(song) + ".mp3"
|
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 = {
|
ydl_opts = {
|
||||||
'format': 'bestaudio/best',
|
'format': 'bestaudio/best',
|
||||||
#'quiet': True,
|
#'quiet': True,
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -2,7 +2,7 @@ from setuptools import setup
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='irs',
|
name='irs',
|
||||||
version='4.7.22',
|
version='4.8.22',
|
||||||
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