14
0
Files
python-subliminal/python-subliminal.spec

90 lines
2.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-subliminal
#
- 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
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-subliminal
- 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
Version: 2.3.2
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
- 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
BuildRequires: %{python_module hatch_vcs}
BuildRequires: %{python_module pip}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-babelfish >= 0.6.1
Requires: python-beautifulsoup4 >= 4.4.0
Requires: python-chardet >= 5.0
Requires: python-click >= 8.0
Requires: python-click-option-group >= 0.5.6
- 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
Requires: python-defusedxml >= 0.7.1
Requires: python-dogpile.cache >= 1.0
Accepting request 799654 from home:alois:branches:devel:languages:python - Update to version 2.1.0 * Improve legendastv provider matches * Fix video extensions (.mk3d .ogm .ogv) * Use new url to search for titles in legendastv provider * Fix stevedore incompatibility * Add support to webm video extension * Make providers easier to be extended and customized * Update podnapisi URL * Add support to VIP/Donor accounts in legendastv provider * Proper handling titles with year / country in legendastv provider * Several minor enhancements in legendastv provider * Add support for python 3.6, 3.7 and 3.8 * Drop support for python 3.3 and 3.4 * Do not discard providers bad zip/rar is downloaded * SubsCenter provider removal * Fix lxml parsing for Addic7ed provider * Support titles with asterics in Addic7ed provider * Add support to multi-episode search in Opensubtitles provider * Fix multi-episode search in TVSubtitles provider * Update to guessit 3 * Improve archive scanning * Add Opensubtitles VIP provider * Add country to Movie and Episode * Add streaming_service to Video * Add info property to Subtitle * Do not search for subtitles if all required languages is already present * Improve TVDB refiner to support series with comma * Add alternative_titles to Video and enhance OMDB refiner to use alternative_titles * Only compute video hashes when required * Add apikey to OMDB refiner * Fix Subtitle validation when unable to guess encoding * Add support to rar in Dockerfile - Drop python2 support to simplify packaging - Drop subliminal.1 manpage because it's no longer possible to build it OBS-URL: https://build.opensuse.org/request/show/799654 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-subliminal?expand=0&rev=15
2020-05-02 12:20:39 +00:00
Requires: python-guessit >= 3.0.0
- 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
Requires: python-knowit >= 0.5.5
Requires: python-platformdirs >= 3
Requires: python-pysubs2 >= 1.7
Requires: python-requests >= 2.7.0
Requires: python-srt >= 3.5
Requires: python-stevedore >= 3.0
- 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
Requires: python-tomlkit >= 0.13.2
Requires(post): update-alternatives
Requires(postun): update-alternatives
Recommends: python-colorlog >= 2.6.0
- 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
Recommends: python-enzyme >= 0.5.0
Recommends: python-rarfile >= 2.7
Provides: subliminal = %{version}
Obsoletes: subliminal < %{version}
BuildArch: noarch
%python_subpackages
%description
Subliminal is a python library to search and download subtitles.
It comes with an easy to use CLI suitable for direct use or cron jobs.
%prep
Accepting request 799654 from home:alois:branches:devel:languages:python - Update to version 2.1.0 * Improve legendastv provider matches * Fix video extensions (.mk3d .ogm .ogv) * Use new url to search for titles in legendastv provider * Fix stevedore incompatibility * Add support to webm video extension * Make providers easier to be extended and customized * Update podnapisi URL * Add support to VIP/Donor accounts in legendastv provider * Proper handling titles with year / country in legendastv provider * Several minor enhancements in legendastv provider * Add support for python 3.6, 3.7 and 3.8 * Drop support for python 3.3 and 3.4 * Do not discard providers bad zip/rar is downloaded * SubsCenter provider removal * Fix lxml parsing for Addic7ed provider * Support titles with asterics in Addic7ed provider * Add support to multi-episode search in Opensubtitles provider * Fix multi-episode search in TVSubtitles provider * Update to guessit 3 * Improve archive scanning * Add Opensubtitles VIP provider * Add country to Movie and Episode * Add streaming_service to Video * Add info property to Subtitle * Do not search for subtitles if all required languages is already present * Improve TVDB refiner to support series with comma * Add alternative_titles to Video and enhance OMDB refiner to use alternative_titles * Only compute video hashes when required * Add apikey to OMDB refiner * Fix Subtitle validation when unable to guess encoding * Add support to rar in Dockerfile - Drop python2 support to simplify packaging - Drop subliminal.1 manpage because it's no longer possible to build it OBS-URL: https://build.opensuse.org/request/show/799654 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-subliminal?expand=0&rev=15
2020-05-02 12:20:39 +00:00
%autosetup -n subliminal-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/subliminal
%python_expand %fdupes %{buildroot}%{$python_sitelib}
- 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
# 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
%postun
%python_uninstall_alternative subliminal
%files %{python_files}
%license LICENSE
%doc HISTORY.rst README.rst
%python_alternative %{_bindir}/subliminal
%{python_sitelib}/subliminal
%{python_sitelib}/subliminal-%{version}.dist-info
%changelog