Skip to content

Commit

Permalink
docs: add some more documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
escaped committed Nov 15, 2020
1 parent 346c2d8 commit 1af89ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion video_encoding/tasks.py
Expand Up @@ -76,7 +76,7 @@ def _encode(
Encode video and continously report encoding progress.
"""
# TODO do not upscale videos
# TODO move logic git VideoFormat class
# TODO move logic to Format model

with tempfile.NamedTemporaryFile(
suffix='_{name}.{extension}'.format(**options)
Expand Down
3 changes: 3 additions & 0 deletions video_encoding/utils.py
Expand Up @@ -8,6 +8,9 @@

@contextlib.contextmanager
def get_local_path(fieldfile: File) -> Generator[str, None, None]:
"""
Get a local file to work with from a file retrieved from a FileField.
"""
if not hasattr(fieldfile, 'storage'):
# Its a local file with no storage abstraction
try:
Expand Down

0 comments on commit 1af89ba

Please sign in to comment.