-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #365 from jeanslack/removing_external_drive
Removing external drive
- Loading branch information
Showing
8 changed files
with
77 additions
and
30 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,17 @@ videomass (5.0.21-1) UNRELEASED; urgency=medium | |
* Fixed some broken link. | ||
* Fixed an issue when restoring the configuration directory, which copied | ||
unnecessary files and directories. | ||
|
||
-- Gianluca Pernigotto <[email protected]> Mon, 28 Oct 2024 00:00:00 +0200 | ||
* Fixed issue with using physically non-existent and access-denied output | ||
paths (e.g. removing USB sticks, hard drives, etc.) which would inevitably | ||
lead to an application reset during startup (Very annoying). | ||
* Fixed NameError: name 'tarbal' is not defined. Did you mean: 'tarball'? | ||
during presets download operation. | ||
* Changed: Unlike portable mode, In installed mode output directories are no | ||
longer automatically recreated if they do not exist. | ||
* Changed the names of the default output directories when using the | ||
application in portable mode (see Media/Transcoding + Media/Downloads). | ||
|
||
-- Gianluca Pernigotto <[email protected]> Wed, 30 Oct 2024 00:00:00 +0200 | ||
|
||
videomass (5.0.20-1) UNRELEASED; urgency=medium | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
videomass | ||
yt-dlp | ||
yt-dlp[default] | ||
hatchling | ||
build | ||
wheel | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ pypubsub | |
six | ||
wxpython | ||
requests | ||
yt-dlp | ||
yt-dlp[default] | ||
|
||
# Requirements for Windows | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
Author: Gianluca Pernigotto <[email protected]> | ||
Copyleft - 2024 Gianluca Pernigotto <[email protected]> | ||
license: GPL3 | ||
Rev: June.24.2024 | ||
Rev: Oct.29.2024 | ||
Code checker: flake8, pylint | ||
This file is part of Videomass. | ||
|
@@ -867,8 +867,8 @@ def prst_downloader(self, event): | |
tarball = io_tools.get_github_releases(url, "tarball_url") | ||
|
||
if tarball[0] in ['request error:', 'response error:']: | ||
wx.MessageBox(f"{tarbal[0]} {tarbal[1]}", | ||
f"{tarbal[0]}", wx.ICON_ERROR, self) | ||
wx.MessageBox(f"{tarball[0]} {tarball[1]}", | ||
f"{tarball[0]}", wx.ICON_ERROR, self) | ||
return | ||
|
||
name = f"Videomass-presets-{tarball[0].split('/v')[-1]}.tar.gz" | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
Author: Gianluca Pernigotto <[email protected]> | ||
Copyleft - 2024 Gianluca Pernigotto <[email protected]> | ||
license: GPL3 | ||
Rev: Apr.09.2024 | ||
Rev: Oct.29.2024 | ||
Code checker: flake8, pylint | ||
This file is part of Videomass. | ||
|
@@ -301,10 +301,12 @@ def __init__(self, filename, makeportable=None): | |
self.filename = filename | ||
|
||
if makeportable: | ||
path = os.path.join(makeportable, "My_Files") | ||
outputdir = os.path.relpath(path) | ||
ConfigManager.DEFAULT_OPTIONS['outputdir'] = outputdir | ||
ConfigManager.DEFAULT_OPTIONS['ydlp-outputdir'] = outputdir | ||
trscodepath = os.path.join(makeportable, "Media", "Transcoding") | ||
dwldpath = os.path.join(makeportable, "Media", "Downloads") | ||
trscodedir = os.path.relpath(trscodepath) | ||
dwlddir = os.path.relpath(dwldpath) | ||
ConfigManager.DEFAULT_OPTIONS['outputdir'] = trscodedir | ||
ConfigManager.DEFAULT_OPTIONS['ydlp-outputdir'] = dwlddir | ||
|
||
def write_options(self, **options): | ||
""" | ||
|
@@ -338,3 +340,18 @@ def read_options(self): | |
return None | ||
|
||
return options | ||
|
||
def default_outputdirs(self, **options): | ||
""" | ||
Restores default output paths. | ||
This method is needed to set the values of the `outputdir` | ||
and `ydlp-outputdir` keys set to physically non-existent | ||
filesystem paths (such as pendrives, hard-drives, etc.). | ||
Returns a dictionary object. | ||
""" | ||
if not os.path.exists(options['outputdir']): | ||
options['outputdir'] = f"{os.path.expanduser('~')}" | ||
if not os.path.exists(options['ydlp-outputdir']): | ||
options['ydlp-outputdir'] = f"{os.path.expanduser('~')}" | ||
|
||
return options |