Skip to content

Commit

Permalink
remove spreadsheet code
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilNarayana committed Jun 1, 2020
1 parent fca7ced commit d67117d
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 30 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ A YouTube Uploader for my Melee recordings

A modified version of FRC-YouTube-Uploader for Super Smash Bros. Melee and Super Smash Bros. Ultimate.

Already public/non-sensitive data is collected on Google Sheets [here](https://docs.google.com/spreadsheets/d/1TavrlG3uiLLJUwrx6UB0CCyjbiWElYE8sCev6fWclaw/edit#gid=0), this is to help figure out if certain highly specific features are being used.


**IMPORTANT NOTE**

Expand Down
2 changes: 0 additions & 2 deletions meleeuploader/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,12 @@
log_file = os.path.join(root, ".smash_log.txt")
custom_list_file = os.path.join(root, ".smash_custom_list.txt")
youtube_file = os.path.join(root, ".smash-oauth2-youtube.json")
spreadsheet_file = os.path.join(root, ".smash-oauth2-spreadsheet.json")
partner_file = os.path.join(root, ".smash-oauth2-partner.json")

abbrv = "smash"
short_name = "meleeuploader"
long_name = "Melee YouTube Uploader"

spreadsheetID = "1TavrlG3uiLLJUwrx6UB0CCyjbiWElYE8sCev6fWclaw"
rowRange = "Data!A1:G1"

credit = "Uploaded with Melee-YouTube-Uploader (https://github.com/NikhilNarayana/Melee-YouTube-Uploader) by Nikhil Narayana"
Expand Down
4 changes: 0 additions & 4 deletions meleeuploader/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ def main():
print(e)
print("There was an issue with getting Google Credentials")
sys.exit(1)
try:
consts.sheets = yt.get_spreadsheet_service()
except Exception as e:
print(e)
try:
if os.path.isfile(consts.partner_file):
consts.partner = yt.get_partner_service()
Expand Down
21 changes: 0 additions & 21 deletions meleeuploader/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,27 +74,6 @@ def pre_upload(opts):
except Exception as e:
print("Failed to add to playlist")
print(e)
if consts.sheets:
totalTime = datetime.now() - opts.then
values = [[
str(datetime.now()),
str(totalTime), f"https://www.youtube.com/watch?v={vid}",
opts.ename,
opts.titleformat,
title,
str(consts.loadedQueue)
]]
sheetbody = {"values": values}
try:
consts.sheets.spreadsheets().values().append(
spreadsheetId=consts.spreadsheetID,
range=consts.rowRange,
valueInputOption="USER_ENTERED",
body=sheetbody).execute()
print("Added data to spreadsheet")
except Exception as e:
print("Failed to write to spreadsheet")
print(e)
print("DONE\n")
else:
print(vid)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from os import path

here = path.abspath(path.dirname(__file__))
version = '1.18.7'
version = '1.18.8'

long_des = ""
with open(path.join(here, 'README.md')) as f:
Expand Down

0 comments on commit d67117d

Please sign in to comment.