78 Commits

Author SHA1 Message Date
e865ebfee1
Add CI workflow for automated builds and tests in Github
Some checks failed
CI + Deploy / lint (push) Successful in 10s
CI + Deploy / test (push) Successful in 13s
CI + Deploy / deploy_to_pypi (push) Failing after 12s
CI + Deploy / deploy_to_registries (push) Successful in 33s
- Adds a GitHub Actions workflow for linting, testing, and pushing to GHCR.
- Uses uv for environment management and dependency installation.
- Includes Ruff for linting and pytest for testing.
- Uploads test coverage to Codecov.
- Pushes the Docker image to GHCR on pushes to the master branch.
2025-05-17 14:58:46 -03:00
446b613816
Use repository token for Gitea registry login
Some checks failed
CI + Deploy / lint (push) Successful in 7s
CI + Deploy / test (push) Successful in 12s
CI + Deploy / deploy_to_pypi (push) Failing after 13s
CI + Deploy / deploy_to_registries (push) Successful in 35s
- Replaced vars.REPOSITORY_TOKEN with secrets.REPOSITORY_TOKEN for Gitea registry login.
- This improves security by storing the token as a secret.
- Ensures the token is not exposed in the workflow file.
2025-05-17 14:51:43 -03:00
470fa896b4
Consolidate deployment jobs into one
Some checks failed
CI + Deploy / lint (push) Successful in 9s
CI + Deploy / test (push) Successful in 11s
CI + Deploy / deploy_to_pypi (push) Failing after 12s
CI + Deploy / deploy_to_registries (push) Failing after 6s
- Combines DockerHub and Gitea deployment into a single job.
- Removes the separate `deploy_to_dockerhub` and `deploy_to_gitea` jobs.
- Simplifies the deployment process.
- Adds DockerHub tagging to the combined deployment job.
2025-05-17 14:47:05 -03:00
be92e748e1
Testing dockerhub and gitea before re-tagging pypi
Some checks failed
CI + Deploy / lint (push) Successful in 10s
CI + Deploy / test (push) Successful in 11s
CI + Deploy / deploy_to_pypi (push) Failing after 12s
CI + Deploy / deploy_to_dockerhub (push) Successful in 34s
CI + Deploy / deploy_to_gitea (push) Failing after 4s
2025-05-17 14:44:14 -03:00
35f5eb5bcc
Use GITHUB_PATH instead of GITEA_PATH
Some checks failed
CI + Deploy / lint (push) Successful in 7s
CI + Deploy / test (push) Successful in 12s
CI + Deploy / deploy_to_pypi (push) Failing after 12s
CI + Deploy / deploy_to_dockerhub (push) Has been skipped
CI + Deploy / deploy_to_gitea (push) Has been skipped
- Replaced `GITEA_PATH` with `GITHUB_PATH` in CI workflow files.
- This corrects the environment variable used for adding Cargo's bin directory to the PATH.
- Ensures the workflow functions correctly within the GitHub Actions environment.
2025-05-17 14:36:25 -03:00
0a37d3a23a
Update CI build dependencies
Some checks failed
CI + Deploy / lint (push) Successful in 6s
CI + Deploy / test (push) Successful in 10s
CI + Deploy / deploy_to_pypi (push) Failing after 5s
CI + Deploy / deploy_to_dockerhub (push) Has been skipped
CI + Deploy / deploy_to_gitea (push) Has been skipped
- Update `pip` installation to use `uv pip`.
- Ensure consistent dependency installation in CI.
2025-05-17 14:31:03 -03:00
007c417064
Install twine for PyPI publishing
Some checks failed
CI + Deploy / lint (push) Successful in 7s
CI + Deploy / test (push) Successful in 11s
CI + Deploy / deploy_to_pypi (push) Failing after 5s
CI + Deploy / deploy_to_dockerhub (push) Has been skipped
CI + Deploy / deploy_to_gitea (push) Has been skipped
- Add twine installation to the build environment.
- This ensures twine is available for PyPI publishing.
- Move twine installation to after venv creation.
2025-05-17 14:30:00 -03:00
1aada98b92
Use GITEA_PATH instead of GITHUB_PATH
Some checks failed
CI + Deploy / lint (push) Successful in 7s
CI + Deploy / test (push) Successful in 11s
CI + Deploy / deploy_to_pypi (push) Failing after 5s
CI + Deploy / deploy_to_dockerhub (push) Has been skipped
CI + Deploy / deploy_to_gitea (push) Has been skipped
- Replaced `GITHUB_PATH` with `GITEA_PATH` in CI workflows.
- This corrects the environment variable used for adding Cargo binaries.
- Ensures correct execution within the Gitea Actions environment.
2025-05-17 14:28:13 -03:00
ad437ce752
Add CI/CD workflow for automated deployments in Gitea
Some checks failed
CI + Deploy / lint (push) Failing after 6s
CI + Deploy / test (push) Has been skipped
CI + Deploy / deploy_to_pypi (push) Has been skipped
CI + Deploy / deploy_to_dockerhub (push) Has been skipped
CI + Deploy / deploy_to_gitea (push) Has been skipped
- Introduces a GitHub Actions workflow for CI/CD.
- Replaces GitLab CI configuration with GitHub Actions.
- Adds linting, testing, PyPI deployment, DockerHub deployment, and Gitea deployment jobs.
- Uses uv for consistent environment and dependency management.
- Configures DockerHub and Gitea deployments using secrets and variables.
- Removes GitLab CI configuration.
2025-05-17 14:25:05 -03:00
254e6b9c26
Bump version to 2.1.1
- Update __version__ in subscleaner/__init__.py.
- Update version in pyproject.toml.
- Update version in uv.lock.
2.1.1
2025-03-29 10:43:05 -03:00
5dbfbcf888
Add verbose output option to README 2025-03-29 10:42:23 -03:00
0a51edb883
Bump project version to 2.1.0
- Update project version in pyproject.toml.
- Update __version__ in subscleaner/__init__.py.
- Update version in uv.lock.
2025-03-29 10:37:24 -03:00
fb14e7f5f8
Add verbose flag and improve CLI
- Added a verbose flag to control script output.
- Updated tests to reflect changes.
- Added docstrings to functions.
- Improved overall code structure and readability.
2025-03-29 10:35:52 -03:00
7a463713c2
Bump version to 2.0.1 2.0.1 2025-03-28 22:12:43 -03:00
cda431aa85
Bump subscleaner version to 2.0.0 2025-03-28 22:12:23 -03:00
f54223db41
Fix: Remove timestamp-based processing check
- The timestamp-based check for processed files was unreliable and prone to errors due to potential clock discrepancies.
- This check has been removed, and processing now solely relies on the database status.
2025-03-28 22:12:07 -03:00
1c7fba5f5b
Update database location documentation
- Clarifies the database location paths in README.md.
- Removes redundant "subscleaner" directory name.
2025-03-28 21:28:55 -03:00
0217b0b5a1
Bump project version to 2.0.0 2.0.0 2025-03-28 21:18:32 -03:00
73fdc2e44f
Add database persistence and custom location option
- Adds `--db-location` command-line option for specifying a custom database location.
- Updates documentation to reflect the new database persistence feature.
- Modifies `get_db_path` to accept and use the `--db-location` argument.
- Creates `/data` directory in the Docker container for database persistence.
- Updates README.md to explain database persistence and provide usage examples.
2025-03-28 21:17:54 -03:00
51b0628694
Fixed tests to support database 2025-03-28 20:52:36 -03:00
e8265ca061
Add version, reset-db, and list-patterns arguments
- Adds --version argument to display version information.
- Adds --reset-db argument to clear the database.
- Adds --list-patterns argument to display advertisement patterns.
- Handles version display using importlib.metadata if __version__ is unavailable.
- Adds error handling for database reset operations.
- Improves error message when no subtitle files are provided.
2025-03-28 20:27:06 -03:00
a1e46ff198
Updated README 2025-03-28 20:19:02 -03:00
6885a0c491
Added database cache functionality 2025-03-28 20:18:36 -03:00
518146097e
Add appdirs dependency
- Update pyproject.toml to include appdirs as a dependency.
- Update uv.lock to reflect the new appdirs dependency.
2025-03-28 20:17:02 -03:00
7832a79deb
Bump project version to 1.3.0 1.3.0 2025-03-28 18:53:44 -03:00
76007652ed
Migrate CI to use uv
- Replaces poetry with uv for dependency management.
- Updates linting and testing scripts to use uv.
- Adds build and twine steps for PyPI deployment.
2025-03-28 18:50:31 -03:00
956524367d
Add .aider and coverage files to .gitignore
- Ignore .aider files used by the Aider code assistant.
- Ignore coverage files generated by coverage.py.
2025-03-28 18:50:25 -03:00
785242024b
Moved from poetry to uv 2025-03-28 18:49:54 -03:00
cf619272d3 Merge branch 'fix-special-characters-issue-on-windows' into 'master'
Add support for special characters in filenames

Closes #2

See merge request rogs/subscleaner!2
1.2.0
2025-03-19 15:56:36 -03:00
9d1b6c2342
Fixed linter issues 2025-03-19 15:52:43 -03:00
5f58289e8f
Update version to 1.2.0 in pyproject.toml
Update the version number in pyproject.toml from 1.1.5 to 1.2.0.
2025-03-19 15:50:54 -03:00
e7c4dc16f8
Add support for special characters in filenames
- Added a new function to handle special characters in filenames.
- Modified existing functions to handle special characters in filenames.
- Updated tests to ensure correct behavior with special characters in filenames.
2025-03-19 15:49:38 -03:00
72e2f5afdf
Triggering CI 2024-12-15 13:49:29 -03:00
d5fd6c516b
Update .gitlab-ci.yml deploy_to_dockerhub and deploy_to_gitlab job configurations to be optional 2024-12-15 13:47:05 -03:00
5d93b4695c
Refactor Dockerfile to optimize SUPERCRONIC installation 2024-12-15 13:43:24 -03:00
48b2493797
Update .gitlab-ci.yml to deploy changes in pyproject.toml and Dockerfile 2024-12-06 15:06:57 -03:00
d77b8a580d
Update Docker run command and docker-compose file to add /etc/localtime as a read-only volume 2024-12-06 15:03:52 -03:00
eb9923bec5
Update project version to 1.1.5 in pyproject.toml 1.1.5 2024-12-06 14:52:04 -03:00
36d28a5f1d
Update Docker deployment to include GitLab registry deployment 2024-12-06 14:51:40 -03:00
241255e8cc
Refactor cron job setup and add SuperCronic for scheduling 2024-12-06 14:45:56 -03:00
18be3d63fc
Update package versions and dependencies 2024-12-06 14:45:41 -03:00
4181e952cd
Bumped patch version 1.1.4 2024-08-31 08:19:31 -03:00
d27b3d3436
Added YTS.MX 2024-08-31 08:18:45 -03:00
c15813fb35
Bumped version 2024-06-25 18:13:05 -03:00
9a49a5be2e
Fixed tests 2024-06-25 18:11:40 -03:00
ae0882f4ff
Bumped version 2024-06-25 18:07:47 -03:00
433573ca6f
Added SerieCanal, Nest0r, ikerslot and menoyos to the list 2024-06-25 18:06:22 -03:00
726ddb65a0
Bumped version 1.1.1 2024-03-28 21:14:55 -03:00
4c05db0f9a
Added RARBG 2024-03-28 21:14:28 -03:00
2ebb7125cb
Bumped minor version 1.1.0 2024-03-13 08:41:17 -03:00