14
0

7 Commits

Author SHA256 Message Date
faeacf1891 Accepting request 1302516 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1302516
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-subliminal?expand=0&rev=8
2025-09-03 19:07:57 +00:00
5faba2b3ef - Update to version 2.4.0
* Use fps match for scoring subtitles
  * Refactor cli.py into folder
  * show all entries from towncrier
  * Fix guessit title str
  * Add a section to README about using --debug

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-subliminal?expand=0&rev=26
2025-09-03 05:05:15 +00:00
c9608749bb Accepting request 1285886 from devel:languages:python
- Update to version 2.3.2
  Changes:
  * [BSPlayer] disabled by default because it is slow. Can be
    enabled with the -pp bsplayer CLI option
- Update to version 2.3.0
  Changes:
  * By default, use the latest of creation and modification date
    to compute the age of the file. Use the CLI option
    `--no-use-ctime` to use the modification date only, that was
    the previous behavior.
  * Make `rarfile` an optional dependency, install with
    subliminal[rar]
  * add `subtitles` attribute to Video
  * Use `knowit` to extract information from video file, instead
    of `enzyme`: frame rate, duration and subtitles.
    `knowit` relies on external programs and falls back to using
    `enzyme` if none is installed.
  * show "Insufficient data to process the guess" without debug,
    but with verbose
  * Add Provider.hash_video staticmethod, to allow creating
    standalone providers.
  * Drop python 3.8, support python 3.13.
  * Remove addic7ed and napiprojekt from the list of disabled
    providers. Remove the default_providers and default_refiners
    variables, instead the get_default_providers() and
    get_default_refiners() functions can be used.
  * Add a mock provider to fix doctest.
  * Add release scripts, documentation and Github Actions
  * Rename optional dependency test -> tests.
    Improve security of github actions using woodruffw/zizmor.
  * Use hatch builder and hatch-vcs
  * Add a Github action to publish the docker images to ghcr.io
  * Can use `python -m subliminal`
  * create a prepare_tests.py script to download the tests data
    beforehand and avoid repeated downloads
  * CLI option --use-ctime is set to True by default
  Provider Changes:
  * Added BSPlayer provider
  * [OpenSubtitlesCom] Avoid duplicate subtitles
  * Added Subtitulamos provider
  CLI Changes:
  * Add a --subtitle-format CLI option to force converting
    subtitles to another format
  * Add CLI `ignore` option for refiners, providers and subtitle
    ids.
  * Add a --skip-wrong-fps cli option to completely skip
    subtitles with FPS different from the video FPS
  * add CLI options --force-embedded-subtitles and
    --force-external-subtitles. They are fine-tuned --force
    options to ignore only embedded or external existing
    subtitles. They are superseded by --force.
  * Add a `-n/--name` option to use a replacement name for the
    video. Sort files alphabetically before scanning a directory.
  * Add an option to change the style of the language suffix of
    saved subtitles. Allow adding the language type, hi or forced.
  * Remove the original-encoding CLI option, pass `--encoding=`
    for the same effect.
  * Add cli option to prefer or disfavor hearing impaired
  * Add a CLI option `--use-absolute-path` that can take the
    values 'fallback' (default), 'never' or 'always' to choose if
    the given path is transformed to an absolute path before
    guessing information from the path.
  * add a CLI option --logfile to log to file. Level can be
    specified with --logfile-level, default to DEBUG
  Deprecations:
  * Deprecate the `--addic7ed USERNAME PASSWORD`,
    `--opensubtitles` and `--opensubtitlescom` CLI options
    in favor of `--provider.addic7ed.username USERNAME`,
    `--provider.addic7ed.password PASSWORD`, etc...
  * Add a generic way of passing arguments to the providers
    using CLI options.
  * Use environment variables to pass options to the CLI.
  Misc:
  * Various functional and documentation fixes.

OBS-URL: https://build.opensuse.org/request/show/1285886
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-subliminal?expand=0&rev=7
2025-06-16 09:57:59 +00:00
1c65e0e1d6 - Update to version 2.3.2
Changes:
  * [BSPlayer] disabled by default because it is slow. Can be
    enabled with the -pp bsplayer CLI option
- Update to version 2.3.0
  Changes:
  * By default, use the latest of creation and modification date
    to compute the age of the file. Use the CLI option
    `--no-use-ctime` to use the modification date only, that was
    the previous behavior.
  * Make `rarfile` an optional dependency, install with
    subliminal[rar]
  * add `subtitles` attribute to Video
  * Use `knowit` to extract information from video file, instead
    of `enzyme`: frame rate, duration and subtitles.
    `knowit` relies on external programs and falls back to using
    `enzyme` if none is installed.
  * show "Insufficient data to process the guess" without debug,
    but with verbose
  * Add Provider.hash_video staticmethod, to allow creating
    standalone providers.
  * Drop python 3.8, support python 3.13.
  * Remove addic7ed and napiprojekt from the list of disabled
    providers. Remove the default_providers and default_refiners
    variables, instead the get_default_providers() and
    get_default_refiners() functions can be used.
  * Add a mock provider to fix doctest.
  * Add release scripts, documentation and Github Actions
  * Rename optional dependency test -> tests.
    Improve security of github actions using woodruffw/zizmor.
  * Use hatch builder and hatch-vcs
  * Add a Github action to publish the docker images to ghcr.io
  * Can use `python -m subliminal`
  * create a prepare_tests.py script to download the tests data
    beforehand and avoid repeated downloads
  * CLI option --use-ctime is set to True by default
  Provider Changes:
  * Added BSPlayer provider
  * [OpenSubtitlesCom] Avoid duplicate subtitles
  * Added Subtitulamos provider
  CLI Changes:
  * Add a --subtitle-format CLI option to force converting
    subtitles to another format
  * Add CLI `ignore` option for refiners, providers and subtitle
    ids.
  * Add a --skip-wrong-fps cli option to completely skip
    subtitles with FPS different from the video FPS
  * add CLI options --force-embedded-subtitles and
    --force-external-subtitles. They are fine-tuned --force
    options to ignore only embedded or external existing
    subtitles. They are superseded by --force.
  * Add a `-n/--name` option to use a replacement name for the
    video. Sort files alphabetically before scanning a directory.
  * Add an option to change the style of the language suffix of
    saved subtitles. Allow adding the language type, hi or forced.
  * Remove the original-encoding CLI option, pass `--encoding=`
    for the same effect.
  * Add cli option to prefer or disfavor hearing impaired
  * Add a CLI option `--use-absolute-path` that can take the
    values 'fallback' (default), 'never' or 'always' to choose if
    the given path is transformed to an absolute path before
    guessing information from the path.
  * add a CLI option --logfile to log to file. Level can be
    specified with --logfile-level, default to DEBUG
  Deprecations:
  * Deprecate the `--addic7ed USERNAME PASSWORD`,
    `--opensubtitles` and `--opensubtitlescom` CLI options
    in favor of `--provider.addic7ed.username USERNAME`,
    `--provider.addic7ed.password PASSWORD`, etc...
  * Add a generic way of passing arguments to the providers
    using CLI options.
  * Use environment variables to pass options to the CLI.
  Misc:
  * Various functional and documentation fixes.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-subliminal?expand=0&rev=24
2025-05-09 04:41:27 +00:00
58a6de7f0c Accepting request 1186349 from devel:languages:python
- Update to version 2.2.1
  * Relax the version bounds on platformdirs to >= 3
  * Show config message only in debug mode in CLI
  * Add example subliminal.toml to docs and various docs fixes
- Update to version 2.2.0
  * Drop python2 support, the supported versions are
    >=3.8,<=3.12.
  * Load CLI options from a configuration file with the
    --config/-c option
  * 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
  * 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
  * Use ruff to lint and format
  * Use mypy to check types
  * Add type annotations
  * Drop dependencies: pysrt, appdirs, six, pytz
  * Add dependencies:
    + click-option-group>=0.5.6
    + platformdirs>=4.2
    + pysubs2>=1.7
    + srt>=3.5
    + tomli>=2
  * Bump dependency versions:
    + babelfish>=0.6.1
    + chardet>=5.0
    + click>=8.0
    + dogpile.cache>=1.0
    + enzyme>=0.5.0
    + stevedore>=3.0

OBS-URL: https://build.opensuse.org/request/show/1186349
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-subliminal?expand=0&rev=6
2024-07-09 18:05:23 +00:00
1f2a407b91 Accepting request 1183797 from home:alois:branches:devel:languages:python
- Update to version 2.2.1
  * Relax the version bounds on platformdirs to >= 3
  * Show config message only in debug mode in CLI
  * Add example subliminal.toml to docs and various docs fixes

OBS-URL: https://build.opensuse.org/request/show/1183797
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-subliminal?expand=0&rev=22
2024-06-28 07:00:28 +00:00
9ce6cbacda Accepting request 1183581 from home:alois:branches:devel:languages:python
- Update to version 2.2.0
  * Drop python2 support, the supported versions are
    >=3.8,<=3.12.
  * Load CLI options from a configuration file with the
    --config/-c option
  * 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
  * 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
  * Use ruff to lint and format
  * Use mypy to check types
  * Add type annotations
  * Drop dependencies: pysrt, appdirs, six, pytz
  * Add dependencies:
    + click-option-group>=0.5.6
    + platformdirs>=4.2
    + pysubs2>=1.7
    + srt>=3.5
    + tomli>=2
  * Bump dependency versions:
    + babelfish>=0.6.1
    + chardet>=5.0
    + click>=8.0
    + dogpile.cache>=1.0
    + enzyme>=0.5.0
    + stevedore>=3.0

OBS-URL: https://build.opensuse.org/request/show/1183581
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-subliminal?expand=0&rev=21
2024-06-27 13:58:20 +00:00
4 changed files with 174 additions and 23 deletions

View File

@@ -1,3 +1,146 @@
-------------------------------------------------------------------
Wed Sep 3 05:01:28 UTC 2025 - Luigi Baldoni <aloisio@gmx.com>
- Update to version 2.4.0
* Use fps match for scoring subtitles
* Refactor cli.py into folder
* show all entries from towncrier
* Fix guessit title str
* Add a section to README about using --debug
-------------------------------------------------------------------
Fri May 9 04:27:21 UTC 2025 - Luigi Baldoni <aloisio@gmx.com>
- Update to version 2.3.2
Changes:
* [BSPlayer] disabled by default because it is slow. Can be
enabled with the -pp bsplayer CLI option
-------------------------------------------------------------------
Sat May 3 13:06:23 UTC 2025 - Luigi Baldoni <aloisio@gmx.com>
- Update to version 2.3.0
Changes:
* By default, use the latest of creation and modification date
to compute the age of the file. Use the CLI option
`--no-use-ctime` to use the modification date only, that was
the previous behavior.
* Make `rarfile` an optional dependency, install with
subliminal[rar]
* add `subtitles` attribute to Video
* Use `knowit` to extract information from video file, instead
of `enzyme`: frame rate, duration and subtitles.
`knowit` relies on external programs and falls back to using
`enzyme` if none is installed.
* show "Insufficient data to process the guess" without debug,
but with verbose
* Add Provider.hash_video staticmethod, to allow creating
standalone providers.
* Drop python 3.8, support python 3.13.
* Remove addic7ed and napiprojekt from the list of disabled
providers. Remove the default_providers and default_refiners
variables, instead the get_default_providers() and
get_default_refiners() functions can be used.
* Add a mock provider to fix doctest.
* Add release scripts, documentation and Github Actions
* Rename optional dependency test -> tests.
Improve security of github actions using woodruffw/zizmor.
* Use hatch builder and hatch-vcs
* Add a Github action to publish the docker images to ghcr.io
* Can use `python -m subliminal`
* create a prepare_tests.py script to download the tests data
beforehand and avoid repeated downloads
* CLI option --use-ctime is set to True by default
Provider Changes:
* Added BSPlayer provider
* [OpenSubtitlesCom] Avoid duplicate subtitles
* Added Subtitulamos provider
CLI Changes:
* Add a --subtitle-format CLI option to force converting
subtitles to another format
* Add CLI `ignore` option for refiners, providers and subtitle
ids.
* Add a --skip-wrong-fps cli option to completely skip
subtitles with FPS different from the video FPS
* add CLI options --force-embedded-subtitles and
--force-external-subtitles. They are fine-tuned --force
options to ignore only embedded or external existing
subtitles. They are superseded by --force.
* Add a `-n/--name` option to use a replacement name for the
video. Sort files alphabetically before scanning a directory.
* Add an option to change the style of the language suffix of
saved subtitles. Allow adding the language type, hi or forced.
* Remove the original-encoding CLI option, pass `--encoding=`
for the same effect.
* Add cli option to prefer or disfavor hearing impaired
* Add a CLI option `--use-absolute-path` that can take the
values 'fallback' (default), 'never' or 'always' to choose if
the given path is transformed to an absolute path before
guessing information from the path.
* add a CLI option --logfile to log to file. Level can be
specified with --logfile-level, default to DEBUG
Deprecations:
* Deprecate the `--addic7ed USERNAME PASSWORD`,
`--opensubtitles` and `--opensubtitlescom` CLI options
in favor of `--provider.addic7ed.username USERNAME`,
`--provider.addic7ed.password PASSWORD`, etc...
* Add a generic way of passing arguments to the providers
using CLI options.
* Use environment variables to pass options to the CLI.
Misc:
* Various functional and documentation fixes.
-------------------------------------------------------------------
Fri Jun 28 06:45:28 UTC 2024 - Luigi Baldoni <aloisio@gmx.com>
- Update to version 2.2.1
* Relax the version bounds on platformdirs to >= 3
* Show config message only in debug mode in CLI
* Add example subliminal.toml to docs and various docs fixes
-------------------------------------------------------------------
Tue Jun 25 09:34:51 UTC 2024 - Luigi Baldoni <aloisio@gmx.com>
- Update to version 2.2.0
* Drop python2 support, the supported versions are
>=3.8,<=3.12.
* Load CLI options from a configuration file with the
--config/-c option
* 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
* 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
* Use ruff to lint and format
* Use mypy to check types
* Add type annotations
* Drop dependencies: pysrt, appdirs, six, pytz
* Add dependencies:
+ click-option-group>=0.5.6
+ platformdirs>=4.2
+ pysubs2>=1.7
+ srt>=3.5
+ tomli>=2
* Bump dependency versions:
+ babelfish>=0.6.1
+ chardet>=5.0
+ click>=8.0
+ dogpile.cache>=1.0
+ enzyme>=0.5.0
+ stevedore>=3.0
-------------------------------------------------------------------
Wed Mar 30 09:41:55 UTC 2022 - Luigi Baldoni <aloisio@gmx.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-subliminal
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,35 +16,38 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global pythons python3
%{?sle15_python_module_pythons}
Name: python-subliminal
Version: 2.1.0
Version: 2.4.0
Release: 0
Summary: Python library to search and download subtitles
License: MIT
URL: https://github.com/Diaoul/subliminal
Source: https://files.pythonhosted.org/packages/source/s/subliminal/subliminal-%{version}.tar.gz
BuildRequires: %{python_module setuptools >= 18.0.1}
BuildRequires: %{python_module hatch_vcs}
BuildRequires: %{python_module pip}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-appdirs >= 1.3
Requires: python-babelfish >= 0.5.4
Requires: python-babelfish >= 0.6.1
Requires: python-beautifulsoup4 >= 4.4.0
Requires: python-chardet >= 2.3.0
Requires: python-click >= 4.1
Requires: python-dogpile.cache >= 0.6.0
Requires: python-enzyme >= 0.4.1
Requires: python-chardet >= 5.0
Requires: python-click >= 8.0
Requires: python-click-option-group >= 0.5.6
Requires: python-defusedxml >= 0.7.1
Requires: python-dogpile.cache >= 1.0
Requires: python-guessit >= 3.0.0
Requires: python-pysrt >= 1.0.1
Requires: python-pytz >= 2012c
Requires: python-rarfile >= 2.7
Requires: python-knowit >= 0.5.5
Requires: python-platformdirs >= 3
Requires: python-pysubs2 >= 1.7
Requires: python-requests >= 2.7.0
Requires: python-six >= 1.9.0
Requires: python-stevedore >= 1.20.0
Requires: python-srt >= 3.5
Requires: python-stevedore >= 3.0
Requires: python-tomlkit >= 0.13.2
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires(postun): update-alternatives
Recommends: python-colorlog >= 2.6.0
Recommends: python-enzyme >= 0.5.0
Recommends: python-rarfile >= 2.7
Provides: subliminal = %{version}
Obsoletes: subliminal < %{version}
BuildArch: noarch
@@ -58,13 +61,18 @@ It comes with an easy to use CLI suitable for direct use or cron jobs.
%autosetup -n subliminal-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/subliminal
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# until https://github.com/Diaoul/subliminal/issues/1277 is fixed
%python_expand sed -i 's/dogpile-cache/dogpile.cache/g' %{buildroot}%{$python_sitelib}/subliminal-%{version}.dist-info/METADATA
%check
%post
%python_install_alternative subliminal
@@ -76,6 +84,6 @@ It comes with an easy to use CLI suitable for direct use or cron jobs.
%doc HISTORY.rst README.rst
%python_alternative %{_bindir}/subliminal
%{python_sitelib}/subliminal
%{python_sitelib}/subliminal-%{version}-py%{python_version}.egg-info
%{python_sitelib}/subliminal-%{version}.dist-info
%changelog

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c6439cc733a4f37f01f8c14c096d44fd28d75d1f6f6e2d1d1003b1b82c65628b
size 52468

BIN
subliminal-2.4.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.