Skip to content

Commit 7609d4f

Browse files
chore: code cleanup
1 parent cff4809 commit 7609d4f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ google-chrome \
1919
--use-mock-keychain \
2020
https://photos.google.com/
2121
```
22-
Close the browser: the folder you chose is enough to open a headless browser and access your photos.
22+
Close the browser: now the folder you chose has the credentials needed to open a headless browser and access your photos.
2323

2424

2525
### Configure docker compose

save.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,15 @@ function do_video () {
123123
# Extract the encoded date and time
124124
encoded_date=${BASH_REMATCH[1]}
125125
encoded_time=${BASH_REMATCH[2]}
126-
126+
127127
# Extract year, month, day, hour, minute, second
128128
year="20${encoded_date:0:2}"
129129
month=${encoded_date:2:2}
130130
day=${encoded_date:4:2}
131131
hour=${encoded_time:0:2}
132132
minute=${encoded_time:2:2}
133133
second=${encoded_time:4:2}
134-
134+
135135
# Create a formatted timestamp
136136
creation_time="$year-$month-${day}T$hour:$minute:$second"
137137

@@ -156,14 +156,14 @@ function do_video () {
156156
# Extract year and month from the creation time
157157
local year=$(date -d "$creation_time" +"%Y")
158158
local month=$(date -d "$creation_time" +"%m")
159-
159+
160160
# Create target directory if it doesn't exist
161161
local target_dir="${PARENT_DIR}/${year}/${year}-${month}"
162162
mkdir -p "${target_dir}"
163-
163+
164164
# Move the file to the target directory
165165
mv "$FILE" "${target_dir}/"
166-
166+
167167
echo "Moved $FILE to $target_dir/"
168168

169169
# move to destination folder
@@ -175,7 +175,7 @@ function do_video () {
175175
. $DEST_DIR
176176

177177
fi
178-
178+
179179
rm -rf $PARENT_DIR
180180
}
181181

0 commit comments

Comments
 (0)