Coder Social home page Coder Social logo

Comments (7)

palijn avatar palijn commented on June 5, 2024 2

Hi! I looked into this again, i still have no idea - it works perfect in the tests... - do you still have this problem

I have no idea honestly. I got my Takeouts to leave GPhotos forever, so, now I'm basically done with them. There were not so many -modifié files, I simply moved them by hand close to the original file.

You're welcome, I like giving back help.

from googlephotostakeouthelper.

TheLastGimbus avatar TheLastGimbus commented on June 5, 2024

can you show here the names of the jsons that should be found?

i have tests from them like this:

final imgFile6 = File('IMG-20150125-WA0003-modifié.jpg');
final imgFile6_1 = File('IMG-20150125-WA0003-modifié(1).jpg');
final jsonFile6 = File('IMG-20150125-WA0003.jpg.json');

expect(
(await jsonExtractor(imgFile6, tryhard: false))?.millisecondsSinceEpoch,
1422183600 * 1000,
);
expect(
(await jsonExtractor(imgFile6_1, tryhard: false))
?.millisecondsSinceEpoch,
null,
);
expect(
(await jsonExtractor(imgFile6_1, tryhard: true))
?.millisecondsSinceEpoch,
1422183600 * 1000,
);

and they pass 👀

from googlephotostakeouthelper.

palijn avatar palijn commented on June 5, 2024

Mmh, let's have a look :

Takeout/Google Photos/Photos from 2015 % grep IMG-20150118-WA0000-modifié.jpg *.json
Takeout/Google Photos/Photos from 2015 % grep IMG-20150118-WA0000 *.json
IMG-20150118-WA0000.jpg.json: "title": "IMG-20150118-WA0000.jpg",

Takeout/Google Photos/Photos from 2015 % grep IMG-20150101-WA0001-modifié.jpg *.json
Takeout/Google Photos/Photos from 2015 % grep IMG-20150101-WA0001 *.json
IMG-20150101-WA0001.jpg.json: "title": "IMG-20150101-WA0001.jpg",

Is that good for you ?

from googlephotostakeouthelper.

palijn avatar palijn commented on June 5, 2024

If I correctly read your tests, they expect one json file per -modifié jpg.
However, the -modifié jpg do not have their own json files, the only reference to the file is to be found with the filename root in the un-modified json file.

from googlephotostakeouthelper.

TheLastGimbus avatar TheLastGimbus commented on June 5, 2024

Look again - the test are expecting to find the original non-modified file json, as they should

I see you printed their jsons, but could you just show the filenames themselves? As many as you can

from googlephotostakeouthelper.

palijn avatar palijn commented on June 5, 2024

Well, the grep does show the file name before the matching contents, and I grepped every json file in the folder (*.json)…
So, there is only 1 json file that matches, such as IMG-20150118-WA0000.jpg.json or IMG-20150101-WA0001.jpg.json.

from googlephotostakeouthelper.

TheLastGimbus avatar TheLastGimbus commented on June 5, 2024

Hi! I looked into this again, i still have no idea - it works perfect in the tests... - do you still have this problem

ps. again big thanks for the help you give people around here <3

from googlephotostakeouthelper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.