Rewrite _cleanup
This commit is contained in:
		
							
								
								
									
										13
									
								
								qsgen2
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								qsgen2
									
									
									
									
									
								
							@@ -635,13 +635,14 @@ function _youtube() {
 | 
				
			|||||||
function _cleanup() {
 | 
					function _cleanup() {
 | 
				
			||||||
    # This removes tags used in the templates that may be left over for some reason
 | 
					    # This removes tags used in the templates that may be left over for some reason
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	local debug=false
 | 
						local debug=true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (${debug}) echo "${red}_cleanup: Cleaning up links in: ${www_root}/${1%.*}.html${end}"
 | 
						if (${debug}) echo "${red}_cleanup: Cleaning up links in: ${1}${end}"
 | 
				
			||||||
	sed -i -- "s|¤||g" ${www_root}/${1%.*}.html
 | 
						echo ${1} | sed \
 | 
				
			||||||
	sed -i -- "s|#showimg\ ||g" ${www_root}/${1%.*}.html
 | 
					    -e "s|¤||g" \
 | 
				
			||||||
	sed -i -- "s|#ytvideo\ ||g" ${www_root}/${1%.*}.html
 | 
						-e "s|#showimg\ ||g" \
 | 
				
			||||||
	sed -i -- "s|#link\ ||g" ${www_root}/${1%.*}.html
 | 
						-e "s|#ytvideo\ ||g" \
 | 
				
			||||||
 | 
						-e "s|#link\ ||g"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user