1
0
mirror of https://github.com/vikstrous/pirate-get synced 2025-01-09 09:59:51 +01:00

break some >80 chars lines

This commit is contained in:
Michele Guerini Rocco 2019-11-15 18:18:11 +01:00
parent 5368dacb29
commit a025dc7fc2
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -142,7 +142,8 @@ def parse_args(args_in):
help='list Sortable Types')
parser.add_argument('-L', '--local', dest='database',
help='a csv file containing the Pirate Bay database '
'downloaded from https://thepiratebay.org/static/dump/csv/')
'downloaded from '
'https://thepiratebay.org/static/dump/csv/')
parser.add_argument('-p', dest='pages', default=1, type=int,
help='the number of pages to fetch '
"(doesn't work with --local)")
@ -208,7 +209,7 @@ def combine_configs(config, args):
if not args.database:
args.database = config.get('LocalDB', 'path')
if args.disable_color or config.getboolean('Misc', 'colors') == False:
if args.disable_color or not config.getboolean('Misc', 'colors'):
args.color = False
else:
args.color = True
@ -417,12 +418,14 @@ def pirate_main(args):
if args.output == 'save_magnet_files':
printer.print('Saving selected magnets...')
pirate.torrent.save_magnets(printer, choices, results, args.save_directory)
pirate.torrent.save_magnets(printer, choices,
results, args.save_directory)
return
if args.output == 'save_torrent_files':
printer.print('Saving selected torrents...')
pirate.torrent.save_torrents(printer, choices, results, args.save_directory)
pirate.torrent.save_torrents(printer, choices,
results, args.save_directory)
return
for choice in choices: