File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -36,12 +36,12 @@ jobs:
3636 uses : astral-sh/setup-uv@v7
3737
3838 - name : Download data
39- run : uv run make download EXCLUDE="youtube" > /dev/null 2>&1
39+ run : uv run make download > /dev/null 2>&1
4040 env :
4141 PRETALX_TOKEN : ${{ secrets.PRETALX_TOKEN }}
4242
4343 - name : Transform data
44- run : uv run make transform EXCLUDE="youtube" > /dev/null 2>&1
44+ run : uv run make transform > /dev/null 2>&1
4545
4646 - name : Create index.html
4747 run : |
Original file line number Diff line number Diff line change 5353
5454 pbar = tqdm (desc = f"Downloading { resource_name } " , unit = " page" , dynamic_ncols = True )
5555
56+ # Don't send auth token for youtube resource
57+ # For some reason Pretalx API rejects it with a HTTP 403
58+ request_headers = (
59+ headers
60+ if resource_name != "youtube"
61+ else {
62+ "Accept" : "application/json, text/javascript" ,
63+ "Pretalx-Version" : Config .api_version ,
64+ }
65+ )
66+
5667 while url := data ["next" ]:
5768 n += 1
5869 pbar .update (1 )
59- response = requests .get (url , headers = headers )
70+ response = requests .get (url , headers = request_headers )
6071
6172 if response .status_code != 200 :
6273 raise Exception (f"Error { response .status_code } : { response .text } " )
You can’t perform that action at this time.
0 commit comments