Recording last play date of movie in the DB.

This commit is contained in:
Justin Emter
2017-12-01 09:25:14 -08:00
parent 0ee6922b39
commit 954af9cf2d

View File

@@ -434,13 +434,17 @@ class PseudoChannel():
)
)"""
the_movie = self.db.get_movie(random.choice(movies_list).title)
"""Updating movies table in the db with lastPlayedDate entry"""
self.db.update_movies_table_with_last_played_date(the_movie[3])
the_movie = self.db.get_movie(random.choice(movies_list).title)
except:
print("For some reason, I've failed getting movie with xtra args.")
the_movie = self.db.get_random_movie()
"""Updating movies table in the db with lastPlayedDate entry"""
self.db.update_movies_table_with_last_played_date(the_movie[3])
else:
"""the_movie = self.db.get_movie(self.movieMagic.get_random_movie(
@@ -448,10 +452,11 @@ class PseudoChannel():
)
)"""
the_movie = self.db.get_random_movie()
"""Updating movies table in the db with lastPlayedDate entry"""
self.db.update_movies_table_with_last_played_date(the_movie[3])
the_movie = self.db.get_random_movie()
else:
the_movie = self.db.get_movie(entry[3])
if the_movie != None: