Skip to content

Commit

Permalink
abematv: remove verbose and fix resolution logging
Browse files Browse the repository at this point in the history
  • Loading branch information
NoAiOne committed Dec 20, 2019
1 parent 76a611a commit a4b0e79
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions yuu/ext/abematv.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,9 @@ def parse_m3u8(self):

if self.resolution[:-1] != resgex:
self.resolution = resgex + 'p'
if self.verbose:
self.yuu_logger.debug('Total files: {}'.format(len(files)))
self.yuu_logger.debug('IV: {}'.format(iv))
self.yuu_logger.debug('Ticket key: {}'.format(ticket))
self.yuu_logger.debug('Total files: {}'.format(len(files)))
self.yuu_logger.debug('IV: {}'.format(iv))
self.yuu_logger.debug('Ticket key: {}'.format(ticket))

n = 0.0
for seg in x.segments:
Expand Down Expand Up @@ -493,7 +492,9 @@ def resolutions(self):
temp_.append('{w}x{h}'.format(w=r[0], h=r[1]))
ava_reso.append(temp_)

self.yuu_logger.debug('Resolution list: {}'.format(', '.join(ava_reso)))
if ava_reso:
reso = [r[0] for r in ava_reso]
self.yuu_logger.debug('Resolution list: {}'.format(', '.join(reso)))

return ava_reso, 'Success'

Expand Down

0 comments on commit a4b0e79

Please sign in to comment.