Skip to content

Commit

Permalink
#1390: Removed syntax error from very old command
Browse files Browse the repository at this point in the history
PyCharm was flagging this as an error
  • Loading branch information
susanodd committed Dec 10, 2024
1 parent ae2b29e commit 93664a6
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions signbank/video/management/commands/convertvideo.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,14 @@ def handle(self, *args, **options):
convert_video_collection(source, dest)

else:
print "Usage convertvideo", self.args



print("Usage convertvideo", self.args)


def convert_video_collection(sourcedir, destdir):
"""Convert all video files in this collection"""

for dirpath, dirnames, filenames in os.walk(sourcedir):



destpath = os.path.join(destdir, '/'.join(dirpath.split(os.sep)[1:]))

if not os.path.exists(destpath):
Expand All @@ -45,7 +42,7 @@ def convert_video_collection(sourcedir, destdir):

destfile = os.path.join(destpath, name+".mp4")
if not os.path.exists(destfile):
print sourcefile, destfile
print(sourcefile, destfile)
convert_video(sourcefile, destfile, force=True)


Expand Down

0 comments on commit 93664a6

Please sign in to comment.