This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Converts an ISO 3166-1 alpha-2 country code to the corresponding Unicode flag emoji. | |
* | |
* ``` | |
* "FR".countryCodeToUnicodeFlag() // 🇫🇷 | |
* "US".countryCodeToUnicodeFlag() // 🇺🇸 | |
* ``` | |
*/ | |
fun String.countryCodeToUnicodeFlag(): String { | |
return this |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
import pathlib | |
""" | |
This script is designed to import your Google Photos albums into Immich. | |
It expects: | |
- A directory containing all your Google Photos albums, exported from Google Takeout. Each album should be a directory, and each photo should be a file inside that directory. | |
- Your photos should ALREADY be uploaded to Immich. This script will not upload them for you, it will only try to find them in your library to add them to existing or new albums. |
OlderNewer