mirror of
				https://github.com/simon987/yt-metadata.git
				synced 2025-11-04 10:36:53 +00:00 
			
		
		
		
	Fixed typo
This commit is contained in:
		
							parent
							
								
									e533bc9825
								
							
						
					
					
						commit
						c6826734c3
					
				@ -17,4 +17,4 @@ youtube-dl -v --print-traffic --restrict-filename --write-description --write-in
 | 
				
			|||||||
* Run `import.py`
 | 
					* Run `import.py`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Schema:
 | 
					### Schema:
 | 
				
			||||||

 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -148,7 +148,7 @@ def create_format(cursor, **kwargs):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
def create_chapter(cursor, video_id, start_time, end_time, title):
 | 
					def create_chapter(cursor, video_id, start_time, end_time, title):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    cursor.execute('INSERT INTO chatper (start_time, end_time, title, video_id) VALUES (%s,%s,%s,%s) '
 | 
					    cursor.execute('INSERT INTO chapter (start_time, end_time, title, video_id) VALUES (%s,%s,%s,%s) '
 | 
				
			||||||
                   'ON CONFLICT DO NOTHING',
 | 
					                   'ON CONFLICT DO NOTHING',
 | 
				
			||||||
                   (start_time, end_time, title, video_id))
 | 
					                   (start_time, end_time, title, video_id))
 | 
				
			||||||
    print("Created chapter for " + video_id)
 | 
					    print("Created chapter for " + video_id)
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										10
									
								
								schema.sql
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								schema.sql
									
									
									
									
									
								
							@ -156,21 +156,21 @@ create table subtitles
 | 
				
			|||||||
)
 | 
					)
 | 
				
			||||||
;
 | 
					;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
create table chatper
 | 
					create table chapter
 | 
				
			||||||
(
 | 
					(
 | 
				
			||||||
  id serial not null
 | 
					  id serial not null
 | 
				
			||||||
    constraint chatper_pkey
 | 
					    constraint chapter_pkey
 | 
				
			||||||
    primary key,
 | 
					    primary key,
 | 
				
			||||||
  start_time integer not null,
 | 
					  start_time integer not null,
 | 
				
			||||||
  end_time integer not null,
 | 
					  end_time integer not null,
 | 
				
			||||||
  title text,
 | 
					  title text,
 | 
				
			||||||
  video_id text not null
 | 
					  video_id text not null
 | 
				
			||||||
    constraint chatper_video_id_fk
 | 
					    constraint chapter_video_id_fk
 | 
				
			||||||
    references video
 | 
					    references video
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
;
 | 
					;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
create unique index chatper_id_uindex
 | 
					create unique index chapter_id_uindex
 | 
				
			||||||
  on chatper (id)
 | 
					  on chapter (id)
 | 
				
			||||||
;
 | 
					;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user