Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump version to 2.2.0 #1131

Merged
merged 13 commits into from
Jun 24, 2024
25 changes: 19 additions & 6 deletions HISTORY.rst
ptrcnull marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -1,16 +1,29 @@
Changelog
---------

2.1.1
2.2.0
^^^^^
**release date:** *not released*

* Change default encoding of downloaded subtitle to 'utf-8' (not the original encoding)
* Switch podnapisi provider to use JSON API
* Add support for episodes with season 0 in podnapisi provider
* Disabled addic7ed provider due to required captcha for authentication
* Disabled shooter provider since it doesn't filter by language
* Drop python2 support, the supported versions are `>=3.8,<=3.12`.
* Load CLI options from a configuration file with the ``--config-file/-c`` option (`#1084 <https://github.com/Diaoul/subliminal/pull/1084>`_).
* Change default encoding of downloaded subtitles to 'utf-8' (not the original encoding). Use the ``--original-encoding`` cli option to recover the previous default behavior (`#1125 <https://github.com/Diaoul/subliminal/pull/1125>`_).
* Add opensubtitlescom provider
* Add gestdown provider
* Add tmdb refiner (requires a personal API key)
* Fix tvsubtitles provider
* Fix opensubtitles provider
* Fix napiprojekt provider
* Fix podnapisi provider to use JSON API
* Fix addic7ed provider
* Remove thesubdb provider
* Remove argenteam provider
* Remove shooter provider
* Remove legendastv provider
* Use `pyproject.toml` to specify the package configurations.* Add pre-commit hook (`#1115 <https://github.com/Diaoul/subliminal/pull/1115>`_).
* Use ruff to lint and format
* Use mypy to check types
* Add type annotations


2.1.0
Expand Down
3 changes: 2 additions & 1 deletion docs/user/how_it_works.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@ Various libraries are used by subliminal and are key to its success:
* `dogpile.cache <http://dogpilecache.readthedocs.org>`_ to cache intermediate search results
* `stevedore <http://docs.openstack.org/developer/stevedore/>`_ to manage the provider entry point
* `chardet <http://chardet.readthedocs.org>`_ to detect subtitles' encoding
* `srt <https://github.com/cdown/srt>`_ to validate downloaded subtitles
* `srt <https://github.com/cdown/srt>`_ to validate downloaded SubRip subtitles
* `pysub2 <https://github.com/tkarabela/pysubs2>`_ to validate and convert downloaded subtitles to other formats.
11 changes: 11 additions & 0 deletions docs/user/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,24 @@ Download English subtitles::
only. Otherwise you will get banned from the providers for abuse due to too many requests. If subliminal didn't
find subtitles for an old video, it's unlikely it will find subtitles for that video ever anyway.

You can use a configuration file in the `TOML <https://toml.io/>`_ format with the ``-config-file/-c`` option. If no configuration file is
provided, it looks for a ``subliminal.toml`` file in the default configuration folder for the application. This folder is
`OS dependent <https://github.com/platformdirs/platformdirs>`_:

- Linux: ``/home/<user>/.config/subliminal/subliminal.toml``
- MacOS: ``/Users/<user>/Library/Application Support/subliminal/subliminal.toml``
- Windows: ``C:\\Users\\<user>\\AppData\\Local\\Acme\\subliminal\\subliminal.toml``

See :ref:`cli` for more details on the available commands and options.


Nautilus/Nemo integration
-------------------------
See the dedicated `project page <https://github.com/Diaoul/nautilus-subliminal>`_ for more information.

Dolphin integration
-------------------
See `this Gist <https://gist.github.com/maurocolella/03a9f02c56b1a90c64f05683e2840d57>`_.

High level API
--------------
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,11 @@ dependencies = [
"click>=8.0",
"click-option-group>=0.5.6",
"dogpile.cache>=1.0",
"enzyme>=0.4.1",
"enzyme>=0.5.0",
"guessit>=3.0.0",
"platformdirs>=4.2",
"pysubs2>=1.7",
"rarfile>=2.7",
"rebulk>=3.0",
"requests>=2.0",
"srt>=3.5",
"stevedore>=3.0",
Expand Down
2 changes: 1 addition & 1 deletion subliminal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import annotations

__title__: str = 'subliminal'
__version__: str = '2.1.1-dev'
__version__: str = '2.2.0'
__short_version__: str = '.'.join(__version__.split('.')[:2])
__author__: str = 'Antoine Bertin'
__license__: str = 'MIT'
Expand Down
2 changes: 1 addition & 1 deletion subliminal/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def plural(quantity: int, name: str, *, bold: bool = True, **kwargs: Any) -> str
)
@click.option(
'-c',
'--config',
'--config-file',
getzze marked this conversation as resolved.
Show resolved Hide resolved
type=click.Path(dir_okay=False, path_type=pathlib.Path),
default=default_config_path,
callback=configure,
Expand Down
Loading