示例#1
0
def main():
    args = docopt(__doc__, version='katastrophe 1.1.3')
    if args["--movies"]:
        movies_torrent()
    elif args["--tv"]:
        tv_torrent()
    elif args['--anime']:
        anime_torrent()
    elif args["--songs"]:
        music_torrent()
    elif args["--losslessmusic"]:
        loslessmusic_torrent()
    elif args["--appsandgames"]:
        appsndgames_torrent()
    elif args["--books"]:
        books_torrent()
    else:
        page = 1
        print("Torrent Search : "),
        query = raw_input_()
        table = fetch(query, page)

        while True:
            print('Enter torrent No. to download or m for more or b for back or e to exit : '),
            serial = raw_input_()
            if serial == 'm' or serial == 'M':
                page += 1
                fetch(query, page)
            elif serial == 'b' or serial == 'B':
                if page != 1:
                    page -= 1
                    fetch(query, page)
                else:
                    print("\n Can't Go Back !\n")
            elif serial == 'e' or serial == 'E':
                break
            else:
                download_torrent(int(serial))
                break
示例#2
0
def main():
    args = docopt(__doc__, version='katastrophe 1.1.3')
    if args["--movies"]:
        movies_torrent()
    elif args["--tv"]:
        tv_torrent()
    elif args['--anime']:
        anime_torrent()
    elif args["--songs"]:
        music_torrent()
    elif args["--losslessmusic"]:
        loslessmusic_torrent()
    elif args["--appsandgames"]:
        appsndgames_torrent()
    elif args["--books"]:
        books_torrent()
    else:
        page = 1
        print("Torrent Search : "),
        query = raw_input_()
        table = fetch(query, page)

        while True:
            print('Enter torrent No. to download or m for more or b for back or e to exit : '),
            serial = raw_input_()
            if serial == 'm' or serial == 'M':
                page += 1
                fetch(query, page)
            elif serial == 'b' or serial == 'B':
                if page != 1:
                    page -= 1
                    fetch(query, page)
                else:
                    print("\n Can't Go Back !\n")
            elif serial == 'e' or serial == 'E':
                break
            else:
                download_torrent(int(serial))
                break
示例#3
0
def main():
    args = docopt(__doc__, version='katastrophe 1.1.9')
    if args["--newmovies"]:
        movies_torrent()
    elif args["--newtv"]:
        tv_torrent()
    elif args['--newanime']:
        anime_torrent()
    elif args["--newsongs"]:
        music_torrent()
    elif args["--newlosslessmusic"]:
        losslessmusic_torrent()
    elif args["--newgames"]:
        games_torrent()
    elif args["--newapplications"]:
        applications_torrent()
    elif args["--newbooks"]:
        books_torrent()
    elif args["--xxx"]:
        xxx_torrent()
    elif args["--movies"]:
        categories(0)
    elif args["--tv"]:
        categories(1)
    elif args["--anime"]:
        categories(2)
    elif args["--songs"]:
        categories(3)
    elif args["--books"]:
        categories(4)
    elif args["--games"]:
        categories(5)
    elif args["--applications"]:
        categories(6)
    elif args["--XXX"]:
        categories(7)
    else:
        page = 1
        print("Torrent Search : "),
        query = raw_input_()
        table = fetch(query, page)

        while True:
            print(
                'Enter torrent No.(s) to download or m for more or b for back or e to exit : '
            ),
            serial = raw_input_()
            if serial == 'm' or serial == 'M':
                page += 1
                fetch(query, page)
            elif serial == 'b' or serial == 'B':
                if page != 1:
                    page -= 1
                    fetch(query, page)
                else:
                    print("\n Can't Go Back !\n")
            elif serial == 'e' or serial == 'E':
                break
            else:
                if ',' in serial:
                    numbs = serial.split(',')
                    if len(numbs) < 3:
                        if numbs[0] != '' and numbs[1] != '':
                            start = int(numbs[0])
                            end = int(numbs[1])
                            if start < end:
                                if end < 26 and start > 0:
                                    for i in xrange(start, end + 1):
                                        download_torrent(i)
                            break
                        elif numbs[0] != '' and numbs[1] == '':
                            start = int(numbs[0])
                            if start > 0 and start < 26:
                                for i in xrange(start, 26):
                                    download_torrent(i)
                            break
                        else:
                            end = int(numbs[1])
                            if end > 0 and end < 26:
                                for i in xrange(1, end + 1):
                                    download_torrent(i)
                            break
                    else:
                        for sn in numbs:
                            i = int(sn)
                            if i > 0 and i < 26:
                                download_torrent(i)
                            else:
                                print "\n\n\tINCORRECT SERIAL NUMBERS!!\n\n"
                        break

                else:
                    if int(serial) <= 25 and int(serial) >= 1:
                        download_torrent(int(serial))
                        break
                    else:
                        print "\n\n\tINCORRECT SERIAL, TORRRENT DOES NOT EXIST!!\n\n"
示例#4
0
def main():
    args = docopt(__doc__, version='katastrophe 2.0.4')
    ssl = True
    if args['--verifyssl'] == 'false' or args['--verifyssl'] == 'False':
        ssl = False
    if args["--newmovies"]:
        movies_torrent(ssl)
    elif args["--newtv"]:
        tv_torrent(ssl)
    elif args['--newanime']:
        anime_torrent(ssl)
    elif args["--newsongs"]:
        music_torrent(ssl)
    elif args["--newlosslessmusic"]:
        losslessmusic_torrent(ssl)
    elif args["--newgames"]:
        games_torrent(ssl)
    elif args["--newapplications"]:
        applications_torrent(ssl)
    elif args["--newbooks"]:
        books_torrent(ssl)
    elif args["--xxx"]:
        xxx_torrent(ssl)
    elif args["--movies"]:
        categories(0,ssl)
    elif args["--tv"]:
        categories(1,ssl)
    elif args["--anime"]:
        categories(2,ssl)
    elif args["--songs"]:
        categories(3,ssl)
    elif args["--books"]:
        categories(4,ssl)
    elif args["--games"]:
        categories(5,ssl)
    elif args["--applications"]:
        categories(6,ssl)
    elif args["--XXX"]:
        categories(7,ssl)
    else:
        page = 1
        print("Torrent Search : "),
        query = raw_input_()
        table = fetch(query, page, ssl)

        while True:
            print('Enter torrent No.(s) to download or m for more or b for back or e to exit : '),
            serial = raw_input_()
            if serial == 'm' or serial == 'M':
                page += 1
                fetch(query, page, ssl)
            elif serial == 'b' or serial == 'B':
                if page != 1:
                    page -= 1
                    fetch(query, page, ssl)
                else:
                    print("\n Can't Go Back !\n")
            elif serial == 'e' or serial == 'E':
                break
            else:
                if ',' in serial:
                    numbs = serial.split(',')
                    if len(numbs) < 3:
                        if numbs[0] != '' and numbs[1] != '' :
                            start = int(numbs[0])
                            end = int(numbs[1])
                            if start < end:
                                if end < 26 and start > 0:
                                    for i in xrange(start,end+1):
                                        download_torrent(i)
                            break
                        elif numbs[0] != '' and numbs[1] == '' :
                            start = int(numbs[0])
                            if start > 0 and start < 26:
                                for i in xrange(start,26):
                                    download_torrent(i)
                            break
                        else:
                            end = int(numbs[1])
                            if end > 0 and end < 26:
                                for i in xrange(1,end+1):
                                    download_torrent(i)
                            break
                    else:
                        for sn in numbs:
                            i = int(sn)
                            if i > 0 and i < 26:
                                download_torrent(i)
                            else:
                                print "\n\n\tINCORRECT SERIAL NUMBERS!!\n\n"
                        break

                else:
                    if int(serial) <= 25 and int(serial) >= 1: 
                        download_torrent(int(serial))
                        break
                    else:
                        print "\n\n\tINCORRECT SERIAL, TORRRENT DOES NOT EXIST!!\n\n"