GameSentenceMiner 2.8.25__py3-none-any.whl → 2.8.26__py3-none-any.whl
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.
- GameSentenceMiner/ffmpeg.py +3 -3
- {gamesentenceminer-2.8.25.dist-info → gamesentenceminer-2.8.26.dist-info}/METADATA +1 -1
- {gamesentenceminer-2.8.25.dist-info → gamesentenceminer-2.8.26.dist-info}/RECORD +7 -7
- {gamesentenceminer-2.8.25.dist-info → gamesentenceminer-2.8.26.dist-info}/WHEEL +0 -0
- {gamesentenceminer-2.8.25.dist-info → gamesentenceminer-2.8.26.dist-info}/entry_points.txt +0 -0
- {gamesentenceminer-2.8.25.dist-info → gamesentenceminer-2.8.26.dist-info}/licenses/LICENSE +0 -0
- {gamesentenceminer-2.8.25.dist-info → gamesentenceminer-2.8.26.dist-info}/top_level.txt +0 -0
GameSentenceMiner/ffmpeg.py
CHANGED
@@ -70,17 +70,17 @@ def get_screenshot_time(video_path, game_line, default_beginning=False, vad_begi
|
|
70
70
|
# Calculate screenshot time from the beginning by adding the offset
|
71
71
|
if vad_beginning and vad_end and not doing_multi_line:
|
72
72
|
logger.debug("Using VAD to determine screenshot time")
|
73
|
-
screenshot_time_from_beginning = line_timestamp_in_video + vad_end -
|
73
|
+
screenshot_time_from_beginning = line_timestamp_in_video + vad_end - 0.1
|
74
74
|
elif get_config().screenshot.screenshot_timing_setting == "beginning":
|
75
75
|
logger.debug("Using beginning of line for screenshot")
|
76
76
|
screenshot_time_from_beginning = line_timestamp_in_video + screenshot_offset
|
77
77
|
elif get_config().screenshot.screenshot_timing_setting == "middle":
|
78
78
|
if game_line.next:
|
79
79
|
logger.debug("Finding time between lines for screenshot")
|
80
|
-
screenshot_time_from_beginning = line_timestamp_in_video + ((game_line.next.time - game_line.time).total_seconds() / 2)
|
80
|
+
screenshot_time_from_beginning = line_timestamp_in_video + ((game_line.next.time - game_line.time).total_seconds() / 2) + screenshot_offset
|
81
81
|
else:
|
82
82
|
logger.debug("Using end of line for screenshot")
|
83
|
-
screenshot_time_from_beginning = file_length - screenshot_offset
|
83
|
+
screenshot_time_from_beginning = file_length - abs(screenshot_offset)
|
84
84
|
elif get_config().screenshot.screenshot_timing_setting == "end":
|
85
85
|
logger.debug("Using end of line for screenshot")
|
86
86
|
if game_line.next:
|
@@ -3,7 +3,7 @@ GameSentenceMiner/anki.py,sha256=OCLgZa-iEp93v-R0zKFkDCjule_EAoP5rIqtnMHLnOw,142
|
|
3
3
|
GameSentenceMiner/config_gui.py,sha256=R7pUJDXCP7unGtBpuUjL0-8iWvY6LXRCYckHIrwkvF8,74207
|
4
4
|
GameSentenceMiner/configuration.py,sha256=ndnxuQbLfhMruHld-yK3UjWt1DcXlVhaLRZD8l6SJ0E,22562
|
5
5
|
GameSentenceMiner/electron_config.py,sha256=dGcPYCISPehXubYSzsDuI2Gl092MYK0u3bTnkL9Jh1Y,9787
|
6
|
-
GameSentenceMiner/ffmpeg.py,sha256=
|
6
|
+
GameSentenceMiner/ffmpeg.py,sha256=E-iMH8MoHwqyT6137xZ3eL8T74Ld6jWEBLlYXaSjnmM,14674
|
7
7
|
GameSentenceMiner/gametext.py,sha256=VogQDs-VQ4dorqy8uvoklweeS58r3Th_yP-zn36e0u4,5556
|
8
8
|
GameSentenceMiner/gsm.py,sha256=B-84l3mCT4N1jidelXI0N8L9VPVdWcjoYl2NiS_xI_c,25388
|
9
9
|
GameSentenceMiner/model.py,sha256=JdnkT4VoPOXmOpRgFdvERZ09c9wLN6tUJxdrKlGZcqo,5305
|
@@ -51,9 +51,9 @@ GameSentenceMiner/web/static/web-app-manifest-512x512.png,sha256=wyqgCWCrLEUxSRX
|
|
51
51
|
GameSentenceMiner/web/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
52
52
|
GameSentenceMiner/web/templates/text_replacements.html,sha256=tV5c8mCaWSt_vKuUpbdbLAzXZ3ATZeDvQ9PnnAfqY0M,8598
|
53
53
|
GameSentenceMiner/web/templates/utility.html,sha256=NUp4Yjs6_j7YeqsM2rcF0LzwS6nXSBUWJDl-k2E8BbM,16270
|
54
|
-
gamesentenceminer-2.8.
|
55
|
-
gamesentenceminer-2.8.
|
56
|
-
gamesentenceminer-2.8.
|
57
|
-
gamesentenceminer-2.8.
|
58
|
-
gamesentenceminer-2.8.
|
59
|
-
gamesentenceminer-2.8.
|
54
|
+
gamesentenceminer-2.8.26.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
55
|
+
gamesentenceminer-2.8.26.dist-info/METADATA,sha256=VnvxmAuL5qDCJilS2bFldkoFl2vK3XgPjbEykD4AWXA,7165
|
56
|
+
gamesentenceminer-2.8.26.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
57
|
+
gamesentenceminer-2.8.26.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
|
58
|
+
gamesentenceminer-2.8.26.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
|
59
|
+
gamesentenceminer-2.8.26.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|