diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2021-03-19 19:10:26 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2021-03-19 19:10:26 +0100 |
| commit | 17fb6581d305732e2cf0add7f3444e1aa80aec5c (patch) | |
| tree | 0da40c9f178d3ada44ced2517b6db82b96d8dc19 /cli/commands/site/populate.py | |
| parent | ccaa55434ff44e0149c5984f2e5968139bbe3baa (diff) | |
split tile handles into individual files. add video subsection loop
Diffstat (limited to 'cli/commands/site/populate.py')
| -rw-r--r-- | cli/commands/site/populate.py | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/cli/commands/site/populate.py b/cli/commands/site/populate.py index 4b5bb73..03914b2 100644 --- a/cli/commands/site/populate.py +++ b/cli/commands/site/populate.py @@ -1,13 +1,12 @@ import click -# lines = """/static/media/last-museum/zohra-opoku/.mp4 -# /static/media/last-museum/zohra-opoku/MVI_4388.mp4 -# /static/media/last-museum/zohra-opoku/MVI_4390.mp4 -# /static/media/last-museum/zohra-opoku/.mp4""".split("\n") - -lines = [ -"/static/media/last-museum/zohra-opoku/MVI_4367.mp4", -] +lines = """/static/media/last-museum/juliana-cerqueira-leite/01_JCL_AndyCbs_v1.mp4 +/static/media/last-museum/juliana-cerqueira-leite/02_JCL_Containers_v1.mp4 +/static/media/last-museum/juliana-cerqueira-leite/04_JCL_Repshp_v1.mp4 +/static/media/last-museum/juliana-cerqueira-leite/07_JCL_GmShp_v1.mp4 +/static/media/last-museum/juliana-cerqueira-leite/10_JCL_StreetPrtSftwr_v1.mp4 +/static/media/last-museum/juliana-cerqueira-leite/11_JCL_Oscilloscopes_v1.mp4 +""".split("\n") letters = ['a','b','c','d','e','f','g','h','i','j'] @@ -23,19 +22,19 @@ def cli(ctx): return None if resp.status_code != 200 else resp.json() graph_id = 3 - name = "Zohra Opoku. Chapter 9: To Me Belongs Yesterday" + name = "Juliana Cerqueira Leite. Stalfigenia, Chapter " index = 0 for url in lines: - slug = url.split("/")[5].replace(".mp4", "").lower() - slug = "opoku-" + "9-to-me-belongs-yesterday" # + letters[index] + # slug = url.split("/")[5].replace(".mp4", "").lower() + slug = "leite-" + letters[index] print(slug) index += 1 page_data = { "graph_id": graph_id, "path": slug, - "title": name, + "title": name + str(index), "username": "jules", "description":"", "settings": { |
