From 40ada7cdf1ff0502a4b86f707016651f02fbbe44 Mon Sep 17 00:00:00 2001 From: Loudrob Date: Fri, 13 Mar 2015 20:33:54 -0400 Subject: [PATCH] Fix screenshot name detection. --- toontown/shtiker/PhotoAlbumPage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toontown/shtiker/PhotoAlbumPage.py b/toontown/shtiker/PhotoAlbumPage.py index 074e4539..bdb93d32 100644 --- a/toontown/shtiker/PhotoAlbumPage.py +++ b/toontown/shtiker/PhotoAlbumPage.py @@ -121,7 +121,7 @@ class PhotoAlbumPage(ShtikerPage.ShtikerPage): oldName = self.selectedFileName numUnders = oldName.count(separator) if numUnders == 0: - newName = oldName[0:21] + separator + str + separator + oldName[20:] + newName = oldName[0:18] + separator + str + separator + oldName[17:] elif numUnders == 2: sp = oldName.split(separator) newName = sp[0] + separator + str + separator + sp[2] @@ -232,7 +232,7 @@ class PhotoAlbumPage(ShtikerPage.ShtikerPage): files = os.listdir(self.photoPath) photos = [] for fileName in files: - if fileName[0:20] == 'united-screenshot' and fileName[-4:] == '.jpg': + if fileName[0:17] == 'united-screenshot' and fileName[-4:] == '.jpg': photos.append(fileName) return photos