1
0
mirror of https://github.com/vikstrous/pirate-get synced 2025-01-10 10:04:21 +01:00

Merge pull request #96 from vikstrous/fix-95

fix saving magents and torrents to a file
This commit is contained in:
Viktor Stanchev 2016-10-23 16:38:12 -07:00 committed by GitHub
commit 780f8de334

View File

@ -395,12 +395,12 @@ def pirate_main(args):
if args.output == 'save_magnet_files': if args.output == 'save_magnet_files':
printer.print('Saving selected magnets...') printer.print('Saving selected magnets...')
pirate.torrent.save_magnets(choices, results, args.save_directory) pirate.torrent.save_magnets(printer, choices, results, args.save_directory)
return return
if args.output == 'save_torrent_files': if args.output == 'save_torrent_files':
printer.print('Saving selected torrents...') printer.print('Saving selected torrents...')
pirate.torrent.save_torrents(choices, results, args.save_directory) pirate.torrent.save_torrents(printer, choices, results, args.save_directory)
return return
for choice in choices: for choice in choices: