Coder Social home page Coder Social logo

mholt / photobak Goto Github PK

View Code? Open in Web Editor NEW
304.0 18.0 29.0 102 KB

Back up your content from Google Photos - DEPRECATED: use Timeliner

Home Page: https://github.com/mholt/timeliner

Go 99.43% Shell 0.57%
google-photos album backup photos golang

photobak's People

Contributors

konishchevdmitry avatar mholt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

photobak's Issues

File Path to .db

Hi,
Thanks for your help with previous issue working fine now have logs tag set.
Once ive closed the command window and re-opened how do I tell photobak to sync the same repo did try re-run what I thought was the location but instead created new folder and photobak.db ??
Any help would be appreciated :-)

Handling duplicated file names

It looks like this is not dealing too well with photos with the same name. Hangouts apparently saved images from the same day with the same name (just the date) and the tool doesn't rename these duplicates. Every time the command is rerun of course it detects it as a checksum error and redownloads.

OAuth2 hanging at "Waiting for localhost..."

I've just tried to start and authenticate the app, however, I got stuck at the OAuth2 authentication step. The app opens a web browser (checked with both chromium and Firefox) in which I successfully log into my account but subsequently the webpage starts to wait with "Waiting for localhost" status bar message. The app is waiting for something as well with a message about obtaining tokens.
Have I missed anything? What are the web browser and the app waiting for?? (I have client's ID and secret exported)

Cheers

Photo metadata is changed in download

I might miss something but when downloading the photos and checking 'create' and 'modified' dates - they are all from today and time downloaded.
See attached screenshots from picture in Google Photos and from downloaded photo locally.
Am I missing something or doing something wrong?
screenshot 2017-11-01 22 27 27
screenshot 2017-11-01 22 27 42

screenshot 2017-11-01 23 04 20

Download breaks - a fraction of photos downloaded

The process seems to be running fine but on 2 seperate accounts similar errors start showing up and after a while the program breaks and exits.
I've tried a couple of times to re-start the process without luck - do you have any suggestions?
Thanks on beforehand :)
screenshot 2017-11-02 00 59 23
screenshot 2017-11-02 00 59 50
screenshot 2017-11-02 01 04 29

screenshot 2017-11-02 01 06 04

Getting an `invalid_client` error when setting it up

Hi, I was trying to use this tool for the first time, but I'm getting an invalid_client error.

I've put my OAuth2 info but it seems it doesn't like that. I'm probably doing something wrong in google console. Can you help me navigate where should I create correct OAuth2 credentials?

Thank you ๐Ÿ™๐Ÿฝ

image

Error after a day of use

After using the app for a day I'm getting the following error:

2017/10/22 15:57:19 Get https://picasaweb.google.com/data/feed/api/user/default: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error" : "invalid_request",
  "error_description" : "Could not determine client ID from request."
}

I'm using the app in a headless mode, so I ran authonly and copied the database to my NAS. Then I made a backup and the next day I'm getting the error above. How can I recover? Did anyone come across the same issue?

Photo captions

I know that photo captions (descriptions) from Google Photos are stored in photobak.db, but how can I extract them into usable form? Maybe there should be an option to save Google Photos captions as Exif 'Title' metadata in downloaded photos?

No browser on server

Hi,
I use a server with no browser.
Is it possible to write link to copy and paste on external browser

Anyway to see current status

Hi, love the program hoping to contribute more once setup properly...one question...is their any way of seeing current status of download. Have just set up Google to sync for first time photos are appearing and it's still running in terminal just no status...

OOM killed due to memory leak with NEF/TIFF files

I've found photobak is regularly OOM killed by the Linux kernel:

kernel: Out of memory: Kill process 9042 (photobak) score 695 or sacrifice child
kernel: Killed process 9042 (photobak) total-vm:30599888kB, anon-rss:13104776kB, file-rss:0kB, shmem-rss:0kB
kernel: oom_reaper: reaped process 9042 (photobak), now anon-rss:0kB, file-rss:4kB, shmem-rss:0kB

Above instance was built with go1.8rc1. Retested with go1.7.4:

RSS doesn't grow while it rescans already downloaded folders, but it appears to increase at roughly the size of each photo downloaded. I haven't waited for it to get OOM killed again, but it seems likely since it's up to 1.4G RSS and growing..

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.