eaf-base-api 1.1__tar.gz → 1.3__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: eaf_base_api
3
- Version: 1.1
3
+ Version: 1.3
4
4
  Summary: A base API for EchterAlsFake's Porn APIs
5
5
  Home-page: https://github.com/EchterAlsFake/eaf_base_api
6
6
  Author: Johannes Habel
@@ -1,6 +1,7 @@
1
1
  import requests
2
2
  import logging
3
3
  import time
4
+ import string
4
5
 
5
6
  from base_api.modules.quality import Quality
6
7
  from base_api.modules.progress_bars import Callback
@@ -88,12 +89,12 @@ class Core:
88
89
 
89
90
  return self.quality_url_map.get(selected_quality)
90
91
 
91
- def download(self, video, quality, downloader, output_path, callback=None):
92
+ def download(self, video, quality, downloader, path, callback=None):
92
93
  """
93
94
  :param callback:
94
95
  :param downloader:
95
96
  :param quality:
96
- :param output_path:
97
+ :param path:
97
98
  :return:
98
99
  """
99
100
  quality = self.fix_quality(quality)
@@ -102,14 +103,14 @@ class Core:
102
103
  callback = Callback.text_progress_bar
103
104
 
104
105
  if downloader == default or str(downloader) == "default":
105
- default(video=video, quality=quality, path=output_path, callback=callback)
106
+ default(video=video, quality=quality, path=path, callback=callback)
106
107
 
107
108
  elif downloader == threaded or str(downloader) == "threaded":
108
109
  threaded_download = threaded(max_workers=20, timeout=10)
109
- threaded_download(video=video, quality=quality, path=output_path, callback=callback)
110
+ threaded_download(video=video, quality=quality, path=path, callback=callback)
110
111
 
111
112
  elif downloader == FFMPEG or str(downloader) == "FFMPEG":
112
- FFMPEG(video=video, quality=quality, path=output_path, callback=callback)
113
+ FFMPEG(video=video, quality=quality, path=path, callback=callback)
113
114
 
114
115
  @classmethod
115
116
  def correct_path(cls, path):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: eaf_base_api
3
- Version: 1.1
3
+ Version: 1.3
4
4
  Summary: A base API for EchterAlsFake's Porn APIs
5
5
  Home-page: https://github.com/EchterAlsFake/eaf_base_api
6
6
  Author: Johannes Habel
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="eaf_base_api",
5
- version="1.1",
5
+ version="1.3",
6
6
  packages=find_packages(),
7
7
  install_requires=[
8
8
  "requests", "ffmpeg-progress-yield"
File without changes
File without changes