diff --git a/changelog b/changelog index 8dcbb00..4012c65 100644 --- a/changelog +++ b/changelog @@ -111,4 +111,5 @@ v0.2.6: - Fixed scroll to top button not animating out - Fixed scroll to top button being ontop of filters menu - Fixed photo ordering - - Fixed automatic updates \ No newline at end of file + - Fixed automatic updates + - Fixed broken legacy named photos \ No newline at end of file diff --git a/src/Components/Structs/Photo.ts b/src/Components/Structs/Photo.ts index cca0881..4b03eb9 100644 --- a/src/Components/Structs/Photo.ts +++ b/src/Components/Structs/Photo.ts @@ -62,7 +62,11 @@ export class Photo{ this.date.setMinutes(parseInt(splitTimeString[1])); this.date.setSeconds(parseInt(splitTimeString[2])); - let resSplit = split[3].split('x'); + let resSplit; + if(this.legacy) + resSplit = split[0].split('x') + else + resSplit = split[3].split('x') let width = parseInt(resSplit[0]); let height = parseInt(resSplit[1]);