From f776d39546ff4f6752a8ba0a1963e02c3607ed05 Mon Sep 17 00:00:00 2001 From: Volker Krause Date: Thu, 1 Jul 2021 17:05:25 +0200 Subject: Number screenshots in the same way the fastlane tool does this This considerably simplifies comparing our data with that retrieved from Google Play for automatically syncing metadata. --- toolchain/generate-fastlane-metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolchain/generate-fastlane-metadata.py b/toolchain/generate-fastlane-metadata.py index 78c4271d..40059f0e 100755 --- a/toolchain/generate-fastlane-metadata.py +++ b/toolchain/generate-fastlane-metadata.py @@ -246,7 +246,7 @@ def downloadScreenshots(applicationName, data): path = os.path.join(arguments.output, 'metadata', applicationName, 'en-US', 'images', 'phoneScreenshots') os.makedirs(path, exist_ok=True) - i = 0 + i = 1 # number screenshots starting at 1 rather than 0 to match what the fastlane tool does for screenshot in data['screenshots']: fileName = str(i) + '-' + screenshot[screenshot.rindex('/') + 1:] r = requests.get(screenshot) -- cgit v1.2.1