jmcomic 0.4.7__tar.gz → 0.4.9__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: jmcomic
3
- Version: 0.4.7
3
+ Version: 0.4.9
4
4
  Summary: Python API For JMComic (禁漫天堂)
5
5
  Home-page: https://github.com/hect0x7/JMComic-Crawler-Python
6
6
  Author: hect0x7
@@ -168,6 +168,7 @@ def create_option(filepath: str) -> JmOption:
168
168
  """
169
169
  option = JmOption.create_from_file(filepath)
170
170
  client_config = option.client_config
171
- if client_config.get('domain', None) is None or client_config['domain'] is None:
172
- client_config['doamin'] = renew_jm_default_domain()
171
+ key = 'domain'
172
+ if client_config.get(key, None) is None or client_config[key] is None:
173
+ client_config[key] = renew_jm_default_domain()
173
174
  return option
@@ -274,7 +274,7 @@ class JmSearchPage(IterableEntity):
274
274
  # (album_id, title, category_none, label_sub_none, tag_list)
275
275
  self.data: List[Tuple[str, str, StrNone, StrNone, List[str]]] = album_info_list
276
276
 
277
- def album_id_iter(self) -> Iterable[str]:
277
+ def album_id_iter(self):
278
278
  for album_info in self.data:
279
279
  yield album_info[0]
280
280
 
@@ -60,6 +60,7 @@ class DownloadDirTree:
60
60
  if album_dir is None:
61
61
  return f'{self.Bd}{photo_dir}/'
62
62
 
63
+ album_dir = fix_windir_name(album_dir)
63
64
  return f'{self.Bd}{album_dir}/{photo_dir}/'
64
65
 
65
66
  def photo_dir(flag_for_title):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: jmcomic
3
- Version: 0.4.7
3
+ Version: 0.4.9
4
4
  Summary: Python API For JMComic (禁漫天堂)
5
5
  Home-page: https://github.com/hect0x7/JMComic-Crawler-Python
6
6
  Author: hect0x7
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
3
3
  with open("README.md") as f:
4
4
  long_description = f.read()
5
5
 
6
- version = '0.4.7'
6
+ version = '0.4.9'
7
7
 
8
8
  setup(
9
9
  name='jmcomic',
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes