mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	fix a thingy
This commit is contained in:
		
							parent
							
								
									7d2506f8a2
								
							
						
					
					
						commit
						e7bfa3db59
					
				| @ -36,6 +36,11 @@ function linkify(text) { | ||||
|   }); | ||||
| } | ||||
| 
 | ||||
| function endsWithYouTubeAutoGenerated(text) { | ||||
|   const target = " Auto-generated by YouTube. "; | ||||
|   return text.endsWith(target); | ||||
| } | ||||
| 
 | ||||
| const sha384 = modules.hash; | ||||
| const fetch = modules.fetch; | ||||
| const htmlToText = require("html-to-text"); | ||||
| @ -194,8 +199,8 @@ module.exports = function (app, config, renderTemplate) { | ||||
|           d = desc.toString().replace(/\n/g, " <br> "); | ||||
|         } | ||||
| 
 | ||||
|         const descriptionString = String(inv_vid.description); | ||||
| 
 | ||||
|         const descriptionString = String(inv_vid?.description); | ||||
|           | ||||
|         function extractInfo(regex) { | ||||
|           return descriptionString !== "[object Object]" | ||||
|             ? (regex.exec(descriptionString) ?? {}).groups | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ashley
						Ashley