fixing import errors

This commit is contained in:
Pawan Paudel
2021-05-26 14:37:44 +05:45
parent 0214721dd7
commit 3a38afeef0
5 changed files with 9 additions and 10 deletions

View File

@@ -52,8 +52,8 @@ class AudioKeyManager(PacketsReceiver):
return self.get_audio_key(gid, file_id, False)
raise RuntimeError(
"Failed fetching audio key! gid: {}, fileId: {}".format(
Utils.Utils.bytes_to_hex(gid),
Utils.Utils.bytes_to_hex(file_id)))
Utils.bytes_to_hex(gid),
Utils.bytes_to_hex(file_id)))
return key

View File

@@ -64,7 +64,7 @@ class CdnFeedHelper:
url = resp.url
CdnFeedHelper._LOGGER.debug("Fetched external url for {}: {}".format(
Utils.Utils.bytes_to_hex(episode.gid), url))
Utils.bytes_to_hex(episode.gid), url))
streamer = session.cdn().stream_external_episode(
episode, url, halt_listener)

View File

@@ -74,7 +74,7 @@ class ChannelManager(Closeable, PacketsReceiver.PacketsReceiver):
else:
self._LOGGER.warning(
"Couldn't handle packet, cmd: {}, payload: {}".format(
packet.cmd, Utils.Utils.bytes_to_hex(packet.payload)))
packet.cmd, Utils.bytes_to_hex(packet.payload)))
def close(self) -> None:
self._executorService.shutdown()