mirror of
https://github.com/FakeTV/pseudo-channel.git
synced 2025-12-21 02:33:30 +00:00
Recording last play date of movie in the DB.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user