forked from soutade/libgourou
We can now specify directly file path for acsmdownloader and adept_remove (-f stille keeped for compatibility)
This commit is contained in:
parent
fc839e671a
commit
891ed05926
|
@ -290,6 +290,9 @@ int main(int argc, char** argv)
|
||||||
|
|
||||||
gourou::DRMProcessor::setLogLevel(verbose);
|
gourou::DRMProcessor::setLogLevel(verbose);
|
||||||
|
|
||||||
|
if (optind == argc-1)
|
||||||
|
acsmFile = argv[optind];
|
||||||
|
|
||||||
if ((!acsmFile && !exportPrivateKey) || (outputDir && !outputDir[0]) ||
|
if ((!acsmFile && !exportPrivateKey) || (outputDir && !outputDir[0]) ||
|
||||||
(outputFile && !outputFile[0]))
|
(outputFile && !outputFile[0]))
|
||||||
{
|
{
|
||||||
|
|
|
@ -243,6 +243,9 @@ int main(int argc, char** argv)
|
||||||
|
|
||||||
gourou::DRMProcessor::setLogLevel(verbose);
|
gourou::DRMProcessor::setLogLevel(verbose);
|
||||||
|
|
||||||
|
if (optind == argc-1)
|
||||||
|
inputFile = argv[optind];
|
||||||
|
|
||||||
if (!inputFile || (outputDir && !outputDir[0]) ||
|
if (!inputFile || (outputDir && !outputDir[0]) ||
|
||||||
(outputFile && !outputFile[0]))
|
(outputFile && !outputFile[0]))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user