Created
September 9, 2024 13:27
-
-
Save louisroyer/9cbfa12d8c95f53d0ef138bfb276dc35 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
for filename in os.listdir('.'): | |
with open(filename, 'r', encoding='utf8') as f: | |
playresx = None | |
playresy = None | |
size = [] | |
for line in f: | |
if line.startswith('PlayResX: '): | |
playresx = line.split('PlayResX: ')[1].strip() | |
elif line.startswith('PlayResY: '): | |
playresy = line.split('PlayResY: ')[1].strip() | |
elif line.startswith('Style: ') and not 'furigana' in line: | |
size.append(line.split(',')[2].strip()) | |
#if playresx != '0' and playresx is not None and playresy != '0' and playresy is not None: | |
# print(f'{filename}: [PlayResX: {playresx}, PlayResY: {playresy}], size {size}') | |
#if playresx == '1920' and '24' in size: | |
# print(filename) | |
#if playresx == '1280' and '24' in size: | |
# print(filename) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment