Coder Social home page Coder Social logo

Comments (5)

TheLastGimbus avatar TheLastGimbus commented on June 5, 2024

is the -edited file excatly, checksum same as original file? if not, then gpth is doing a good job 😌

or at least have a menu option to maintain it?

you mean you would want --skip-extras option

https://github.com/TheLastGimbus/GooglePhotosTakeoutHelper/blob/ac0a26db7e14772fda39732dbf4f8645a6bd19b6/bin/gpth.dart#L34C3-L34C3

to be added back? it allowed removing the -edited stuff

tho i don't think it's that needed, since you can just ctrl+f, "-edited", select all and delete, in your file manager πŸ‘

from googlephotostakeouthelper.

jonno85 avatar jonno85 commented on June 5, 2024

thanks @TheLastGimbus for the quick answer.
Yes the checksum is different and I guess the metadata are merged into the file. My need is, considering that you want to drag the output folder into Synology, then I need to avoid the original file, otherwise it will show duplicated pictures. Unfortunately, Mac Finder doesn't allow me to negate the search and easily remove all the original not -edited files.
Is it more clear?

from googlephotostakeouthelper.

TheLastGimbus avatar TheLastGimbus commented on June 5, 2024

Ahhh, i see your issue now

by "being checksum different", i wanted to point that those are not two same photos - one is the original and one is edited

i see why you would want to delete non-edited one... hmm...

well, i thiiiink that with current complexicity of how gpth matches/searches for stuff, it wouldn't be easy to do this safely for it too - without, you know, accidentally removing random photos (because of whole photo.jpg, photo(1).jpg, photo.jpg(1) etc stuff google made)

i think we could write a simple python script to resolve your problem tho...

from googlephotostakeouthelper.

TheLastGimbus avatar TheLastGimbus commented on June 5, 2024

here you go buddy

import os
import shutil

for f in os.listdir():
  if '-edited' in f:
    og = f.replace('-edited', '')
    print('to rm:', og)
    # uncomment this to actually run
    # os.remove(og)
    # or, safer one - create a "to-rm" directory beforehand
    # shutil.move(og, 'to-rm')

would be grateful for a small donate πŸ˜‰

from googlephotostakeouthelper.

TheLastGimbus avatar TheLastGimbus commented on June 5, 2024

may re-open in future in any case people really want skipping the original non-edited photos...

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.