Skip to content

Commit 8e1d750

Browse files
authored
Merge pull request #12 from michaelb/dev
Dev
2 parents f41de72 + 6ef5350 commit 8e1d750

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# auto-ytdl
22

3-
![](https://img.shields.io/badge/Release-v1.1.1-green.svg)
3+
![](https://img.shields.io/badge/Release-v1.1.2-green.svg)
44

55
I know, _yet another_ youtube-dl wrapper. But this one does something others don't: ability to automate your new music downloads, just like package managers automate your updates.
66

@@ -87,6 +87,7 @@ see also [Usage](#usage) and [Examples](#examples)
8787

8888
- youtube-dl
8989
- ffmpeg
90+
- kid3-cli [AUR](https://aur.archlinux.org/packages/kid3-cli/)
9091
- python3-pip (for manual install / build)
9192

9293
For every feature to work, you need a XDG-compliant desktop environment.

autoytdl/AYTDL.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def prepare_ytdl_commmand_line(dateafter):
6868
if not ((url[0] == "\"" or url[0] == "'") and (url[-1] == "'" or url[-1] == "\"")):
6969
url = "\""+url+"\""
7070

71-
# here
71+
# here we run youtube-dl
7272
exit_code = os.system("youtube-dl " +
7373
prepare_ytdl_commmand_line(dateafter) + " " + url)
7474
if exit_code != 0: # may be a youtube-dl error taht is recoverable

autoytdl/config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def __init__(self):
9595
self.comments += ["Not user modifiable"]
9696
self.comments += [
9797
"Ideally, should only be \"best\" (default) or \"mp3\" so the eventual thumbnail is correctly embedded most of the time (opus and mp3 format are the main focus of dev)"]
98+
self.comments += ["You should not change this"]
9899
self.comments += ["Not user modifiable"]
99100
self.comments += ["Do not download more than this much music from one source"]
100101
self.youtube_dl_args = {"ignore-errors": True,
@@ -108,6 +109,7 @@ def __init__(self):
108109
"force-ipv4": True,
109110
"extract-audio": True,
110111
"audio-format": "best",
112+
"audio-quality": 0,
111113
"write-thumbnail": True,
112114
"playlist-end": 150}
113115

autoytdl/name_cleaner.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ def remove_brackets(string):
1212
string = re.sub(r'\(\)', '', string)
1313
string = re.sub(r'\( \)', '', string)
1414
string = re.sub(r'\( \)', '', string)
15-
# dont want to test more compelx regex for this
1615
string = re.sub(r'\( \)', '', string)
16+
string = re.sub(r'\(\ \)', '', string)
17+
string = re.sub(r'\(\ \ \)', '', string)
18+
string = re.sub(r'\(\ \ \ \)', '', string)
19+
# dont want to test more compelx regex for this
1720
string = re.sub("[\{\[].*?[\}\]]", "", string)
1821
return string
1922

autoytdl/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# follows semantic versionning
2-
__version__ = "1.1.1"
2+
__version__ = "1.1.2"

0 commit comments

Comments
 (0)