some style stuff #1
							
								
								
									
										14
									
								
								yt
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								yt
									
									
									
									
									
								
							@ -18,6 +18,13 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
set -e
 | 
					set -e
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					argv0="$0"
 | 
				
			||||||
 | 
					com="$1"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					cachefile="$XDG_CACHE_HOME/yt.cache"
 | 
				
			||||||
 | 
					FMT='%(title)s – %(channel)s (%(duration>%H:%M:%S)s) [%(webpage_url)s]'
 | 
				
			||||||
 | 
					WBAPI='https://archive.org/wayback/available?url='
 | 
				
			||||||
 | 
					
 | 
				
			||||||
add() { # adds a video to a playlist file
 | 
					add() { # adds a video to a playlist file
 | 
				
			||||||
	while test -n "$2"; do
 | 
						while test -n "$2"; do
 | 
				
			||||||
		if test -z "$(sed -n ";$1;p" "$2")"
 | 
							if test -z "$(sed -n ";$1;p" "$2")"
 | 
				
			||||||
@ -164,13 +171,6 @@ verify() { # replaces videos with archived versions if they are not available
 | 
				
			|||||||
	done
 | 
						done
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
argv0="$0"
 | 
					 | 
				
			||||||
com="$1"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
cachefile="$XDG_CACHE_HOME/yt.cache"
 | 
					 | 
				
			||||||
FMT='%(title)s – %(channel)s (%(duration>%H:%M:%S)s) [%(webpage_url)s]'
 | 
					 | 
				
			||||||
WBAPI='https://archive.org/wayback/available?url='
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
if test -n "$DEBUG"; then
 | 
					if test -n "$DEBUG"; then
 | 
				
			||||||
	set -x
 | 
						set -x
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user