From aba76610bdeb9fc022909ec2916f6551d76bf04f Mon Sep 17 00:00:00 2001 From: Mosh Feu Date: Sat, 18 Jan 2020 11:51:40 -0800 Subject: [PATCH] Fix windows build (#55) --- README.md | 4 ++++ src/services/path.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3ffba7f..1a1cd69 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,10 @@ Find your download: [https://github.com/moshfeu/y2mp3/releases/latest](https://g ## Change log +##### 2.4.1 + +Fix - some downloads failed ("The video is unavailable") + ##### 2.4.0 - Allow to stop active video download diff --git a/src/services/path.ts b/src/services/path.ts index f9ab0aa..8512ede 100644 --- a/src/services/path.ts +++ b/src/services/path.ts @@ -1,7 +1,7 @@ import {join} from 'path'; -import * as downloadsFolder from 'downloads-folder'; import { mkdirSync, existsSync, readdirSync } from 'fs'; import { findArgument } from './additional-arguments'; +const downloadsFolder = require('downloads-folder'); const folderName = 'y2mp3'; const appDataFolder = findArgument('appData');