Skip to content

LoadConfigFile doesn't close double quotes if string ends with double quote. #64

@nightshadow92

Description

@nightshadow92

When a configuration file is loaded with a setting that ends with a ", it does not add a closing double quote at the end, causing an incomplete setting.

Example:

Contents of yt-dlp.conf:

--replace-in-metadata title "&" "_"
OptionSet options = OptionSet.LoadConfigFile(@"C:\yt-dlp.conf");
Console.WriteLine(options.ReplaceInMetadata.Values[0]);

Observed Behavior:

The ReplaceInMetadata value is parsed as title "&" "_.

Expected Behavior:

The ReplaceInMetadata value should be parsed correctly, ensuring all quotes are closed properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions