srcalchemy 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- srcalchemy/__init__.py +48 -0
- srcalchemy/__main__.py +36 -0
- srcalchemy/_version.py +1 -0
- srcalchemy/collector/__init__.py +63 -0
- srcalchemy/collector/collector.py +503 -0
- srcalchemy/config/__init__.py +53 -0
- srcalchemy/config/config_dump.py +171 -0
- srcalchemy/config/config_load.py +278 -0
- srcalchemy/process/__init__.py +46 -0
- srcalchemy/process/process.py +346 -0
- srcalchemy/py.typed +0 -0
- srcalchemy/srcalchemy.py +358 -0
- srcalchemy-0.2.0.dist-info/METADATA +105 -0
- srcalchemy-0.2.0.dist-info/RECORD +17 -0
- srcalchemy-0.2.0.dist-info/WHEEL +4 -0
- srcalchemy-0.2.0.dist-info/entry_points.txt +2 -0
- srcalchemy-0.2.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: srcalchemy
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Project-URL: Homepage, https://gitlab.com/thedrunkencoder/srcalchemy
|
|
5
|
+
Project-URL: Repository, https://gitlab.com/thedrunkencoder/srcalchemy
|
|
6
|
+
Project-URL: Issues, https://gitlab.com/thedrunkencoder/srcalchemy/-/issues
|
|
7
|
+
Project-URL: Changelog, https://gitlab.com/thedrunkencoder/srcalchemy/-/blob/main/CHANGELOG.md?ref_type=heads
|
|
8
|
+
Project-URL: Documentation, https://gitlab.com/thedrunkencoder/srcalchemy
|
|
9
|
+
Author-email: Duncan Fraser <dfraser@thedrunkencoder.uk>
|
|
10
|
+
License-Expression: MIT
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Natural Language :: English
|
|
14
|
+
Classifier: Topic :: Utilities
|
|
15
|
+
Classifier: Typing :: Typed
|
|
16
|
+
Requires-Python: >=3.11
|
|
17
|
+
Requires-Dist: alive-progress>=3.3.0
|
|
18
|
+
Requires-Dist: requests==2.32.3
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
|
|
21
|
+
[](https://gitlab.com/thedrunkencoder/srcalchemy/)
|
|
22
|
+
|
|
23
|
+
[](https://gitlab.com/thedrunkencoder/srcalchemy/-/releases)
|
|
24
|
+
[](https://gitlab.com/thedrunkencoder/srcalchemy/-/commits/main)
|
|
25
|
+
[](https://gitlab.com/thedrunkencoder/srcalchemy/-/commits/main)
|
|
26
|
+
[](https://gitlab.com/thedrunkencoder/srcalchemy/-/blob/main/LICENSE?ref_type=heads)
|
|
27
|
+
[](https://github.com/astral-sh/ruff)
|
|
28
|
+
[](https://pypi.org/project/srcalchemy/)
|
|
29
|
+
|
|
30
|
+
Utility for renaming video files from a kodi library.
|
|
31
|
+
|
|
32
|
+
Over the years of ripping my DVD collection into Kodi, I have not had the best practices with the naming of the files.
|
|
33
|
+
Leading to a mess of naming schemes having files that will not parse and have had to manually update the information in Kodi.
|
|
34
|
+
|
|
35
|
+
Now with looking to update my home media setup and not having enough will power to manually update all of my collection. Here we are
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
# Installation and usage
|
|
39
|
+
## Installation
|
|
40
|
+
|
|
41
|
+
**srcalchemy** can be installed by running `pip install srcalchemy`, It requires Python 3.11+ to run.
|
|
42
|
+
|
|
43
|
+
If you want the latest changes and want to install from Gitlab, use `pip install git+https://gitlab.com/thedrunkencoder/srcalchemy`
|
|
44
|
+
|
|
45
|
+
## Usage
|
|
46
|
+
|
|
47
|
+
To get started generate a configuration file
|
|
48
|
+
```bash
|
|
49
|
+
srcalchemy init
|
|
50
|
+
```
|
|
51
|
+
You can also run *srcalchemy* as a package if running as a script doesn't work
|
|
52
|
+
```bash
|
|
53
|
+
python3 -m srcalchemy init
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
After updating the generated configuration file. Collect all the information from Kodi
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
srcalchemy collect
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Perform the rename
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
srcalchemy rename
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Once all is done, you can delete the left over folders
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
srcalchemy clean
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Configuration
|
|
75
|
+
|
|
76
|
+
All configuration is provided via a TOML configuration file.
|
|
77
|
+
|
|
78
|
+
All the commands support providing the configuration file rather than loading the default location
|
|
79
|
+
```bash
|
|
80
|
+
srcalchemy -c other_config.ini init
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
# Future Ideas
|
|
84
|
+
|
|
85
|
+
Some idea that have been floating around in my head since starting to properly work on this project. That may or may not end up being integrated in.
|
|
86
|
+
|
|
87
|
+
## Support for other media servers
|
|
88
|
+
|
|
89
|
+
Getting support for other media server such as [Plex](https://www.plex.tv/) and [JellyFin](https://jellyfin.org/), as this issue is not limited to Kodi.
|
|
90
|
+
This will most likely require a rewrite of the collector module to parse the APIs and parse the data into the correct format.
|
|
91
|
+
|
|
92
|
+
## Integration with metadata providers
|
|
93
|
+
|
|
94
|
+
Collecting information from metadata providers such as TheTVDb to either expand on the options for naming media.
|
|
95
|
+
Or rather than collecting the data from Kodi, attempting to parse from these databases so that the project could be used as the last step in a ripping/transcoding pipeline.
|
|
96
|
+
|
|
97
|
+
# Contributing
|
|
98
|
+
|
|
99
|
+
Please feel free to open issues and merge requests if you encounter and issue or just want to help improve this project.
|
|
100
|
+
|
|
101
|
+
# Disclaimer
|
|
102
|
+
|
|
103
|
+
**srcalchemy** is an independent, open-source utility developed for community use. It is not officially affiliated with, endorsed by, sponsored by, or representative of the XBMC Foundation, Kodi, Jellyfin, or any other media server platforms or entities mentioned herein.
|
|
104
|
+
|
|
105
|
+
All product names, logos, trademarks, and registered trademarks are property of their respective owners. The use of these names and trademarks within this project is solely for the purpose of identifying compatibility and describing the tool's functionality.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
srcalchemy/__init__.py,sha256=-K5Msr6CLp7WhUj1S2cotd-uEjfTykWh45Uxx-82AbM,1934
|
|
2
|
+
srcalchemy/__main__.py,sha256=UasZL9v6ZmjZIZa3zYu4BoITh-paSum5E-4beIpPU4I,1539
|
|
3
|
+
srcalchemy/_version.py,sha256=Zn1KFblwuFHiDRdRAiRnDBRkbPttWh44jKa5zG2ov0E,22
|
|
4
|
+
srcalchemy/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
srcalchemy/srcalchemy.py,sha256=-s60jt3ZYm1kwEDZ9dFWDI8KiCcUxj-Tkr4q2kqfHdw,11913
|
|
6
|
+
srcalchemy/collector/__init__.py,sha256=rOjsqy8QvtCamGphFSKp4rH7V0xXIlCEiKvQjJFkngc,2042
|
|
7
|
+
srcalchemy/collector/collector.py,sha256=Wsqyu4RSwgFEn8xotSjXnNqDd9lK7mCosDLDikMXRAE,14037
|
|
8
|
+
srcalchemy/config/__init__.py,sha256=KKnQDhb-05BNievOx0dHD6gj_q54P02Uy89ERtNtizk,1846
|
|
9
|
+
srcalchemy/config/config_dump.py,sha256=oATYddnyDMAjVPFtpi_CXhtlZ_JrbebrFBwbhPZ_jig,5344
|
|
10
|
+
srcalchemy/config/config_load.py,sha256=n5Z8fAw3proMIA5qX45Aueee81QwKGm03EiebT_idaA,7964
|
|
11
|
+
srcalchemy/process/__init__.py,sha256=qpC3KFN9ehXeSUogKIq4KkZr76vx46sVXSS-elivNHw,1763
|
|
12
|
+
srcalchemy/process/process.py,sha256=2WdAYaU7ndyFUxnE41YskiKid1_LcKI8XpzveS1_URA,10866
|
|
13
|
+
srcalchemy-0.2.0.dist-info/METADATA,sha256=B5YwITHWXCRjqdUF86FxGcEPnLIjUeBo7PWR649T-CA,4871
|
|
14
|
+
srcalchemy-0.2.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
15
|
+
srcalchemy-0.2.0.dist-info/entry_points.txt,sha256=1HDUUTzHO-eP-PoTeywhUK_-KOJiGW_4aU71llBf8wY,47
|
|
16
|
+
srcalchemy-0.2.0.dist-info/licenses/LICENSE,sha256=vtMLTACbmvPecWShoGiWyxl5CmwJkchUoMycI5iIZYE,1070
|
|
17
|
+
srcalchemy-0.2.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Duncan Fraser
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|