webp
This commit is contained in:
		
							parent
							
								
									267366ed2d
								
							
						
					
					
						commit
						00166f9df4
					
				@ -3,6 +3,7 @@ const axios = require('axios')
 | 
			
		||||
let getscript = async (url) => {
 | 
			
		||||
    let text;
 | 
			
		||||
    url = "https://www.177mh.net" + url
 | 
			
		||||
    // console.log(url)
 | 
			
		||||
    await axios.get(url).then((res)=>{
 | 
			
		||||
        // text = res.text
 | 
			
		||||
        // console.log(res.data)
 | 
			
		||||
@ -59,7 +60,7 @@ let getscript = async (url) => {
 | 
			
		||||
    // console.log(img_qianzso)
 | 
			
		||||
 | 
			
		||||
    let qianzso = img_qianzso[imgs]
 | 
			
		||||
    // console.log(qianzso)
 | 
			
		||||
    console.log(webpshow)
 | 
			
		||||
    if(webpshow == 1){
 | 
			
		||||
        chapterImages = chapterImages.map(x => x + ".webp")
 | 
			
		||||
    }
 | 
			
		||||
@ -69,5 +70,5 @@ let getscript = async (url) => {
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// getscript('/201008/167494.html')
 | 
			
		||||
getscript('/201804/385855.html')
 | 
			
		||||
module.exports = getscript
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user