Skip to content

Commit f2c78e0

Browse files
committed
cli: remove deprecated {,plugin-}config paths
1 parent c6a9cd6 commit f2c78e0

File tree

4 files changed

+78
-116
lines changed

4 files changed

+78
-116
lines changed

docs/cli/config.rst

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ your platform:
2626
:bdg-info-line:`Example`
2727

2828
- ``/home/USERNAME/.config/streamlink/config``
29-
30-
:bdg-danger-line:`Deprecated`
31-
32-
- ``${HOME}/.streamlinkrc``
3329
* - macOS
3430
- :bdg-primary:`Path`
3531

@@ -38,11 +34,6 @@ your platform:
3834
:bdg-info-line:`Example`
3935

4036
- ``/Users/USERNAME/Library/Application Support/streamlink/config``
41-
42-
:bdg-danger-line:`Deprecated`
43-
44-
- ``${XDG_CONFIG_HOME:-${HOME}/.config}/streamlink/config``
45-
- ``${HOME}/.streamlinkrc``
4637
* - Windows
4738
- :bdg-primary:`Path`
4839

@@ -52,10 +43,6 @@ your platform:
5243

5344
- ``C:\Users\USERNAME\AppData\Roaming\streamlink\config``
5445

55-
:bdg-danger-line:`Deprecated`
56-
57-
- ``%APPDATA%\streamlink\streamlinkrc``
58-
5946
You can also specify the location yourself using the :option:`--config` option.
6047

6148
Loading config files can be suppressed using the :option:`--no-config` option.
@@ -129,10 +116,6 @@ Streamlink expects these configs to be named like the main config but with ``.<p
129116
:bdg-info-line:`Example`
130117

131118
- ``/home/USERNAME/.config/streamlink/config.twitch``
132-
133-
:bdg-danger-line:`Deprecated`
134-
135-
- ``${HOME}/.streamlinkrc.pluginname``
136119
* - macOS
137120
- :bdg-primary:`Path`
138121

@@ -141,11 +124,6 @@ Streamlink expects these configs to be named like the main config but with ``.<p
141124
:bdg-info-line:`Example`
142125

143126
- ``/Users/USERNAME/Library/Application Support/streamlink/config.twitch``
144-
145-
:bdg-danger-line:`Deprecated`
146-
147-
- ``${XDG_CONFIG_HOME:-${HOME}/.config}/streamlink/config.pluginname``
148-
- ``${HOME}/.streamlinkrc.pluginname``
149127
* - Windows
150128
- :bdg-primary:`Path`
151129

@@ -155,9 +133,5 @@ Streamlink expects these configs to be named like the main config but with ``.<p
155133

156134
- ``C:\Users\USERNAME\AppData\Roaming\streamlink\config.twitch``
157135

158-
:bdg-danger-line:`Deprecated`
159-
160-
- ``%APPDATA%\streamlink\streamlinkrc.pluginname``
161-
162136
Have a look at the :ref:`list of plugins <plugins:Plugins>`, or
163137
check the :option:`--plugins` option to see the name of each built-in plugin.

src/streamlink_cli/constants.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
APPDATA = Path(os.environ.get("APPDATA") or Path.home() / "AppData")
2424
CONFIG_FILES = [
2525
APPDATA / "streamlink" / "config",
26-
DeprecatedPath(APPDATA / "streamlink" / "streamlinkrc"),
2726
]
2827
PLUGIN_DIRS = [
2928
APPDATA / "streamlink" / "plugins",
@@ -33,8 +32,6 @@
3332
XDG_CONFIG_HOME = Path(os.environ.get("XDG_CONFIG_HOME", "~/.config")).expanduser()
3433
CONFIG_FILES = [
3534
Path.home() / "Library" / "Application Support" / "streamlink" / "config",
36-
DeprecatedPath(XDG_CONFIG_HOME / "streamlink" / "config"),
37-
DeprecatedPath(Path.home() / ".streamlinkrc"),
3835
]
3936
PLUGIN_DIRS = [
4037
Path.home() / "Library" / "Application Support" / "streamlink" / "plugins",
@@ -47,7 +44,6 @@
4744
XDG_STATE_HOME = Path(os.environ.get("XDG_STATE_HOME", "~/.local/state")).expanduser()
4845
CONFIG_FILES = [
4946
XDG_CONFIG_HOME / "streamlink" / "config",
50-
DeprecatedPath(Path.home() / ".streamlinkrc"),
5147
]
5248
PLUGIN_DIRS = [
5349
XDG_DATA_HOME / "streamlink" / "plugins",

src/streamlink_cli/main.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -709,12 +709,6 @@ def setup_config_args(parser, ignore_unknown=False):
709709
else:
710710
# Only load first available default config
711711
for config_file in filter(lambda path: path.is_file(), CONFIG_FILES): # pragma: no branch
712-
if type(config_file) is DeprecatedPath:
713-
warnings.warn(
714-
f"Loaded config from deprecated path, see CLI docs for how to migrate: {config_file}",
715-
StreamlinkDeprecationWarning,
716-
stacklevel=1,
717-
)
718712
config_files.append(config_file)
719713
break
720714

@@ -726,12 +720,6 @@ def setup_config_args(parser, ignore_unknown=False):
726720
config_file = config_file.with_name(f"{config_file.name}.{pluginname}")
727721
if not config_file.is_file():
728722
continue
729-
if type(config_file) is DeprecatedPath:
730-
warnings.warn(
731-
f"Loaded plugin config from deprecated path, see CLI docs for how to migrate: {config_file}",
732-
StreamlinkDeprecationWarning,
733-
stacklevel=1,
734-
)
735723
config_files.append(config_file)
736724
break
737725

0 commit comments

Comments
 (0)