Skip to content

Downloading fails if filename contains special characters #1857

Description

@Stattek

Metadata
Version: 5.0.0
OS: Arch Linux
Shell: bash
Anime: Any containing special characters such as :

Describe the bug
When downloading any file, it seems that the filename to write is not sanitized properly, which can lead to it being rejected by ffmpeg.

The example below shows it rejecting files with : but there may be more possible.

Steps To Reproduce

  1. Run ani-cli --download
  2. Search for show (this example shows gup)
  3. Choose any of the options containing a : character.

Expected behavior
Should download properly.

Actual behavior
ffmpeg command fails to download because it seems to reject filenames with special characters.

$ ani-cli --download
Checking dependencies...
anidb.app links fetched
[out#0/mp4 @ 0x55c272c060c0] Error opening output ./Girls & Panzer: Saishuushou Part 3 Episode 1.mp4: Invalid argument
Error opening output file ./Girls & Panzer: Saishuushou Part 3 Episode 1.mp4.
Error opening output files: Invalid argument

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions