Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix syntax errors #157

Open
wants to merge 1 commit into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/download/thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def youtubedl_download_start():
self.video_stop_event.clear()
self.cancelled = True
except Exception as e:
GLib.idle_add(self.speed_label.set_text, f"{_("An error occurred:")} {self.app.escape_special_characters(str(e))}")
GLib.idle_add(self.speed_label.set_text, f'{_("An error occurred:")} {self.app.escape_special_characters(str(e))}')
self.video_stop_event.clear()
self.cancelled = True
GLib.idle_add(self.set_failed, None)
Expand Down Expand Up @@ -603,4 +603,4 @@ def set_failed(self, fraction):

self.stop(False)
GLib.idle_add(self.pause_button.set_visible, False)
self.app.filter_download_list("no", self.app.applied_filter)
self.app.filter_download_list("no", self.app.applied_filter)
6 changes: 3 additions & 3 deletions src/download/videos.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,8 @@ def create_option_actionrow(self, group, title, subtitle, type, download_object,
else:
# Show error dialog if something went wrong
error_body = (
f"{_("An error occurred:")}\n\n"
f"{_("The video platform may not be supported or you may be being blocked by the platform. If you have an active VPN connection that might be the cause, or you can try importing your browser's cookies through a cookies.txt file.")}\n\n\n"
f'{_("An error occurred:")}\n\n'
f'{_("The video platform may not be supported or you may be being blocked by the platform. If you have an active VPN connection that might be the cause, or you can try importing your browsers cookies through a cookies.txt file.")}\n\n\n'
"────────────────────────────\n\n\n"
f"{self.escape_special_characters(ytdlp_error)}"
)
Expand Down Expand Up @@ -370,4 +370,4 @@ def on_video_option_download_clicked(self, prefswindow, type, download_object, d
else:
break

on_download_clicked(None, self, url, filename, None, "video", video_options, False, self.appconf["download_directory"])
on_download_clicked(None, self, url, filename, None, "video", video_options, False, self.appconf["download_directory"])