Compare commits
	
		
			1 Commits
		
	
	
		
			master
			...
			7699bdd305
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 7699bdd305 | 
@@ -27,7 +27,7 @@ highest_post = next(booru.search_post("sort:id type:image", page_size=1))
 | 
			
		||||
 | 
			
		||||
post = None
 | 
			
		||||
while post is None:
 | 
			
		||||
    random_id = random.randint(0, highest_post.id_)
 | 
			
		||||
    random_id = 10455  # For testing, always use ID=10455 which is a gif
 | 
			
		||||
    temp_post = booru.getPost(random_id)
 | 
			
		||||
    if temp_post and temp_post.mime.startswith("image/") and temp_post.content:
 | 
			
		||||
        post = temp_post
 | 
			
		||||
@@ -65,7 +65,7 @@ while not image_downloaded:
 | 
			
		||||
        # Find a new post
 | 
			
		||||
        post = None
 | 
			
		||||
        while post is None:
 | 
			
		||||
            random_id = random.randint(0, highest_post.id_)
 | 
			
		||||
            random_id = 10455  # For testing, always use ID=10455 which is a gif
 | 
			
		||||
            temp_post = booru.getPost(random_id)
 | 
			
		||||
            if temp_post and temp_post.mime.startswith("image/") and temp_post.content:
 | 
			
		||||
                post = temp_post
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user