mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Strengthen yt-dlp upgrading + document "nightly" version
This commit is contained in:
		
							parent
							
								
									b1b42e958a
								
							
						
					
					
						commit
						49f59830c8
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -70,7 +70,7 @@
 | 
				
			||||||
    if [ -f {{ calibreweb_venv_path }}/scripts/lb-wrapper ]; then
 | 
					    if [ -f {{ calibreweb_venv_path }}/scripts/lb-wrapper ]; then
 | 
				
			||||||
        apt install ffmpeg pipx -y
 | 
					        apt install ffmpeg pipx -y
 | 
				
			||||||
        if lb --version; then
 | 
					        if lb --version; then
 | 
				
			||||||
            pipx upgrade --include-injected xklb
 | 
					            pipx reinstall xklb
 | 
				
			||||||
        else
 | 
					        else
 | 
				
			||||||
            pipx install xklb
 | 
					            pipx install xklb
 | 
				
			||||||
            ln -sf /root/.local/bin/lb /usr/local/bin/lb
 | 
					            ln -sf /root/.local/bin/lb /usr/local/bin/lb
 | 
				
			||||||
| 
						 | 
					@ -82,6 +82,8 @@
 | 
				
			||||||
                echo "ERROR: yt-dlp NOT FOUND"
 | 
					                echo "ERROR: yt-dlp NOT FOUND"
 | 
				
			||||||
            fi
 | 
					            fi
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
 | 
					        # IF YOU WANT THE "nightly" RELEASE OF yt-dlp, UNCOMMENT THE NEXT LINE:
 | 
				
			||||||
 | 
					        # pipx inject --pip-args="--upgrade --pre" -f xklb yt-dlp[default]
 | 
				
			||||||
        cp {{ calibreweb_venv_path }}/scripts/lb-wrapper /usr/local/bin/
 | 
					        cp {{ calibreweb_venv_path }}/scripts/lb-wrapper /usr/local/bin/
 | 
				
			||||||
        chmod a+x /usr/local/bin/lb-wrapper
 | 
					        chmod a+x /usr/local/bin/lb-wrapper
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue