Skip to content

Commit 5ece0a8

Browse files
committed
feat, fix: improve and fix audio localisation, yt-dlp dropped python 3.9, bump dep versions and use pipx instead of aur helper. closes #21
1 parent c1d9303 commit 5ece0a8

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 mov-cli
3+
Copyright (c) 2025 mov-cli
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@ Here's how to install and add the plugin to mov-cli.
1919
pip install mov-cli-youtube
2020
```
2121

22-
### AUR
22+
### PIPX
23+
> [!INFO]
24+
> If you're on Arch Linux, we now recommend you use pipx instead of your aur helper to install **mov-cli** and **your plugins**.
25+
2326
```sh
24-
yay -S python-mov-cli-youtube
27+
pipx inject mov-cli mov-cli-youtube
2528
```
2629

2730
2. Then add the plugin to your mov-cli config.

mov_cli_youtube/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
}
2323
}
2424

25-
__version__ = "1.3.9"
25+
__version__ = "1.3.11"

mov_cli_youtube/yt_dlp.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,17 +115,20 @@ def __get_best_stream(self, ytdlp_info: dict, video: bool = False, audio: bool =
115115
raise ValueError("Either video or audio arg must be True in '__get_best_stream'!")
116116

117117
for stream_format in ytdlp_info["formats"]:
118+
stream_format: dict
118119

119120
if video is True and stream_format["video_ext"] == "none":
120121
continue
121122

122123
if audio is True:
123-
124124
if stream_format["audio_ext"] == "none":
125125
continue
126126

127-
if ensure_correct_audio_localisation and not stream_format["language"] == self.config.language.iso639_1:
128-
continue
127+
if ensure_correct_audio_localisation:
128+
language = str(stream_format["language"])
129+
130+
if not language.startswith(self.config.language.iso639_1):
131+
continue
129132

130133
if (
131134
# Only filter when not "auto"

pyproject.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = [
66
{name = "Ananas", email = "[email protected]"}
77
]
88
readme = {file = "README.md", content-type = "text/markdown"}
9-
requires-python = ">=3.8"
9+
requires-python = ">=3.10"
1010
license = { file = "LICENSE" }
1111
keywords = [
1212
"amazing mov-cli plugin"
@@ -16,17 +16,15 @@ classifiers = [
1616
'Operating System :: Microsoft :: Windows :: Windows 10',
1717
'Operating System :: POSIX :: Linux',
1818
'License :: OSI Approved :: MIT License',
19-
'Programming Language :: Python :: 3.9',
20-
'Programming Language :: Python :: 3.10',
2119
'Programming Language :: Python :: 3.11',
2220
'Programming Language :: Python :: 3.12',
2321
]
2422
dependencies = [
2523
"requests",
2624
"importlib-metadata; python_version<'3.8'",
2725

28-
"pytubefix>=9.3",
29-
"yt-dlp>=2025.6.30"
26+
"pytubefix>=9.5.1",
27+
"yt-dlp>=2025.9.26"
3028
]
3129

3230
dynamic = ["version"]

0 commit comments

Comments
 (0)