Skip to content

Commit

Permalink
son test
Browse files Browse the repository at this point in the history
  • Loading branch information
ensargx committed Apr 7, 2024
1 parent cd09a27 commit 325ceb7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from http import server
import json
# from .upload_video import DownloadVideos, GetRefreshTokenFromCode
from .upload_video import DownloadVideos, GetRefreshTokenFromCode

class MyHandler(server.BaseHTTPRequestHandler):
def do_GET(self):
Expand Down Expand Up @@ -32,14 +32,14 @@ def do_POST(self):
assert 'title' in video
assert 'id' in video

# get refresh token from code
# refresh_token = GetRefreshTokenFromCode(code)

print("Code:", code)
print("Videos:", videos)
# download videos

# DownloadVideos(refresh_token, videos)
# get refresh token from code
refresh_token = GetRefreshTokenFromCode(code)

DownloadVideos(refresh_token, videos)

exit(0)

Expand Down

0 comments on commit 325ceb7

Please sign in to comment.