Lines 1-6
Link Here
|
1 |
--- raphodo/rapid.py.orig 2020-04-17 01:22:23 UTC |
1 |
--- raphodo/rapid.py.orig 2020-05-03 17:31:45 UTC |
2 |
+++ raphodo/rapid.py |
2 |
+++ raphodo/rapid.py |
3 |
@@ -96,7 +96,7 @@ from PyQt5.QtNetwork import QLocalSocket, QLocalServer |
3 |
@@ -97,7 +97,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-39
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 |
@@ -609,12 +609,12 @@ class RapidWindow(QMainWindow): |
12 |
@@ -945,18 +945,6 @@ class RapidWindow(QMainWindow): |
13 |
self.prefs.backup_files = backup |
|
|
14 |
else: |
15 |
logging.info("Backing up files: %s", self.prefs.backup_files) |
16 |
- |
17 |
+ |
18 |
if backup_auto_detect is not None: |
19 |
self.prefs.backup_device_autodetection = backup_auto_detect |
20 |
elif self.prefs.backup_files: |
21 |
logging.info("Backup device auto detection: %s", self.prefs.backup_device_autodetection) |
22 |
- |
23 |
+ |
24 |
if photo_backup_identifier is not None: |
25 |
self.prefs.photo_backup_identifier = photo_backup_identifier |
26 |
elif self.prefs.backup_files and self.prefs.backup_device_autodetection: |
27 |
@@ -624,7 +624,7 @@ class RapidWindow(QMainWindow): |
28 |
self.prefs.video_backup_identifier = video_backup_identifier |
29 |
elif self.prefs.backup_files and self.prefs.backup_device_autodetection: |
30 |
logging.info("video backup identifier: %s", self.prefs.video_backup_identifier) |
31 |
- |
32 |
+ |
33 |
if photo_backup_location is not None: |
34 |
self.prefs.backup_photo_location = photo_backup_location |
35 |
elif self.prefs.backup_files and not self.prefs.backup_device_autodetection: |
36 |
@@ -939,18 +939,6 @@ class RapidWindow(QMainWindow): |
37 |
logging.debug("Starting camera hotplug monitor...") |
13 |
logging.debug("Starting camera hotplug monitor...") |
38 |
QTimer.singleShot(0, self.cameraHotplugThread.start) |
14 |
QTimer.singleShot(0, self.cameraHotplugThread.start) |
39 |
|
15 |
|
Lines 52-92
Link Here
|
52 |
if self.gvfsControlsMounts: |
28 |
if self.gvfsControlsMounts: |
53 |
# Gio.VolumeMonitor must be in the main thread, according to |
29 |
# Gio.VolumeMonitor must be in the main thread, according to |
54 |
# Gnome documentation |
30 |
# Gnome documentation |
55 |
@@ -2189,7 +2177,7 @@ class RapidWindow(QMainWindow): |
31 |
@@ -4748,8 +4736,6 @@ Do you want to proceed with the download? |
56 |
select_text=_('Select a destination folder') |
|
|
57 |
) |
58 |
self.photoDestination.addWidget(self.photoDestinationWidget) |
59 |
- |
60 |
+ |
61 |
self.videoDestinationDisplay = DestinationDisplay( |
62 |
menu=True, file_type=FileType.video, parent=self |
63 |
) |
64 |
@@ -2655,11 +2643,11 @@ class RapidWindow(QMainWindow): |
65 |
|
66 |
body = _( |
67 |
r"""Please report the problem at <a href="{website}">{website}</a>.<br><br> |
68 |
- Include in your bug report the program's log files. The bug report must include |
69 |
- <i>{log_file}</i>, but attaching the other log files is often helpful.<br><br> |
70 |
+ Include in your bug report the program's log files. The bug report must include |
71 |
+ <i>{log_file}</i>, but attaching the other log files is often helpful.<br><br> |
72 |
If possible, please also include the program's configuration file |
73 |
- <i>{config_file}</i>.<br><br> |
74 |
- Click <a href="{log_path}">here</a> to open the log directory, and |
75 |
+ <i>{config_file}</i>.<br><br> |
76 |
+ Click <a href="{log_path}">here</a> to open the log directory, and |
77 |
<a href="{config_path}">here</a> to open the configuration directory. |
78 |
""" |
79 |
).format( |
80 |
@@ -2695,7 +2683,7 @@ class RapidWindow(QMainWindow): |
81 |
|
82 |
:param message: the text to display |
83 |
:param rich_text: whether it text to display is in HTML format |
84 |
- :param title: optional title for message box, else defaults to |
85 |
+ :param title: optional title for message box, else defaults to |
86 |
localized 'Rapid Photo Downloader' |
87 |
:return: the message box |
88 |
""" |
89 |
@@ -4766,8 +4754,6 @@ Do you want to proceed with the download? |
90 |
self.sendTerminateToThread(self.backup_controller) |
32 |
self.sendTerminateToThread(self.backup_controller) |
91 |
|
33 |
|
92 |
if not self.gvfsControlsMounts: |
34 |
if not self.gvfsControlsMounts: |
Lines 95-140
Link Here
|
95 |
self.cameraHotplugThread.quit() |
37 |
self.cameraHotplugThread.quit() |
96 |
self.cameraHotplugThread.wait() |
38 |
self.cameraHotplugThread.wait() |
97 |
else: |
39 |
else: |
98 |
@@ -5384,7 +5370,7 @@ Do you want to proceed with the download? |
|
|
99 |
After a preference change, rescan already scanned devices |
100 |
:param ignore_cameras: if True, don't rescan cameras |
101 |
:param rescan_path: if True, include manually specified paths |
102 |
- (i.e. This Computer) |
103 |
+ (i.e. This Computer) |
104 |
""" |
105 |
|
106 |
if rescan_path: |
107 |
@@ -6499,7 +6485,7 @@ def main(): |
108 |
logger = iplogging.setup_main_process_logging(logging_level=logging_level) |
109 |
|
110 |
logging.info("Rapid Photo Downloader is starting") |
111 |
- |
112 |
+ |
113 |
if args.photo_renaming: |
114 |
photo_rename = args.photo_renaming == 'on' |
115 |
if photo_rename: |
116 |
@@ -6508,7 +6494,7 @@ def main(): |
117 |
logging.info("Photo renaming turned off from command line") |
118 |
else: |
119 |
photo_rename = None |
120 |
- |
121 |
+ |
122 |
if args.video_renaming: |
123 |
video_rename = args.video_renaming == 'on' |
124 |
if video_rename: |
125 |
@@ -6569,13 +6555,13 @@ def main(): |
126 |
logging.info("This Computer path set from command line: %s", this_computer_location) |
127 |
else: |
128 |
this_computer_location=None |
129 |
- |
130 |
+ |
131 |
if args.photo_location: |
132 |
photo_location = os.path.abspath(args.photo_location) |
133 |
logging.info("Photo location set from command line: %s", photo_location) |
134 |
else: |
135 |
photo_location=None |
136 |
- |
137 |
+ |
138 |
if args.video_location: |
139 |
video_location = os.path.abspath(args.video_location) |
140 |
logging.info("video location set from command line: %s", video_location) |