You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I want to port this program to FreeBSD platform and already did (waiting for FreeBSD committer check to put it in repository) but I had to fix some syntax issues by creating two patch files, after that, Varia launched fine without throwing syntax errors on terminal output.
These are my patch files fixing the syntax errors. I may open a PR about it.
Thanks in advance.
Kind regards,
Yusuf.
--- src/download/thread.py.orig 2025-02-04 16:32:56 UTC
+++ src/download/thread.py
@@ -215,7 +215,7 @@ class DownloadThread(threading.Thread):
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)
@@ -603,4 +603,4 @@ class DownloadThread(threading.Thread):
self.stop(False)
GLib.idle_add(self.pause_button.set_visible, False)
- self.app.filter_download_list("no", self.app.applied_filter)
\ No newline at end of file
+ self.app.filter_download_list("no", self.app.applied_filter)
--- src/download/videos.py.orig 2025-02-04 16:49:29 UTC
+++ src/download/videos.py
@@ -312,8 +312,8 @@ def on_video_clicked(button, self, entry):
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)}"
)
@@ -370,4 +370,4 @@ def on_video_option_download_clicked(self, prefswindow
else:
break
- on_download_clicked(None, self, url, filename, None, "video", video_options, False, self.appconf["download_directory"])
\ No newline at end of file
+ on_download_clicked(None, self, url, filename, None, "video", video_options, False, self.appconf["download_directory"])
The text was updated successfully, but these errors were encountered:
Hi. I want to port this program to FreeBSD platform and already did (waiting for FreeBSD committer check to put it in repository) but I had to fix some syntax issues by creating two patch files, after that, Varia launched fine without throwing syntax errors on terminal output.
These are my patch files fixing the syntax errors. I may open a PR about it.
Thanks in advance.
Kind regards,
Yusuf.
The text was updated successfully, but these errors were encountered: