diff --git a/server/app.py b/server/app.py index 6497224..05096a8 100644 --- a/server/app.py +++ b/server/app.py @@ -374,28 +374,6 @@ def show_media_thumb(media_id: int): ) -@flask_app.route("/recommendations/simple/binge") -@flask_app.route("/recommendations/simple/binge/") -def recommend_binge(random_val: int = None): - if random_val is None: - random_val = (datetime.now() - timedelta(hours=4)).toordinal() - def gen_list(): - l = [m for m in orm.select(m for m in MediaElement if not (m.watched or m.ignored)) if m.can_considered] - r = random.Random(random_val) - r.shuffle(l) - return l - return render_template( - "recommendations_simple.htm", - mode_name="Binge Watch", - random_val=random_val, - media_list=generate_preference_list( - base=PreferenceScore(), - object_gen=gen_list, - score_adapt=-1, - limit=5, - ) - ) - @flask_app.route("/recommendations/simple/variety") def recommend_variety(): def gen_list(): diff --git a/server/templates/macros.htm b/server/templates/macros.htm index bbeb0c9..8db2e50 100644 --- a/server/templates/macros.htm +++ b/server/templates/macros.htm @@ -71,7 +71,6 @@ "Pinned Collections": "/collection/pinned", "Collections To Watch": "/collection/to_watch", "Show Old Variety": "/recommendations/simple/variety", - "BINGE": "/recommendations/simple/binge", "Stats": "/stats", "Tags": "/tag", "Add Media": "/media/extract",