Skip to content

Commit

Permalink
save DS movie if not s3
Browse files Browse the repository at this point in the history
  • Loading branch information
oscie57 committed Jun 2, 2024
1 parent c7fa773 commit 807eea2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions theunderground/mobiclip.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,15 @@ def save_movie_data(movie_id: int, thumbnail_data: bytes, movie_data: bytes, ds_
movie.write(movie_data)
movie.close()

if ds_movie_data:
if not os.path.isdir(ds_movie_dir):
os.makedirs(ds_movie_dir)

# Write DS movie
ds_movie = open(f"{ds_movie_dir}/{movie_id}.enc", "wb")
ds_movie.write(ds_movie_data)
ds_movie.close()


def save_pay_movie_data(
movie_id: int, thumbnail_data: bytes, movie_data: bytes, poster_data: bytes
Expand Down

0 comments on commit 807eea2

Please sign in to comment.