home
·
contact
·
privacy
projects
/
ytplom
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ca320fe
)
Remove dead code.
master
author
Christian Heller
<c.heller@plomlompom.de>
Thu, 6 Nov 2025 11:04:10 +0000
(12:04 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Thu, 6 Nov 2025 11:04:10 +0000
(12:04 +0100)
src/ytplom/http.py
patch
|
blob
|
history
diff --git
a/src/ytplom/http.py
b/src/ytplom/http.py
index b867914073d557f78eb67ef80d345c2c5bccce91..a99ada40477c0cdb882bf8121bc88ae8dec614b0 100644
(file)
--- a/
src/ytplom/http.py
+++ b/
src/ytplom/http.py
@@
-395,19
+395,9
@@
class _TaskHandler(PlomHttpHandler):
video_data = YoutubeVideo.get_one(conn, video_id)
except NotFoundException:
video_data = YoutubeVideo(video_id)
video_data = YoutubeVideo.get_one(conn, video_id)
except NotFoundException:
video_data = YoutubeVideo(video_id)
- file_digest: Optional[str]
- file_path: Optional[Path]
- try:
- file = VideoFile.get_by_yt_id(conn, video_id)
- file_digest = file.digest.b64
- file_path = file.rel_path if file.present else None
- except NotFoundException:
- file_path, file_digest = None, None
self._send_rendered_template(
_NAME_TEMPLATE_YT_RESULT,
{'video_data': video_data,
self._send_rendered_template(
_NAME_TEMPLATE_YT_RESULT,
{'video_data': video_data,
- 'file_digest': file_digest,
- 'file_path': file_path,
'queries': linked_queries,
'youtube_prefix': (
YOUTUBE_URL_PREFIX if self.server.config.link_originals
'queries': linked_queries,
'youtube_prefix': (
YOUTUBE_URL_PREFIX if self.server.config.link_originals