Skip to content

Commit

Permalink
* Bugfix pages in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
itsankoff committed Nov 3, 2023
1 parent 28e784a commit f819c45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ RUN pip install --no-cache-dir -r requirements.txt
ENV AUTH_TOKEN "<GOPRO_AUTH_TOKEN>"
ENV ACTION "download"
ENV START_PAGE "1"
ENV PAGES "1"
ENV PER_PAGE "30"
# Should mean all
ENV PAGES "1000000"
ENV PER_PAGE "15"
ENV DOWNLOAD_PATH "./download"
ENV PROGRESS_MODE "newline"
ENV PROGRESS_MODE "noline"

EXPOSE 80

Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def get_media(self, start_page=1, pages=sys.maxsize, per_page=30):
if total_pages == 0:
total_pages = content["_pages"]["total_pages"]

if current_page >= (start_page + pages) - 1 or current_page >= total_pages:
if current_page >= total_pages or current_page >= (start_page + pages) - 1:
break

current_page += 1
Expand Down

0 comments on commit f819c45

Please sign in to comment.