mkv-episode-matcher 0.1.3__py3-none-any.whl → 0.1.5__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.
Potentially problematic release.
This version of mkv-episode-matcher might be problematic. Click here for more details.
- mkv_episode_matcher/__init__.py +1 -1
- mkv_episode_matcher/__main__.py +10 -8
- mkv_episode_matcher/mkv_to_srt.py +2 -7
- {mkv_episode_matcher-0.1.3.dist-info → mkv_episode_matcher-0.1.5.dist-info}/METADATA +1 -1
- {mkv_episode_matcher-0.1.3.dist-info → mkv_episode_matcher-0.1.5.dist-info}/RECORD +7 -7
- {mkv_episode_matcher-0.1.3.dist-info → mkv_episode_matcher-0.1.5.dist-info}/WHEEL +0 -0
- {mkv_episode_matcher-0.1.3.dist-info → mkv_episode_matcher-0.1.5.dist-info}/entry_points.txt +0 -0
mkv_episode_matcher/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
version = "0.1.
|
|
1
|
+
version = "0.1.5"
|
mkv_episode_matcher/__main__.py
CHANGED
|
@@ -9,15 +9,7 @@ from .config import get_config, set_config
|
|
|
9
9
|
# Log the start of the application
|
|
10
10
|
logger.info("Starting the application")
|
|
11
11
|
|
|
12
|
-
# Check if logs directory exists, if not create it
|
|
13
|
-
if not os.path.exists('./logs'):
|
|
14
|
-
os.mkdir('./logs')
|
|
15
12
|
|
|
16
|
-
# Add a new handler for stdout logs
|
|
17
|
-
logger.add("./logs/file_stdout.log", format="{time} {level} {message}", level="DEBUG", rotation="10 MB")
|
|
18
|
-
|
|
19
|
-
# Add a new handler for error logs
|
|
20
|
-
logger.add("./logs/file_errors.log", level="ERROR", rotation="10 MB")
|
|
21
13
|
|
|
22
14
|
# Check if the configuration directory exists, if not create it
|
|
23
15
|
if not os.path.exists(os.path.join(os.path.expanduser("~"), ".mkv-episode-matcher")):
|
|
@@ -33,6 +25,16 @@ CACHE_DIR = os.path.join(os.path.expanduser("~"), ".mkv-episode-matcher", "cache
|
|
|
33
25
|
if not os.path.exists(CACHE_DIR):
|
|
34
26
|
os.makedirs(CACHE_DIR)
|
|
35
27
|
|
|
28
|
+
# Check if logs directory exists, if not create it
|
|
29
|
+
log_dir = os.path.join(os.path.expanduser("~"), ".mkv-episode-matcher", "logs")
|
|
30
|
+
if not os.path.exists(log_dir):
|
|
31
|
+
os.mkdir(log_dir)
|
|
32
|
+
|
|
33
|
+
# Add a new handler for stdout logs
|
|
34
|
+
logger.add(os.path.join(log_dir,"stdout.log"), format="{time} {level} {message}", level="DEBUG", rotation="10 MB")
|
|
35
|
+
|
|
36
|
+
# Add a new handler for error logs
|
|
37
|
+
logger.add(os.path.join(log_dir,"stderr.log"), level="ERROR", rotation="10 MB")
|
|
36
38
|
|
|
37
39
|
@logger.catch
|
|
38
40
|
def main():
|
|
@@ -4,13 +4,8 @@ import sys
|
|
|
4
4
|
|
|
5
5
|
# Get the absolute path of the parent directory of the current script.
|
|
6
6
|
parent_dir = os.path.dirname(os.path.abspath(__file__))
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
sys.path.append(parent_dir)
|
|
10
|
-
# Add the 'libraries' directory to the Python path.
|
|
11
|
-
sys.path.append(os.path.join(parent_dir, "libraries"))
|
|
12
|
-
# Add the 'libraries' directory to the Python path.
|
|
13
|
-
sys.path.append(os.path.join(parent_dir, "..", "libraries", "pgs2srt"))
|
|
7
|
+
# Add the 'pgs2srt' directory to the Python path.
|
|
8
|
+
sys.path.append(os.path.join(parent_dir, "libraries", "pgs2srt"))
|
|
14
9
|
import re
|
|
15
10
|
from concurrent.futures import ThreadPoolExecutor
|
|
16
11
|
from datetime import datetime, timedelta
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: mkv-episode-matcher
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.5
|
|
4
4
|
Summary: The MKV Episode Matcher is a tool for identifying TV series episodes from MKV files and renaming the files accordingly.
|
|
5
5
|
Project-URL: Documentation, https://github.com/Jsakkos/mkv-episode-matcher#readme
|
|
6
6
|
Project-URL: Issues, https://github.com/Jsakkos/mkv-episode-matcher/issues
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
mkv_episode_matcher/.gitattributes,sha256=Gh2-F2vCM7SZ01pX23UT8pQcmauXWfF3gwyRSb6ZAFs,66
|
|
2
|
-
mkv_episode_matcher/__init__.py,sha256=
|
|
3
|
-
mkv_episode_matcher/__main__.py,sha256=
|
|
2
|
+
mkv_episode_matcher/__init__.py,sha256=xLawNVQK5wa-DyEmz0-24t2gXaNwHIMeNPRnAbaLW3I,19
|
|
3
|
+
mkv_episode_matcher/__main__.py,sha256=4UtBHc6peDqHmronr4DnRtE_23wHJvkfGpkChpfml-8,6771
|
|
4
4
|
mkv_episode_matcher/config.py,sha256=zDDKBcsDt5fME9BRqiTi7yWKeast1pZh36BNYMvIBYM,2419
|
|
5
5
|
mkv_episode_matcher/episode_matcher.py,sha256=UBT53tiC0xryl9k9XXoRUY1-08u5DH-NcwnmD-MSWG8,8914
|
|
6
|
-
mkv_episode_matcher/mkv_to_srt.py,sha256=
|
|
6
|
+
mkv_episode_matcher/mkv_to_srt.py,sha256=r7l4WD6XySuRusNKYStDsTHINj3lO_LoqncN39muek0,6266
|
|
7
7
|
mkv_episode_matcher/requirements.txt,sha256=0JLuUm69lLp8anUgtW48CuULZ_lSwd-1XL3eoShVWjI,93
|
|
8
8
|
mkv_episode_matcher/tmdb_client.py,sha256=LbMCgjmp7sCbrQo_CDlpcnryKPz5S7inE24YY9Pyjk4,4172
|
|
9
9
|
mkv_episode_matcher/utils.py,sha256=UMygaE4ZUvV9BRyXxmgfd1g06-0pk1eGlM56NzfgjYM,9305
|
|
@@ -18,7 +18,7 @@ mkv_episode_matcher/libraries/pgs2srt/requirements.txt,sha256=pfVCz2C3a0Fn98iRCZ
|
|
|
18
18
|
mkv_episode_matcher/libraries/pgs2srt/Libraries/SubZero/SubZero.py,sha256=-7ZiNeqrS7beaBKRvxnPqN6cjRttKmpu9EyEgIyk4wc,10164
|
|
19
19
|
mkv_episode_matcher/libraries/pgs2srt/Libraries/SubZero/post_processing.py,sha256=Zdcs6ESTOy49h19Brol__EhBvx2fBWj-6iKhuKoTwGM,9957
|
|
20
20
|
mkv_episode_matcher/libraries/pgs2srt/Libraries/SubZero/dictionaries/data.py,sha256=n71bu8s0BXldXTFl1s0EpNHaGJfeanNagKYOLDASViQ,676829
|
|
21
|
-
mkv_episode_matcher-0.1.
|
|
22
|
-
mkv_episode_matcher-0.1.
|
|
23
|
-
mkv_episode_matcher-0.1.
|
|
24
|
-
mkv_episode_matcher-0.1.
|
|
21
|
+
mkv_episode_matcher-0.1.5.dist-info/METADATA,sha256=1a2voX0pgRAlaQP0U0jEXtZRM4LY82Fb-Bqk7zPF-U4,4351
|
|
22
|
+
mkv_episode_matcher-0.1.5.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
|
|
23
|
+
mkv_episode_matcher-0.1.5.dist-info/entry_points.txt,sha256=IglJ43SuCZq2eQ3shMFILCkmQASJHnDCI3ogohW2Hn4,64
|
|
24
|
+
mkv_episode_matcher-0.1.5.dist-info/RECORD,,
|
|
File without changes
|
{mkv_episode_matcher-0.1.3.dist-info → mkv_episode_matcher-0.1.5.dist-info}/entry_points.txt
RENAMED
|
File without changes
|