Skip to content

Commit

Permalink
fix migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
DerouineauNicolas committed Jun 19, 2024
1 parent 6fcfa4a commit f25954f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ SUBPROCESS_VERBOSE_OUTPUT=False

#Number of gunicorn worker (should be set accordingly to your hardware)
NUM_GUNICORN_WORKER=4

#If a tmdb API token is provided, Movies/Tv show cover will be downloaded from there.
TMBD_KEY=
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ The following variables can be configured in .env file:
REACT_APP_SENTRY_DSN=https://foo.ingest.sentry.io/bar
HIGH_LAYER_QUALITY=3
LOW_QUALITY_LAYER_BITRATE=400000
TMBD_KEY=


#### Contributing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def get_cover(apps, schema_editor):
movies = Movie.objects.all()
for movie in movies:
output_file = "/usr/static/{}.jpeg".format(movie.title)
ret = cvdwnld.download_cover(movie.title, output_file, True)
ret = cvdwnld.download_cover(movie.title, output_file, False)
if ret > 0:
videos = movie.video_set.all()
for video in videos:
Expand All @@ -31,10 +31,6 @@ def get_cover(apps, schema_editor):
serie.save()






class Migration(migrations.Migration):

dependencies = [
Expand Down

0 comments on commit f25954f

Please sign in to comment.