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.
@@ -1,6 +1,6 @@
1
1
  builded = "20.08.2024"
2
2
  appname = "clinton"
3
- version = "0.0.4"
3
+ version = "0.0.5"
4
4
 
5
5
 
6
6
  install = ["aiohttp",
@@ -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
- print(errors)
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 Video.interval(durations, duration, numbers)
67
+ interval = await Media.interval(durations, duration, numbers)
67
68
  for looper in range(numbers):
68
69
  valuesom = interval[0]
69
- imagesve = await Video.screenshot(file, location, valuesom)
70
+ imagesve = await Media.screenshot(file, location, valuesom)
70
71
  if imagesve == None:
71
72
  continue
72
73
  imageess.append(imagesve)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: clinton
3
- Version: 0.0.4
3
+ Version: 0.0.5
4
4
  Summary: ㅤ
5
5
  Home-page: https://github.com/Clinton-Abraham
6
6
  Author: Clinton-Abraham
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: clinton
3
- Version: 0.0.4
3
+ Version: 0.0.5
4
4
  Summary: ㅤ
5
5
  Home-page: https://github.com/Clinton-Abraham
6
6
  Author: Clinton-Abraham
File without changes
File without changes
File without changes
File without changes