Skip to content

Main<-v5#19

Merged
Aswanidev-vs merged 14 commits into
mainfrom
v5
Mar 3, 2026
Merged

Main<-v5#19
Aswanidev-vs merged 14 commits into
mainfrom
v5

Conversation

@Aswanidev-vs

@Aswanidev-vs Aswanidev-vs commented Mar 3, 2026

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • New Features

    • Added Instagram URL support for video downloads
    • Introduced Settings management (theme, output directory, auto-update preferences)
    • Added system notification integration
  • Improvements

    • Enhanced partial file cleanup detection and removal
    • Improved directory and path handling for better cross-platform reliability
    • Updated branding and documentation with expanded feature list

Aswanidev-vs and others added 14 commits February 19, 2026 22:39
This reverts commit 3f753d7.
…on anchor

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Potential fix for code scanning alert no. 8: Missing regular expression anchor
…ring archive extraction ("Zip Slip")

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Potential fix for code scanning alert no. 6: Arbitrary file access during archive extraction ("Zip Slip")
@coderabbitai

coderabbitai Bot commented Mar 3, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • ✅ Review completed - (🔄 Check again to review again)
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch v5

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces significant new features and improvements to the "Predator" application. Key updates include extending download capabilities to Instagram, alongside YouTube, and enhancing the user experience with features like application settings management, duplicate download detection, and system notifications. The README.md has been comprehensively revised to reflect these changes. Under the hood, the PR also addresses precision in duration handling, improves file system interactions for opening downloaded content, and strengthens security against directory traversal attacks during dependency extraction.

Highlights

  • Expanded Media Source Support: The application now supports downloading videos and audio from Instagram in addition to YouTube, significantly broadening its utility.
  • Enhanced README Documentation: The README.md has been significantly updated to detail new features, including Instagram support, playlist downloads, duplicate detection, and theme options, providing a clearer overview for users.
  • Application Settings Management: New functionality allows for getting and saving application settings, including theme, output directory, and auto-update preferences, improving user customization.
  • Duplicate Download Detection: A feature to check for and warn about duplicate downloads has been implemented, helping users avoid redundant content.
  • Improved File System Interaction: The OpenFolder function has been refactored to more reliably open directories and select specific files across different operating systems, enhancing usability.
  • Security Enhancement: The extractFFmpeg function includes improved validation to prevent potential directory traversal vulnerabilities during archive extraction, bolstering application security.
Changelog
  • .gitignore
    • Removed frontend/dist from the ignored files.
  • README.md
    • Updated the project description to include Instagram support.
    • Expanded the list of features to include Instagram support, playlist downloads, duplicate detection, live progress, retry logic, and themes.
    • Streamlined the "Getting started" section by removing detailed usage instructions.
    • Removed the "License" and "Contributing" sections.
    • Removed a merge conflict marker.
  • app.go
    • Modified Duration fields in VideoInfo and PlaylistVideo structs to float64 for increased precision.
    • Added Settings struct and related functions (getSettingsFilePath, GetSettings, SaveSettings, GetDefaultSettings) for managing application settings.
    • Introduced Instagram URL validation patterns and corresponding functions (IsValidInstagramURL, IsValidURL, IsInstagramURL).
    • Implemented CheckDuplicate to identify already downloaded content.
    • Added ShowNotification for displaying system alerts.
    • Refactored OpenFolder into separate functions (openDirectory, openDirectoryWithSelect) for more robust cross-platform folder/file opening.
    • Enhanced extractFFmpeg with stricter validation to prevent directory traversal (Zip Slip vulnerability).
    • Extended extractVideoID to parse Instagram video IDs.
  • build/windows/installer/wails_tools.nsh
    • Updated installer definitions to use hardcoded project details (name, version, copyright).
    • Removed dynamic file association and custom protocol association macros.
  • main.go
    • Imported github.com/wailsapp/wails/v2/pkg/options/windows.
    • Added Windows and Debug options to the wails.Run configuration.
  • wails.json
    • Corrected JSON formatting by removing a trailing comma.
Activity
  • No specific activity has been recorded for this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@Aswanidev-vs
Aswanidev-vs merged commit e503bf7 into main Mar 3, 2026
5 checks passed

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces significant updates, including support for Instagram downloads, improved file handling logic, and enhanced security measures for extracting FFmpeg. The README.md has been substantially updated to reflect new features and changes in the project's architecture (from Fyne to Wails). However, there are a few areas that require attention, such as unresolved merge conflicts in the README.md and a redundant function in app.go.

Comment thread app.go
Comment thread app.go
Comment thread build/windows/installer/wails_tools.nsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant