Merge pull request 'Fix timestamp parsing by correcting string slicing for start time' (#40) from BordedDev/snek:bugfix/youtube-timestamp into main
Reviewed-on: retoor/snek#40 Reviewed-by: retoor <retoor@noreply@molodetz.nl>
This commit is contained in:
		
						commit
						43982c16fa
					
				| @ -118,7 +118,7 @@ def embed_youtube(text): | |||||||
|                 queries["start"] = [] |                 queries["start"] = [] | ||||||
|                 for t in start_time: |                 for t in start_time: | ||||||
|                     if t.endswith("s"): |                     if t.endswith("s"): | ||||||
|                         t = start_time[:-1] |                         t = t[:-1] | ||||||
|                     if t.isdigit(): |                     if t.isdigit(): | ||||||
|                         queries["start"].append(t) |                         queries["start"].append(t) | ||||||
|                     else: |                     else: | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user