Skip to content

Commit b114c07

Browse files
authored
Merge pull request #25 from michaelb/dev
fix sketchy bug
2 parents 5be3d3f + 9f0ff0b commit b114c07

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

README.md

Lines changed: 1 addition & 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.2.1-green.svg)
3+
![](https://img.shields.io/badge/Release-v1.2.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

autoytdl/metadata_manager.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,11 @@ def equal(m1, m2):
4242
if m1[1] == m2[1]:
4343
i = i * 10
4444

45-
if abs(float(m2[2]) - float(m1[2])) < 15:
46-
i = i * 4
45+
try:
46+
if abs(float(m2[2]) - float(m1[2])) < 15:
47+
i = i * 4
48+
except Exception:
49+
i = i / 4
4750

4851
if m1[1] in m2[1]:
4952
i = i*5

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.2.1"
2+
__version__ = "1.2.2"

0 commit comments

Comments
 (0)