clinton 0.0.4__tar.gz → 0.0.5__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.
- {clinton-0.0.4 → clinton-0.0.5}/Clinton/__init__.py +1 -1
- {clinton-0.0.4 → clinton-0.0.5}/Clinton/functions/function02.py +6 -5
- {clinton-0.0.4/clinton.egg-info → clinton-0.0.5}/PKG-INFO +1 -1
- {clinton-0.0.4 → clinton-0.0.5/clinton.egg-info}/PKG-INFO +1 -1
- {clinton-0.0.4 → clinton-0.0.5}/Clinton/functions/__init__.py +0 -0
- {clinton-0.0.4 → clinton-0.0.5}/Clinton/functions/collections.py +0 -0
- {clinton-0.0.4 → clinton-0.0.5}/Clinton/functions/function01.py +0 -0
- {clinton-0.0.4 → clinton-0.0.5}/Clinton/scripts/__init__.py +0 -0
- {clinton-0.0.4 → clinton-0.0.5}/Clinton/scripts/script01.py +0 -0
- {clinton-0.0.4 → clinton-0.0.5}/Clinton/scripts/script02.py +0 -0
- {clinton-0.0.4 → clinton-0.0.5}/Clinton/scripts/script05.py +0 -0
- {clinton-0.0.4 → clinton-0.0.5}/LICENSE +0 -0
- {clinton-0.0.4 → clinton-0.0.5}/README.md +0 -0
- {clinton-0.0.4 → clinton-0.0.5}/clinton.egg-info/SOURCES.txt +0 -0
- {clinton-0.0.4 → clinton-0.0.5}/clinton.egg-info/dependency_links.txt +0 -0
- {clinton-0.0.4 → clinton-0.0.5}/clinton.egg-info/requires.txt +0 -0
- {clinton-0.0.4 → clinton-0.0.5}/clinton.egg-info/top_level.txt +0 -0
- {clinton-0.0.4 → clinton-0.0.5}/setup.cfg +0 -0
- {clinton-0.0.4 → clinton-0.0.5}/setup.py +0 -0
|
@@ -44,17 +44,18 @@ class Media:
|
|
|
44
44
|
|
|
45
45
|
#====================================================================================================
|
|
46
46
|
|
|
47
|
-
async def screenshot(file, location, duration, extension=Scripted.DATA11):
|
|
47
|
+
async def screenshot(file, location, duration, logs=True, extension=Scripted.DATA11):
|
|
48
48
|
try:
|
|
49
49
|
output = location + str(round(time.time())) + extension
|
|
50
50
|
ffmpeg.input(file, ss=duration).output(output, vframes=1).run(quiet=True)
|
|
51
51
|
ouoing = output if os.path.lexists(output) else None
|
|
52
52
|
return ouoing
|
|
53
53
|
except ffmpeg.Error as errors:
|
|
54
|
-
|
|
54
|
+
moonus = str(errors.stderr.decode('utf-8'))
|
|
55
|
+
print(moonus) if logs else Scripted.DATA01
|
|
55
56
|
return None
|
|
56
57
|
except Exception as errors:
|
|
57
|
-
print(errors)
|
|
58
|
+
print(errors) if logs else Scripted.DATA01
|
|
58
59
|
return None
|
|
59
60
|
|
|
60
61
|
#====================================================================================================
|
|
@@ -63,10 +64,10 @@ class Media:
|
|
|
63
64
|
imageess = images if images else []
|
|
64
65
|
if duration < durations:
|
|
65
66
|
return imageess
|
|
66
|
-
interval = await
|
|
67
|
+
interval = await Media.interval(durations, duration, numbers)
|
|
67
68
|
for looper in range(numbers):
|
|
68
69
|
valuesom = interval[0]
|
|
69
|
-
imagesve = await
|
|
70
|
+
imagesve = await Media.screenshot(file, location, valuesom)
|
|
70
71
|
if imagesve == None:
|
|
71
72
|
continue
|
|
72
73
|
imageess.append(imagesve)
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|