aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/downloader/rtsp.py
diff options
context:
space:
mode:
Diffstat (limited to 'hypervideo_dl/downloader/rtsp.py')
-rw-r--r--hypervideo_dl/downloader/rtsp.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/hypervideo_dl/downloader/rtsp.py b/hypervideo_dl/downloader/rtsp.py
index 7815d59..e89269f 100644
--- a/hypervideo_dl/downloader/rtsp.py
+++ b/hypervideo_dl/downloader/rtsp.py
@@ -1,13 +1,8 @@
-from __future__ import unicode_literals
-
import os
import subprocess
from .common import FileDownloader
-from ..utils import (
- check_executable,
- encodeFilename,
-)
+from ..utils import check_executable, encodeFilename
class RtspFD(FileDownloader):
@@ -32,7 +27,7 @@ class RtspFD(FileDownloader):
retval = subprocess.call(args)
if retval == 0:
fsize = os.path.getsize(encodeFilename(tmpfilename))
- self.to_screen('\r[%s] %s bytes' % (args[0], fsize))
+ self.to_screen(f'\r[{args[0]}] {fsize} bytes')
self.try_rename(tmpfilename, filename)
self._hook_progress({
'downloaded_bytes': fsize,