eaf-base-api 1.5__tar.gz → 1.6__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.
- {eaf_base_api-1.5 → eaf_base_api-1.6}/PKG-INFO +1 -1
- {eaf_base_api-1.5 → eaf_base_api-1.6}/base_api/base.py +16 -1
- {eaf_base_api-1.5 → eaf_base_api-1.6}/eaf_base_api.egg-info/PKG-INFO +1 -1
- {eaf_base_api-1.5 → eaf_base_api-1.6}/setup.py +1 -1
- {eaf_base_api-1.5 → eaf_base_api-1.6}/README.md +0 -0
- {eaf_base_api-1.5 → eaf_base_api-1.6}/base_api/__init__.py +0 -0
- {eaf_base_api-1.5 → eaf_base_api-1.6}/base_api/modules/__init__.py +0 -0
- {eaf_base_api-1.5 → eaf_base_api-1.6}/base_api/modules/consts.py +0 -0
- {eaf_base_api-1.5 → eaf_base_api-1.6}/base_api/modules/download.py +0 -0
- {eaf_base_api-1.5 → eaf_base_api-1.6}/base_api/modules/progress_bars.py +0 -0
- {eaf_base_api-1.5 → eaf_base_api-1.6}/base_api/modules/quality.py +0 -0
- {eaf_base_api-1.5 → eaf_base_api-1.6}/eaf_base_api.egg-info/SOURCES.txt +0 -0
- {eaf_base_api-1.5 → eaf_base_api-1.6}/eaf_base_api.egg-info/dependency_links.txt +0 -0
- {eaf_base_api-1.5 → eaf_base_api-1.6}/eaf_base_api.egg-info/requires.txt +0 -0
- {eaf_base_api-1.5 → eaf_base_api-1.6}/eaf_base_api.egg-info/top_level.txt +0 -0
- {eaf_base_api-1.5 → eaf_base_api-1.6}/setup.cfg +0 -0
|
@@ -2,6 +2,7 @@ import requests
|
|
|
2
2
|
import logging
|
|
3
3
|
import time
|
|
4
4
|
import string
|
|
5
|
+
import os
|
|
5
6
|
|
|
6
7
|
from base_api.modules.quality import Quality
|
|
7
8
|
from base_api.modules.progress_bars import Callback
|
|
@@ -151,4 +152,18 @@ class Core:
|
|
|
151
152
|
"""
|
|
152
153
|
illegal_chars = '<>:"/\\|?*'
|
|
153
154
|
cleaned_title = ''.join([char for char in title if char in string.printable and char not in illegal_chars])
|
|
154
|
-
return cleaned_title
|
|
155
|
+
return cleaned_title
|
|
156
|
+
|
|
157
|
+
@classmethod
|
|
158
|
+
def return_path(cls, video, args):
|
|
159
|
+
path = args.output
|
|
160
|
+
if args.use_title:
|
|
161
|
+
if not str(path).endswith(os.sep):
|
|
162
|
+
path += os.sep
|
|
163
|
+
|
|
164
|
+
path += video.title + ".mp4"
|
|
165
|
+
|
|
166
|
+
else:
|
|
167
|
+
path = args.output
|
|
168
|
+
|
|
169
|
+
return path
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|