From b3cf68427262857234faed3e1095b42d10e49947 Mon Sep 17 00:00:00 2001 From: Xevion Date: Tue, 24 Dec 2019 23:06:32 -0600 Subject: [PATCH] fix access times not being updated, update comments with spelling/dupe mistake --- app/sound.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/sound.py b/app/sound.py index ded6498..edbf232 100644 --- a/app/sound.py +++ b/app/sound.py @@ -8,11 +8,12 @@ import re import json import subprocess -# Retrieves the YouTubeAudio object relevant to the mediaid if available. If not, it facilitiates the creation and writing of one. +# Retrieves the YouTubeAudio object relevant to the mediaid if available. If not, it facilitates the creation and writing of one. # Also helps with access times. def get_youtube(mediaid): audio = YouTubeAudio.query.get(mediaid) if audio is not None: + audio.access() return audio # sets the access time to now audio = YouTubeAudio(id=mediaid) audio.fill_metadata() @@ -22,7 +23,7 @@ def get_youtube(mediaid): db.session.commit() return audio -# Returns the duration of a specificed media +# Streams back the specified media back to the client @app.route('/stream//') def stream(service, mediaid): if service == 'youtube':