Ejemplo n.º 1
0
def makechoise():
    seleccion = 0
    print '''Options:
0.- Exit
1.- Download Anime
2.- Download Subtitle only
3.- Login
4.- Login As Guest
5.- Download an entire Anime(Autocatch links)
6.- Run Queue
7.- Settings
'''
    try:
        seleccion = int(input("> "))
    except:
        try:
            os.system('cls')
        except:
            try:
                os.system('clear')
            except:
                pass
        print "ERROR: Invalid option."
        makechoise()
    if seleccion == 1:
        ultimate.ultimate(raw_input('Please enter Crunchyroll video URL:\n'),
                          '', '')
    elif seleccion == 2:
        decode.decode(raw_input('Please enter Crunchyroll video URL:\n'))
    elif seleccion == 3:
        username = raw_input(u'Username: '******'Password(don\'t worry the password are typing but hidden:')
        login.login(username, password)
        makechoise()
    elif seleccion == 4:
        login.login('', '')
        makechoise()
    elif seleccion == 5:
        autocatch()
        queueu('.\\queue.txt')
    elif seleccion == 6:
        queueu('.\\queue.txt')
    elif seleccion == 7:
        settings_()
        makechoise()
    elif seleccion == 8:
        import debug
    elif seleccion == 0:
        sys.exit()
    else:
        try:
            os.system('cls')
        except:
            try:
                os.system('clear')
            except:
                pass
        print "ERROR: Invalid option."
        makechoise()
def makechoise():
    seleccion = 0
    print '''Options:
0.- Exit
1.- Download d'un episode
2.- Download des sous-tire
3.- Seconnecter avec son compte
4.- Se connecter en invite
5.- demarer une liste manuelle
6.- Paramettre
7.- Auto recuperation des liens et lancement
'''
    try:
        seleccion = int(input("> "))
    except:
        try:
            os.system('cls')
        except:
            try:
                os.system('clear')
            except:
                pass
        print "ERROR: Invalid option."
        makechoise()
    if seleccion == 1 :
        ultimate.ultimate(raw_input('Please enter Crunchyroll video URL:\n'), '', '')
    elif seleccion == 2 :
        decode.decode(raw_input('Please enter Crunchyroll video URL:\n'))
    elif seleccion == 3 :
        username = raw_input(u'Username: '******'Password(don\'t worry the password are typing but hidden:')
        login.login(username, password)
        makechoise()
    elif seleccion == 4 :
        login.login('', '')
        makechoise()
    elif seleccion == 5 :
         queueu('./queue.txt')
         makechoice()
    elif seleccion == 6 :
        settings_()
        makechoise()
    elif seleccion == 7 :
        autocatch()
        queueu('./queue.txt')
    elif seleccion == 8 :
        import debug
    elif seleccion == 0 :
        sys.exit()
    else:
        try:
            os.system('cls')
        except:
            try:
                os.system('clear')
            except:
                pass
        print "ERROR: Invalid option."
        makechoise()
def makechoise():
    seleccion = 0
    print '''Options:
0.- Exit
1.- Download Anime
2.- Download Subtitle only
3.- Login
4.- Login As Guest
5.- Download an entire Anime(Autocatch links)
6.- Run Queue
7.- Settings
'''
    try:
        seleccion = int(input("> "))
    except:
        try:
            os.system('cls')
        except:
            try:
                os.system('clear')
            except:
                pass
        print "ERROR: Invalid option."
        makechoise()
    if seleccion == 1 :
        ultimate.ultimate(raw_input('Please enter Crunchyroll video URL:\n'), '', '')
    elif seleccion == 2 :
        decode.decode(raw_input('Please enter Crunchyroll video URL:\n'))
    elif seleccion == 3 :
        username = raw_input(u'Username: '******'Password(don\'t worry the password are typing but hidden:')
        login.login(username, password)
        makechoise()
    elif seleccion == 4 :
        login.login('', '')
        makechoise()
    elif seleccion == 5 :
        autocatch()
        queueu('.\\queue.txt')
    elif seleccion == 6 :
        queueu('.\\queue.txt')
    elif seleccion == 7 :
        settings_()
        makechoise()
    elif seleccion == 8 :
        import debug
    elif seleccion == 0 :
        sys.exit()
    else:
        try:
            os.system('cls')
        except:
            try:
                os.system('clear')
            except:
                pass
        print "ERROR: Invalid option."
        makechoise()
Ejemplo n.º 4
0
def make_choise():
    #seleccion = 0
    while True:
        print(idle_cmd_txt_fix('''Options:
1.- Download Anime 
2.- Download Subtitle only
3.- Login
4.- Login As Guest
5.- Download an entire Anime(Autocatch links)
6.- Run Queue
'''+('\n111.- '+'\x1b[31m'+'update'+ '\x1b[0m' if code_version[1] < code_version[0] else '\n')+'''
999.- Settings
000.- Exit'''))
        seleccion = input('> ')
        if seleccion == '':
            break
        elif not seleccion.isdigit():
            print(idle_cmd_txt_fix('\x1b[31m' + 'Invalid Input!' + '\x1b[0m'))
            continue
        elif int(seleccion) == 0:
            break
        elif int(seleccion) == 1:
            ultimate()
            #mkv_merge('.\export\\The Rising of the Shield Hero - 1 - The Shield Hero.ts','480p','ara')
            pass
        elif int(seleccion) == 2:
            #decode('http://www.crunchyroll.com/military/episode-1-the-mission-begins-668503')
            #decode(input('Please enter Crunchyroll video URL:\n'))
            vilos_subtitle(input('Please enter Crunchyroll video URL:\n'))
            pass
        elif int(seleccion) == 3:
            username = input(u'Username: '******'Password(don\'t worry the password are typing but hidden:')
            login(username, password)
            continue
        elif int(seleccion) == 4:
            login('', '')
            continue
        elif int(seleccion) == 5:
            #pass
            autocatch()
            queueu(os.path.join('.','queue.txt'))
        elif int(seleccion) == 6:
            queueu(os.path.join('.','queue.txt'))
        elif int(seleccion) == 111:
            subprocess.call([sys.executable.replace('pythonw.exe', 'python.exe'),
                             os.path.join(".", "crunchy-xml-decoder", "updater.py")])
        elif int(seleccion) == 999:
            settings_()
        else:
            print(idle_cmd_txt_fix('\x1b[31m' + 'Invalid Input!' + '\x1b[0m'))
            continue
Ejemplo n.º 5
0
def make_choise():
    #seleccion = 0
    while True:
        print(
            idle_cmd_txt_fix('''Options:
1.- Download Anime 
2.- Download Subtitle only
3.- Login
4.- Login As Guest
5.- Download an entire Anime(Autocatch links)
6.- Run Queue
    
999.- Settings
000.- Exit'''))
        seleccion = input('> ')
        if seleccion == '':
            break
        elif not seleccion.isdigit():
            print(idle_cmd_txt_fix('\x1b[31m' + 'Invalid Input!' + '\x1b[0m'))
            continue
        elif int(seleccion) == 0:
            break
        elif int(seleccion) == 1:
            ultimate()
            #mkv_merge('.\export\\The Rising of the Shield Hero - 1 - The Shield Hero.ts','480p','ara')
            pass
        elif int(seleccion) == 2:
            decode(
                'http://www.crunchyroll.com/military/episode-1-the-mission-begins-668503'
            )
            #decode(input('Please enter Crunchyroll video URL:\n'))
            pass
        elif int(seleccion) == 3:
            username = input(u'Username: '******'Password(don\'t worry the password are typing but hidden:')
            login(username, password)
            continue
        elif int(seleccion) == 4:
            login('', '')
            continue
        elif int(seleccion) == 5:
            #pass
            autocatch()
            #queueu('.\\queue.txt')
        elif int(seleccion) == 6:
            pass
        elif int(seleccion) == 999:
            settings_()
        else:
            print(idle_cmd_txt_fix('\x1b[31m' + 'Invalid Input!' + '\x1b[0m'))
            continue
def queueu(queuepath):
    if not os.path.exists(queuepath):
        open(queuepath, 'w').write(u'#the any line that has hash before the link will be skiped\n')
        subprocess.call('notepad.exe '+queuepath)
    lines = open(queuepath).readlines()
    for line in lines:
        if line.rstrip('\n') ==''.join(line.rstrip('\n').split('#', 1)):
            #print ''.join(line.rstrip('\n').split('#', 1))
            ultimate.ultimate(line.rstrip('\n'), '', '')
            for i in range(0, len(lines)):
                if lines[i]== line:
                    lines[i]='#'+lines[i]
                    new_line_2=''
                    for new_line_ in lines:
                        try:
                            new_line_2=new_line_2+new_line_
                        except:
                            new_line_2=new_line_
                    open(queuepath, 'w').write(new_line_2)
def queueu(queuepath):
    if not os.path.exists(queuepath):
        open(queuepath, 'w').write(u'#the any line that has hash before the link will be skiped\n')
        subprocess.call('notepad.exe '+queuepath)
    lines = open(queuepath).readlines()
    for line in lines:
        if line.rstrip('\n') ==''.join(line.rstrip('\n').split('#', 1)):
            #print ''.join(line.rstrip('\n').split('#', 1))
            ultimate.ultimate(line.rstrip('\n'), '', '')
            for i in range(0, len(lines)):
                if lines[i]== line:
                    lines[i]='#'+lines[i]
                    new_line_2=''
                    for new_line_ in lines:
                        try:
                            new_line_2=new_line_2+new_line_
                        except:
                            new_line_2=new_line_
                    open(queuepath, 'w').write(new_line_2)
Ejemplo n.º 8
0
def debug_nice(locals_dict, keys=[]):
    globals()['types'] = __import__('types')
    exclude_keys = [
        'copyright', 'credits', 'False', 'SW_HIDE', 'STDOUT', 'STARTUPINFO',
        'MAXFD', 'pywintypes', 'STARTF_USESTDHANDLES', 'PIPE',
        'STD_ERROR_HANDLE', 'CREATE_NEW_CONSOLE', 'STARTF_USESHOWWINDOW',
        'mswindows', 'STD_INPUT_HANDLE', 'CREATE_NEW_PROCESS_GROUP',
        'STD_OUTPUT_HANDLE', 'Hashable', 'Sized', 'Set', 'Container',
        'Iterator', 'ValuesView', 'MutableMapping', 'Sequence', 'Mapping',
        'MutableSequence', 'Callable', 'Iterable', 'ItemsView', 'KeysView',
        'MutableSet', 'MappingView', 'SafeConfigParser', 'RawConfigParser',
        'MAX_INTERPOLATION_DEPTH', 'DEFAULTSECT', 'ConfigParser', 'True',
        'None', 'Ellipsis', 'quit'
    ]
    exclude_valuetypes = [
        types.BuiltinFunctionType, types.BuiltinMethodType, types.ModuleType,
        types.TypeType, types.FunctionType
    ]
    return {
        k: v
        for k, v in locals_dict.iteritems()
        if not (k in keys or k in exclude_keys or type(v) in exclude_valuetypes
                ) and k[0] != '_'
    }


sys.settrace(traceit)

ultimate.ultimate('', '', '')
debugfile.close()
#ultimate()
if arg.debug:
    import debug
    sys.exit()
if arg.subs_only:
    if arg.url:
        decode.decode(page_url)
    else:
        decode.decode(raw_input('Please enter Crunchyroll video URL:\n'))
    sys.exit()
if arg.default_settings:
    defaultsettings(iquality, ilang1, ilang2, iforcesub, iforceusa, ilocalizecookies)
    sys.exit()
if arg.queue:
    queueu(arg.queue)
if arg.url and not arg.subs_only:
    ultimate.ultimate(page_url, seasonnum, epnum)
else:
    makechoise()












Ejemplo n.º 10
0
    login.login('', '')
if arg.login:
    username = arg.login[0]
    password = arg.login[1]
    login.login(username, password)
if arg.debug:
    import debug
    sys.exit()
if arg.subs_only:
    if arg.url:
        decode.decode(page_url)
    else:
        decode.decode(raw_input('Please enter Crunchyroll video URL:\n'))
    sys.exit()
if arg.default_settings:
    defaultsettings(iquality, ilang1, ilang2, iforcesub, iforceusa,
                    ilocalizecookies)
    sys.exit()
if arg.queue:
    queueu(arg.queue)
if arg.url and not arg.subs_only:
    ultimate.ultimate(page_url, seasonnum, epnum)
else:
    makechoise()

#print 'username'
#print 'password'
#print 'page_url'
#print 'seasonnum'
#import ultimate
def makechoise():
    seleccion = 0
    print '''Options:
0.- Exit
1.- Download d'un episode
2.- Download des sous-tire
3.- Seconnecter avec son compte
4.- Se connecter en invite
5.- demarer une liste manuelle
6.- Paramettre
7.- Auto recuperation des liens et lancement
'''
    try:
        seleccion = int(input("> "))
    except:
        try:
            os.system('cls')
        except:
            try:
                os.system('clear')
            except:
                pass
        print "ERROR: Invalid option."
        makechoise()
    if seleccion == 1:
        ultimate.ultimate(raw_input('Please enter Crunchyroll video URL:\n'),
                          '', '')
    elif seleccion == 2:
        decode.decode(raw_input('Please enter Crunchyroll video URL:\n'))
    elif seleccion == 3:
        username = raw_input(u'Username: '******'Password(don\'t worry the password are typing but hidden:')
        login.login(username, password)
        makechoise()
    elif seleccion == 4:
        login.login('', '')
        makechoise()
    elif seleccion == 5:
        queueu('./queue.txt')
        makechoice()
    elif seleccion == 6:
        settings_()
        makechoise()
    elif seleccion == 7:
        autocatch()
        queueu('./queue.txt')
    elif seleccion == 8:
        import debug
    elif seleccion == 0:
        sys.exit()
    else:
        try:
            os.system('cls')
        except:
            try:
                os.system('clear')
            except:
                pass
        print "ERROR: Invalid option."
        makechoise()
Ejemplo n.º 12
0
    globals()['types'] = __import__('types')
    exclude_keys = ['copyright', 'credits', 'False',
                    'SW_HIDE', 'STDOUT', 'STARTUPINFO',
                    'MAXFD', 'pywintypes', 'STARTF_USESTDHANDLES',
                    'PIPE', 'STD_ERROR_HANDLE', 'CREATE_NEW_CONSOLE',
                    'STARTF_USESHOWWINDOW', 'mswindows', 'STD_INPUT_HANDLE',
                    'CREATE_NEW_PROCESS_GROUP', 'STD_OUTPUT_HANDLE', 'Hashable',
                    'Sized', 'Set', 'Container', 'Iterator', 'ValuesView',
                    'MutableMapping', 'Sequence', 'Mapping', 'MutableSequence',
                    'Callable', 'Iterable', 'ItemsView', 'KeysView', 'MutableSet',
                    'MappingView', 'SafeConfigParser','RawConfigParser',
                    'MAX_INTERPOLATION_DEPTH', 'DEFAULTSECT', 'ConfigParser',
                    'True', 'None', 'Ellipsis', 'quit']
    exclude_valuetypes = [types.BuiltinFunctionType,
                          types.BuiltinMethodType,
                          types.ModuleType,
                          types.TypeType,
                          types.FunctionType
                          ]
    return {k: v for k,v in locals_dict.iteritems() if not
               (k in keys or k in exclude_keys or type(v) in exclude_valuetypes)
               and k[0] != '_'
               }
sys.settrace(traceit)




ultimate.ultimate('', '', '')
debugfile.close()
#ultimate()