Skip to content
This repository was archived by the owner on Nov 28, 2023. It is now read-only.

Commit bb11cf8

Browse files
committed
fix: failing scan
1 parent acf9b06 commit bb11cf8

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

CHANGELOG.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## 0.3.8
6+
7+
- 🚨 Fixed failing scan
8+
59
## 0.3.7
610

711
- 💄 New Home Page design
@@ -12,9 +16,9 @@ All notable changes to this project will be documented in this file.
1216

1317
- 🦺 Fixed incorrect completion status in episode list
1418
- 🔄 Modified some aspects in logs
15-
- Directory path is now hidden
16-
- Dumped info logs are now in separate folder
17-
- Added more stats
19+
- Directory path is now hidden
20+
- Dumped info logs are now in separate folder
21+
- Added more stats
1822

1923
## 0.3.5
2024

@@ -23,7 +27,7 @@ All notable changes to this project will be documented in this file.
2327
## 0.3.4
2428

2529
- 🦺 Fixed directory selector returning only relative path
26-
- This caused issues when default save path on qBittorrent was not the same as local directory
30+
- This caused issues when default save path on qBittorrent was not the same as local directory
2731
- ✨ Ability to deselect torrents from episode list preview
2832
- 🔄 Changed default download directory to be the same as local directory when downloading batches
2933

src/lib/local-library/helpers/logs.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,14 @@ export class ScanLogging {
9191
* -----------------------------------------------------------------------------------------------*/
9292

9393
export async function _dumpToFile(key: string, content: any) {
94-
const snapshotDir = path.resolve("logs/dumps")
95-
if (!existsSync(snapshotDir)) {
96-
await fs.mkdir(snapshotDir)
97-
}
98-
// Generate the timestamp for the snapshot file name
99-
const timestamp = new Date().toISOString().replace(/:/g, "_")
100-
const snapshotFilename = `${timestamp.replaceAll(".", "_")}-DUMP-${key}.txt`
101-
const snapshotPath = path.join(snapshotDir, snapshotFilename)
102-
103-
await fs.writeFile(snapshotPath, JSON.stringify(content, null, 2), { encoding: "utf-8" })
94+
// const snapshotDir = path.resolve("logs/dumps")
95+
// if (!existsSync(snapshotDir)) {
96+
// await fs.mkdir(snapshotDir)
97+
// }
98+
// // Generate the timestamp for the snapshot file name
99+
// const timestamp = new Date().toISOString().replace(/:/g, "_")
100+
// const snapshotFilename = `${timestamp.replaceAll(".", "_")}-DUMP-${key}.txt`
101+
// const snapshotPath = path.join(snapshotDir, snapshotFilename)
102+
//
103+
// await fs.writeFile(snapshotPath, JSON.stringify(content, null, 2), { encoding: "utf-8" })
104104
}

0 commit comments

Comments
 (0)