TheLastGimbus / GooglePhotosTakeoutHelper

Script that organizes the Google Takeout archive into one big chronological folder
https://aur.archlinux.org/packages/gpth-bin
Apache License 2.0
3.47k stars 176 forks source link

Can't find anything in input foler #305

Closed Alastair97 closed 2 months ago

Alastair97 commented 2 months ago

Firstly, thank you so much for making this tool.

I am experiencing a problem and I am sure this isn't a issue on my end.

I download the zip from google takeout (just one zip - I am not doing any merging of takeout folders). I then extract it to a drive on my PC.

Using the tool, I am first prompted to select the location of the unzipped directory. I select I:\Takeout

(Inside this Takeout folder is a Google Photos directory, and inside there is another directory with my files called Stuff - 2022 Jan - Aug. This has various mp4 and JPG files and their equivalent JSON files.

I then select the output folder, I select some empty directory I made earlier - I:\Takeout output

Then, after I've selected some options it says:

Okay, running... searching for everything in input folder...
...oh :(
...
I couldn't find any D: reasons for this may be:
  - you've already ran gpth and it moved all photos to output -
    delete the input folder and re-extract the zip
  - your Takeout doesn't have any "year folders" -
    visit https://github.com/TheLastGimbus/GooglePhotosTakeoutHelper
    again and request new, correct Takeout
After fixing this, go ahead and try again :)
[gpth quitted :( (code 13) - press enter to close]

I am unsure what I am doing wrong. The files haven't previously moved to the output, they are all still in I:\Takeout\Google Photos\Stuff - 2022 Jan - Aug I am unsure what "year folders" are? But I have tried this with multiple Google Takeout downloads.

I have replicated the steps on my C drive and I have ran the takeouthelper as an Admin.

Any ideas? Am I missing something really obvious?

TheLastGimbus commented 2 months ago

Show me screenshot of what you're selecting while requesting a takeout

Alastair97 commented 2 months ago

Do you mean this? I'm selecting 1 album and nothing else is selected. I am selecting my own album, not the auto generated 'Photos from 2018', 'Photos from 2019', etc.

Screenshot 2024-04-08 201645 Screenshot 2024-04-08 201848

TheLastGimbus commented 2 months ago

Read the readme. There is a graphical guide i made in ms paint and put my heart to it. Please appreciate it :pleading_face:

Alastair97 commented 2 months ago

I have read it multiple times and I don't see where I am going wrong?

Is it that I have to select all of the albums? That is the only difference I am seeing

Alastair97 commented 2 months ago

And I really do appreciate it. I'm genuinely confused what I am doing wrong. It doesn't say that I have to select all the albums, and it doesn't say I shouldn't select just one. Or am I wrong?

TheLastGimbus commented 2 months ago

Oh shit, it does not indeed. You got me there :stuck_out_tongue_winking_eye:

TL;DR you have to select all albums available, and it should work fine. Or at least years that interests you

Alastair97 commented 2 months ago

Thank you 😊

"Or at least years that interests you" So basically, I must select more than 1 album? But I don't have to select all?

I will attempt this again tomorrow and let you know.

I probably have a different use case to other people which is why I only selected one album. I just want one of my albums downloaded and organised in the correct date order. I unfortunately cannot just do this via downloading from Google photos because they strip the metadata so it is impossible to organise in date order. I then downloaded from takeout and now I just want to find an easy way to merge this metadata (in the json files) so I can finally organise this in the right order.

I appreciate your help, by the way

TheLastGimbus commented 2 months ago

Years - year folders. "Phtos from 20xx". They contain photos as in camera roll. Albums are just their names

Gpth needs year folders because that's how it works to get everything into one big folder. It's not perfect for your use case, but most stable for getting everything

Alastair97 commented 2 months ago

Thank you. after selecting the '"photos from..." folders I' ve now achieved what I wanted to!

Why does it only work with the "photos from..." folders, I'm curious? Anyway, I think it would be good if you make this more clear in the ReadME!

I've sent you a small donation for my thanks :)

TheLastGimbus commented 2 months ago

I'm curious

Well, Google Takeout, and thus gpth, is weird, unstable and full of edge cases. What should've be a 15 line python script turned out to be complicated machinery with 3 re-writes and 158 gh issues closed over last 4 years. You can read through some random issues to see what weird stuff googled served us. My most memorable are #14, #59, #46, #8, #22, #136

Meanwhile the goal of gpth is to get as accurate state of your photos as we can - so I made it so that it finds all photos in both albums and 'year folders', links them together, and wishes that if one of them has weird edge case that prevents getting it's datetime correctly, the other one will be good :100: