Skip to content

Commit

Permalink
Merge pull request #185 from holta/url-below-desc
Browse files Browse the repository at this point in the history
uploader.py: Put "Original Internet URL" under description
  • Loading branch information
holta authored Jun 14, 2024
2 parents 9f5ca1e + ffc908d commit 9e7f0bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cps/uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def video_metadata(tmp_file_path, original_file_name, original_file_extension):
cover_file_path = os.path.splitext(tmp_file_path)[0] + '.cover.jpg'
c.execute("SELECT * FROM captions WHERE media_id=?", (row['id'],))
row = c.fetchone()
description = f"Source: <a href='{video_url}' target='_blank'>{video_url}</a><br>{row['text']}" if row is not None else ''
description = f"{row['text']}<br><br>Original Internet URL: <a href='{video_url}' target='_blank'>{video_url}</a>" if row is not None else ''
meta = BookMeta(
file_path=tmp_file_path,
extension=original_file_extension,
Expand Down

0 comments on commit 9e7f0bf

Please sign in to comment.