1
0
Fork 0
mirror of https://git.sr.ht/~cadence/NewLeaf synced 2026-03-07 13:01:37 +00:00

Fix file detection and recommendations

This commit is contained in:
Cadence Ember 2021-08-16 21:56:32 +12:00
parent e496ccb45a
commit d2df18ff75
No known key found for this signature in database
GPG key ID: BC1C2C61CF521B17
2 changed files with 14 additions and 8 deletions

View file

@ -209,7 +209,7 @@ def get_more_stuff_from_file(id, result):
# Figure out what the name of the saved file was
recommendations = []
created_files = files.get_created_files(id)
possible_files = [f for f in created_files if f[11:].startswith("_https_-_www.youtube.com")]
possible_files = [f for f in created_files if "_https_-_www.youtube.com_watch" in f]
try:
if len(possible_files) == 1:
filename = possible_files[0]