mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Youtube username/title
This commit is contained in:
parent
7d08632e9c
commit
0181a2e4b0
1 changed files with 2 additions and 2 deletions
|
@ -85,7 +85,7 @@ class YoutubeFetcher:
|
|||
<img src="%s" style="display:none" />""" % (
|
||||
("https://www.youtube.com/embed/" + video["id"]),
|
||||
channel_url,
|
||||
username,
|
||||
username or title,
|
||||
duration,
|
||||
linkify(linebreaks(video["snippet"]["description"])),
|
||||
thumbnail["url"] if thumbnail else "",
|
||||
|
@ -96,7 +96,7 @@ class YoutubeFetcher:
|
|||
"title": video["snippet"]["title"],
|
||||
"link": link,
|
||||
"description": content,
|
||||
"author_name": username,
|
||||
"author_name": username or title,
|
||||
"categories": [],
|
||||
"unique_id": "tag:youtube.com,2008:video:%s" % video["id"],
|
||||
"pubdate": dateutil.parser.parse(video["snippet"]["publishedAt"]),
|
||||
|
|
Loading…
Add table
Reference in a new issue