Skip to content

Commit

Permalink
Prep for v3.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
StarrHelixx committed Jun 26, 2021
1 parent d17bc90 commit 8bdd7d6
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 6 deletions.
12 changes: 12 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
# Changelog
## 3.1.4 <small>(06/26/2021)</small>
- Add Piwigo support (abrenoch)
- Add <Unclipped> filter
- Add option to toggle grid cell watermarks
- Fix bug with saving data.json
- Fix bug with auto clean algorithm
- Fix bug with grid cells being cut-off
- Fix bug with adding script to library
- Fix tagging UI in Video Clipper
- Fix bug with duplicate caption tracks appearing on videos
- Fix bug with Scene Generator tutorial
- Fix bug with menu settings not resetting when ending playback

## 3.1.3 <small>(05/21/2021)</small>
- Scrape images in separate thread
Expand Down
8 changes: 8 additions & 0 deletions docs/doc_icons/piwigo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/doc_images/config.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/doc_images/flipflip_home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/sources.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ local video/playlist file, add a `Local video/playlsit` and choose the video(s)
* <img style="vertical-align: -2px; margin-right: 5px" src="doc_icons/gelbooru.png" alt="Gelbooru" width="15" height="15">Gelbooru Tag
* <img style="vertical-align: -2px; margin-right: 5px" src="doc_icons/ehentai.png" alt="E-Hentai" width="15" height="15">E-Hentai Gallery
* <img style="vertical-align: -2px; margin-right: 5px" src="doc_icons/hydrus.svg" alt="Hydrus" width="15" height="15">Hydrus Tag
* <img style="vertical-align: -2px; margin-right: 5px" src="doc_icons/piwigo.svg" alt="Piwigo" width="15" height="15">Piwigo Album
* <img style="vertical-align: -2px; margin-right: 5px" src="doc_icons/b.svg" alt="BDSMlr" width="15" height="15">BDSMlr Blog (Only works for blogs with images in RSS feed)
* ~~<img style="vertical-align: -2px" src="doc_icons/sexcom.svg" alt="Sex.com" width="15" height="15"> Sex.com Gallery/User~~ _Currently broken_

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flipflip",
"version": "3.1.3",
"version": "3.1.4",
"main": "./dist/main.bundle.js",
"author": "ififfy",
"license": "MIT",
Expand Down
10 changes: 6 additions & 4 deletions src/renderer/data/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,24 +377,26 @@ export function cleanBackups(config: Config) {
let lastMonth = convertFromEpoch(keepMonths[keepMonths.length - 1].url);

if (moment(backupDate).isSame(lastDay, 'day')) {
if (backupDate < lastDay) {
keepDays[keepDays.length - 1] = backup;
if (moment(backupDate).isSame(new Date(), 'day') && backupDate > lastDay) {
keepDays[keepDays.length - 1] = backup;
} else if (!moment(backupDate).isSame(new Date(), 'day') && backupDate < lastDay) {
keepDays[keepDays.length - 1] = backup;
}
} else if (keepDays.length < config.generalSettings.autoCleanBackupDays) {
keepDays.push(backup);
}

if (moment(backupDate).isSame(lastWeek, 'week')) {
if (backupDate < lastWeek) {
keepWeeks[keepWeeks.length - 1] = backup;
keepWeeks[keepWeeks.length - 1] = backup;
}
} else if (keepWeeks.length < config.generalSettings.autoCleanBackupWeeks) {
keepWeeks.push(backup);
}

if (moment(backupDate).isSame(lastMonth, 'month')) {
if (backupDate < lastWeek) {
keepMonths[keepMonths.length - 1] = backup;
keepMonths[keepMonths.length - 1] = backup;
}
} else if (keepMonths.length < config.generalSettings.autoCleanBackupMonths) {
keepMonths.push(backup);
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/data/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function getBackups(): Array<{url: string, size: number}> {
const files = fs.readdirSync(saveDir);
const backups = Array<any>();
for (let file of files) {
if (file.startsWith("data.json.")) {
if (file.startsWith("data.json.") && file != "data.json.new") {
const stats = fs.statSync(saveDir + "/" + file);
backups.push({url: file, size: stats.size});
}
Expand Down

0 comments on commit 8bdd7d6

Please sign in to comment.