Ejemplo n.º 1
0
from showDown import showDown
import argparse

user = showDown()

parser = argparse.ArgumentParser(
    description='A Command line tool to download your favorie TV Shows')
parser.add_argument(
    '-dl',
    '--downloadlatest',
    help='Download the latest episode of your favorite TV Show',
    required=False)
parser.add_argument('-p', '--proxy', help='Set the proxy', required=False)
parser.add_argument('-u',
                    '--unsetproxy',
                    help='Unset the proxy',
                    action='store_true')

args = vars(parser.parse_args())

if args['proxy']:
    user.setproxy(args['proxy'])

if args['unsetproxy']:
    user.unsetproxy()

if args['downloadlatest']:
    user.downloadLatest(args['downloadlatest'])
Ejemplo n.º 2
0
from showDown import showDown

apple = showDown()
apple.download('half')
Ejemplo n.º 3
0
from showDown import showDown
import argparse

user = showDown()

parser = argparse.ArgumentParser(description='A Command line tool to download your favorite TV Shows')
parser.add_argument('-l','--listshows', help='List available Shows', action='store_true')
parser.add_argument('-dl','--downloadlatest', help='Download the latest episode of your favorite TV Show', required=False)
parser.add_argument('-p','--proxy', help='Set the proxy', required=False)
parser.add_argument('-u','--unsetproxy', help='Unset the proxy', action='store_true')

args = vars(parser.parse_args())

if args['proxy']:
    user.setproxy(args['proxy'])

if args['unsetproxy']:
    user.unsetproxy()

if args['downloadlatest']:
    user.downloadLatest(args['downloadlatest'])

if args['listshows']:
    user.listAvailableShows()