Lines 1-6
Link Here
|
1 |
--- raphodo/rapid.py.orig 2019-08-18 03:58:11 UTC |
1 |
--- raphodo/rapid.py.orig 2020-04-17 01:22:23 UTC |
2 |
+++ raphodo/rapid.py |
2 |
+++ raphodo/rapid.py |
3 |
@@ -98,7 +98,7 @@ from PyQt5.QtNetwork import QLocalSocket, QLocalServer |
3 |
@@ -96,7 +96,7 @@ from PyQt5.QtNetwork import QLocalSocket, QLocalServer |
4 |
import sip |
4 |
import sip |
5 |
|
5 |
|
6 |
from raphodo.storage import ( |
6 |
from raphodo.storage import ( |
Lines 9-15
Link Here
|
9 |
has_one_or_more_folders, mountPaths, get_desktop_environment, get_desktop, |
9 |
has_one_or_more_folders, mountPaths, get_desktop_environment, get_desktop, |
10 |
gvfs_controls_mounts, get_default_file_manager, validate_download_folder, |
10 |
gvfs_controls_mounts, get_default_file_manager, validate_download_folder, |
11 |
validate_source_folder, get_fdo_cache_thumb_base_directory, WatchDownloadDirs, get_media_dir, |
11 |
validate_source_folder, get_fdo_cache_thumb_base_directory, WatchDownloadDirs, get_media_dir, |
12 |
@@ -584,12 +584,12 @@ class RapidWindow(QMainWindow): |
12 |
@@ -609,12 +609,12 @@ class RapidWindow(QMainWindow): |
13 |
self.prefs.backup_files = backup |
13 |
self.prefs.backup_files = backup |
14 |
else: |
14 |
else: |
15 |
logging.info("Backing up files: %s", self.prefs.backup_files) |
15 |
logging.info("Backing up files: %s", self.prefs.backup_files) |
Lines 24-30
Link Here
|
24 |
if photo_backup_identifier is not None: |
24 |
if photo_backup_identifier is not None: |
25 |
self.prefs.photo_backup_identifier = photo_backup_identifier |
25 |
self.prefs.photo_backup_identifier = photo_backup_identifier |
26 |
elif self.prefs.backup_files and self.prefs.backup_device_autodetection: |
26 |
elif self.prefs.backup_files and self.prefs.backup_device_autodetection: |
27 |
@@ -599,7 +599,7 @@ class RapidWindow(QMainWindow): |
27 |
@@ -624,7 +624,7 @@ class RapidWindow(QMainWindow): |
28 |
self.prefs.video_backup_identifier = video_backup_identifier |
28 |
self.prefs.video_backup_identifier = video_backup_identifier |
29 |
elif self.prefs.backup_files and self.prefs.backup_device_autodetection: |
29 |
elif self.prefs.backup_files and self.prefs.backup_device_autodetection: |
30 |
logging.info("video backup identifier: %s", self.prefs.video_backup_identifier) |
30 |
logging.info("video backup identifier: %s", self.prefs.video_backup_identifier) |
Lines 33-39
Link Here
|
33 |
if photo_backup_location is not None: |
33 |
if photo_backup_location is not None: |
34 |
self.prefs.backup_photo_location = photo_backup_location |
34 |
self.prefs.backup_photo_location = photo_backup_location |
35 |
elif self.prefs.backup_files and not self.prefs.backup_device_autodetection: |
35 |
elif self.prefs.backup_files and not self.prefs.backup_device_autodetection: |
36 |
@@ -934,18 +934,6 @@ class RapidWindow(QMainWindow): |
36 |
@@ -939,18 +939,6 @@ class RapidWindow(QMainWindow): |
37 |
logging.debug("Starting camera hotplug monitor...") |
37 |
logging.debug("Starting camera hotplug monitor...") |
38 |
QTimer.singleShot(0, self.cameraHotplugThread.start) |
38 |
QTimer.singleShot(0, self.cameraHotplugThread.start) |
39 |
|
39 |
|
Lines 52-58
Link Here
|
52 |
if self.gvfsControlsMounts: |
52 |
if self.gvfsControlsMounts: |
53 |
# Gio.VolumeMonitor must be in the main thread, according to |
53 |
# Gio.VolumeMonitor must be in the main thread, according to |
54 |
# Gnome documentation |
54 |
# Gnome documentation |
55 |
@@ -2119,7 +2107,7 @@ class RapidWindow(QMainWindow): |
55 |
@@ -2189,7 +2177,7 @@ class RapidWindow(QMainWindow): |
56 |
select_text=_('Select a destination folder') |
56 |
select_text=_('Select a destination folder') |
57 |
) |
57 |
) |
58 |
self.photoDestination.addWidget(self.photoDestinationWidget) |
58 |
self.photoDestination.addWidget(self.photoDestinationWidget) |
Lines 61-67
Link Here
|
61 |
self.videoDestinationDisplay = DestinationDisplay( |
61 |
self.videoDestinationDisplay = DestinationDisplay( |
62 |
menu=True, file_type=FileType.video, parent=self |
62 |
menu=True, file_type=FileType.video, parent=self |
63 |
) |
63 |
) |
64 |
@@ -2582,11 +2570,11 @@ class RapidWindow(QMainWindow): |
64 |
@@ -2655,11 +2643,11 @@ class RapidWindow(QMainWindow): |
65 |
|
65 |
|
66 |
body = _( |
66 |
body = _( |
67 |
r"""Please report the problem at <a href="{website}">{website}</a>.<br><br> |
67 |
r"""Please report the problem at <a href="{website}">{website}</a>.<br><br> |
Lines 77-83
Link Here
|
77 |
<a href="{config_path}">here</a> to open the configuration directory. |
77 |
<a href="{config_path}">here</a> to open the configuration directory. |
78 |
""" |
78 |
""" |
79 |
).format( |
79 |
).format( |
80 |
@@ -2622,7 +2610,7 @@ class RapidWindow(QMainWindow): |
80 |
@@ -2695,7 +2683,7 @@ class RapidWindow(QMainWindow): |
81 |
|
81 |
|
82 |
:param message: the text to display |
82 |
:param message: the text to display |
83 |
:param rich_text: whether it text to display is in HTML format |
83 |
:param rich_text: whether it text to display is in HTML format |
Lines 86-92
Link Here
|
86 |
localized 'Rapid Photo Downloader' |
86 |
localized 'Rapid Photo Downloader' |
87 |
:return: the message box |
87 |
:return: the message box |
88 |
""" |
88 |
""" |
89 |
@@ -4652,8 +4640,6 @@ Do you want to proceed with the download? |
89 |
@@ -4766,8 +4754,6 @@ Do you want to proceed with the download? |
90 |
self.sendTerminateToThread(self.backup_controller) |
90 |
self.sendTerminateToThread(self.backup_controller) |
91 |
|
91 |
|
92 |
if not self.gvfsControlsMounts: |
92 |
if not self.gvfsControlsMounts: |
Lines 95-101
Link Here
|
95 |
self.cameraHotplugThread.quit() |
95 |
self.cameraHotplugThread.quit() |
96 |
self.cameraHotplugThread.wait() |
96 |
self.cameraHotplugThread.wait() |
97 |
else: |
97 |
else: |
98 |
@@ -5254,7 +5240,7 @@ Do you want to proceed with the download? |
98 |
@@ -5384,7 +5370,7 @@ Do you want to proceed with the download? |
99 |
After a preference change, rescan already scanned devices |
99 |
After a preference change, rescan already scanned devices |
100 |
:param ignore_cameras: if True, don't rescan cameras |
100 |
:param ignore_cameras: if True, don't rescan cameras |
101 |
:param rescan_path: if True, include manually specified paths |
101 |
:param rescan_path: if True, include manually specified paths |
Lines 104-110
Link Here
|
104 |
""" |
104 |
""" |
105 |
|
105 |
|
106 |
if rescan_path: |
106 |
if rescan_path: |
107 |
@@ -6243,7 +6229,7 @@ def main(): |
107 |
@@ -6499,7 +6485,7 @@ def main(): |
108 |
logger = iplogging.setup_main_process_logging(logging_level=logging_level) |
108 |
logger = iplogging.setup_main_process_logging(logging_level=logging_level) |
109 |
|
109 |
|
110 |
logging.info("Rapid Photo Downloader is starting") |
110 |
logging.info("Rapid Photo Downloader is starting") |
Lines 113-119
Link Here
|
113 |
if args.photo_renaming: |
113 |
if args.photo_renaming: |
114 |
photo_rename = args.photo_renaming == 'on' |
114 |
photo_rename = args.photo_renaming == 'on' |
115 |
if photo_rename: |
115 |
if photo_rename: |
116 |
@@ -6252,7 +6238,7 @@ def main(): |
116 |
@@ -6508,7 +6494,7 @@ def main(): |
117 |
logging.info("Photo renaming turned off from command line") |
117 |
logging.info("Photo renaming turned off from command line") |
118 |
else: |
118 |
else: |
119 |
photo_rename = None |
119 |
photo_rename = None |
Lines 122-128
Link Here
|
122 |
if args.video_renaming: |
122 |
if args.video_renaming: |
123 |
video_rename = args.video_renaming == 'on' |
123 |
video_rename = args.video_renaming == 'on' |
124 |
if video_rename: |
124 |
if video_rename: |
125 |
@@ -6313,13 +6299,13 @@ def main(): |
125 |
@@ -6569,13 +6555,13 @@ def main(): |
126 |
logging.info("This Computer path set from command line: %s", this_computer_location) |
126 |
logging.info("This Computer path set from command line: %s", this_computer_location) |
127 |
else: |
127 |
else: |
128 |
this_computer_location=None |
128 |
this_computer_location=None |