mkv-episode-matcher 0.1.4__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.

@@ -1 +1 @@
1
- version = "0.1.4"
1
+ version = "0.1.5"
@@ -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():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: mkv-episode-matcher
3
- Version: 0.1.4
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,6 +1,6 @@
1
1
  mkv_episode_matcher/.gitattributes,sha256=Gh2-F2vCM7SZ01pX23UT8pQcmauXWfF3gwyRSb6ZAFs,66
2
- mkv_episode_matcher/__init__.py,sha256=7OebbR9ptXEJ-La95bk1Pl5FALlPEv5hER0ClOKCl_o,19
3
- mkv_episode_matcher/__main__.py,sha256=UW2-p_vhGCSlimKdVlpf-5mRR5_VIbIuZXB_Q9RXNGA,6672
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
6
  mkv_episode_matcher/mkv_to_srt.py,sha256=r7l4WD6XySuRusNKYStDsTHINj3lO_LoqncN39muek0,6266
@@ -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.4.dist-info/METADATA,sha256=izvBJO-INhIOdzOSfVfn3c1kUfkAjFyib-f-n0NGUyo,4351
22
- mkv_episode_matcher-0.1.4.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
23
- mkv_episode_matcher-0.1.4.dist-info/entry_points.txt,sha256=IglJ43SuCZq2eQ3shMFILCkmQASJHnDCI3ogohW2Hn4,64
24
- mkv_episode_matcher-0.1.4.dist-info/RECORD,,
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,,