|
|
@@ -50,24 +50,40 @@ def chapter(sess,ep):
|
|
|
print(str(ep))
|
|
|
print(chapPars.serverurl)
|
|
|
count = 0
|
|
|
- print(ep['name'] + ' - ' + ep['num'])
|
|
|
- print('1 - Download')
|
|
|
- print('2 - mark as read')
|
|
|
- print('3 - go to next')
|
|
|
- print('4 - go to previous')
|
|
|
- print('5 - Details')
|
|
|
- uin = input('$>: ')
|
|
|
- if uin == '1':
|
|
|
- print(path)
|
|
|
- for p in tqdm(chapPars.images):
|
|
|
- call(['curl',chapPars.serverurl + p['file'],'-o',path+str(count).zfill(2)+p['file'][p['file'].rindex('.'):]])
|
|
|
- count +=1
|
|
|
+ while True:
|
|
|
+ print(ep['name'] + ' - ' + ep['num'])
|
|
|
+ print('1 - Download')
|
|
|
+ print('2 - mark as read')
|
|
|
+ print('3 - go to next')
|
|
|
+ print('4 - go to previous')
|
|
|
+ print('5 - Details')
|
|
|
+ print('6 - read local')
|
|
|
+ print('99 - Back')
|
|
|
+ uin = input('$>: ')
|
|
|
+ if uin == '1':
|
|
|
+ print(path)
|
|
|
+ for p in tqdm(chapPars.images):
|
|
|
+ call(['curl',chapPars.serverurl + p['file'],'-o',path+str(count).zfill(2)+p['file'][p['file'].rindex('.'):]])
|
|
|
+ count +=1
|
|
|
|
|
|
- if uin == '2':
|
|
|
- url = 'https://proxer.me' + ep['link'].replace('#top','?format=json&type=reminder&'+ chapPars.token +'=1&title=reminder_next')
|
|
|
- response = sess.post(url,data = {"check":1})
|
|
|
- print(url)
|
|
|
- print(str(response.content))
|
|
|
+ if uin == '2':
|
|
|
+ url = 'https://proxer.me' + ep['link'].replace('#top','?format=json&type=reminder&'+ chapPars.token +'=1&title=reminder_next')
|
|
|
+ response = sess.post(url,data = {"check":1})
|
|
|
+ print(str(response.content))
|
|
|
+
|
|
|
+ if uin =='4':
|
|
|
+ prev = ep
|
|
|
+ linkParts = ep['link'].split('/')
|
|
|
+ linkParts[3] = str(int(linkParts[3]) - 1)
|
|
|
+ prev['link'] = '/'.join(linkParts)
|
|
|
+ prev['num'] = str(int(prev['num'])-1)
|
|
|
+ chapter(sess,prev)
|
|
|
+
|
|
|
+ if uin =='6':
|
|
|
+ call(['feh','-z','-S','name',path])
|
|
|
+
|
|
|
+ if uin == '99':
|
|
|
+ break
|
|
|
|
|
|
def episode(sess,ep):
|
|
|
response = sess.get('https://proxer.me'+ep['link'])
|
|
|
@@ -81,27 +97,26 @@ def episode(sess,ep):
|
|
|
ppars = playerParser()
|
|
|
ppars.feed(str(response.content))
|
|
|
link = ppars.url
|
|
|
- print(link)
|
|
|
- print(ep['name'] + ' - ' + ep['num'])
|
|
|
- print('1 - open with vlc')
|
|
|
- print('2 - download')
|
|
|
- print('3 - mark as watched')
|
|
|
- print('4 - go to next')
|
|
|
- print('5 - go to previous')
|
|
|
- print('6 - Details')
|
|
|
- path = 'anime/'+ep['name']+'/'
|
|
|
- if not os.path.exists(path):
|
|
|
- os.makedirs(path)
|
|
|
- uin = input('$>: ')
|
|
|
- if uin == '1':
|
|
|
- call(["vlc", link])
|
|
|
- if uin == '2':
|
|
|
- call(['curl',link,'-o',path+ep['num']+'.mp4'])
|
|
|
- if uin == '3':
|
|
|
- url = 'https://proxer.me' + ep['link'].replace('#top','?format=json&type=reminder&'+ epars.token +'=1&title=reminder_next')
|
|
|
- response = sess.post(url,data = {"check":1})
|
|
|
- print(url)
|
|
|
- print(str(response.content))
|
|
|
+ while True:
|
|
|
+ print(ep['name'] + ' - ' + ep['num'])
|
|
|
+ print('1 - open with vlc')
|
|
|
+ print('2 - download')
|
|
|
+ print('3 - mark as watched')
|
|
|
+ print('4 - go to next')
|
|
|
+ print('5 - go to previous')
|
|
|
+ print('6 - Details')
|
|
|
+ path = 'anime/'+ep['name']+'/'
|
|
|
+ if not os.path.exists(path):
|
|
|
+ os.makedirs(path)
|
|
|
+ uin = input('$>: ')
|
|
|
+ if uin == '1':
|
|
|
+ call(["vlc", link])
|
|
|
+ if uin == '2':
|
|
|
+ call(['curl',link,'-o',path+ep['num']+'.mp4'])
|
|
|
+ if uin == '3':
|
|
|
+ url = 'https://proxer.me' + ep['link'].replace('#top','?format=json&type=reminder&'+ epars.token +'=1&title=reminder_next')
|
|
|
+ response = sess.post(url,data = {"check":1})
|
|
|
+ print(str(response.content))
|
|
|
|
|
|
def LesezeichenAll(sess):
|
|
|
watchlist = []
|