From 2f22c25b9a967498f39240216dddf6aa4c8e97e5 Mon Sep 17 00:00:00 2001 From: Luke Arran Date: Mon, 22 Nov 2021 20:40:26 +0000 Subject: [PATCH] updated index numbers of seen_episode --- .gitignore | 2 ++ TimeToTrackt.py | 16 ++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index ac64c2d..c144b24 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ watched_show_process_tracker.json localStorage.json config.json TimeToTrackt.py +seen_episode.csv +followed_tv_show.csv diff --git a/TimeToTrackt.py b/TimeToTrackt.py index 8890400..125251c 100644 --- a/TimeToTrackt.py +++ b/TimeToTrackt.py @@ -1,11 +1,9 @@ # main.py from logging import error import sys -from trakt import init -from trakt.movies import get_recommended_movies +from trakt import * import trakt.core import os -from trakt.tv import TVShow import csv from datetime import datetime import time @@ -14,6 +12,8 @@ import json import re import sys +from trakt.tv import TVShow + # Adjust this value to increase/decrease your requests between episodes. # Make sure it's above 1 seconds to remain within the rate limit. DELAY_BETWEEN_EPISODES_IN_SECONDS = 5 @@ -314,18 +314,18 @@ def processWatchedShows(): # records during the import process. rowsCount += 1 # Get the name of the TV show - tvShowName = row[6] + tvShowName = row[8] # Ignore the header row if tvShowName != "tv_show_name": # Get the TV Time Episode Id - tvShowEpisodeId = row[1] + tvShowEpisodeId = row[4] # Get the TV Time Season Number - tvShowSeasonNo = row[7] + tvShowSeasonNo = row[5] # Get the TV Time Episode Number - tvShowEpisodeNo = row[8] + tvShowEpisodeNo = row[6] # Get the date which the show was marked 'watched' in TV Time - tvShowDateWatched = row[4] + tvShowDateWatched = row[7] # Parse the watched date value into a Python type tvShowDateWatchedConverted = datetime.strptime( tvShowDateWatched, '%Y-%m-%d %H:%M:%S')