First draft of libsecret support (fixed formatting).

This commit is contained in:
Aleksei Kovura 2017-11-05 18:12:39 +03:00
parent 58ab35d1cb
commit a2cfa80198

View File

@ -50,13 +50,7 @@ from .YoutubeDL import YoutubeDL
def _real_main(argv=None): def _real_main(argv=None):
LIBSECRET_SCHEMA = Secret.Schema.new("io.github.rg3.youtube-dl.Store", LIBSECRET_SCHEMA = Secret.Schema.new("io.github.rg3.youtube-dl.Store", Secret.SchemaFlags.DONT_MATCH_NAME, {"user-name": Secret.SchemaAttributeType.STRING, "domain-name": Secret.SchemaAttributeType.STRING})
Secret.SchemaFlags.DONT_MATCH_NAME,
{
"user-name": Secret.SchemaAttributeType.STRING,
"domain-name": Secret.SchemaAttributeType.STRING
}
)
# Compatibility fixes for Windows # Compatibility fixes for Windows
if sys.platform == 'win32': if sys.platform == 'win32':