mirror of
				https://github.com/samuelclay/NewsBlur.git
				synced 2025-11-01 09:09:51 +00:00 
			
		
		
		
	Youtube username/title
This commit is contained in:
		
							parent
							
								
									6ae0d4c8b9
								
							
						
					
					
						commit
						bbc6d7ed5e
					
				
					 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