mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-04 03:27:00 -05:00 
			
		
		
		
	Merge branch 'master' of https://github.com/unkn0w7n/calibre
This commit is contained in:
		
						commit
						b6812939c9
					
				@ -41,8 +41,9 @@ class TheWeek(BasicNewsRecipe):
 | 
				
			|||||||
        url = 'https://usmagazine.theweek.com/timelines.json'
 | 
					        url = 'https://usmagazine.theweek.com/timelines.json'
 | 
				
			||||||
        data = json.loads(self.index_to_soup(url, raw=True))
 | 
					        data = json.loads(self.index_to_soup(url, raw=True))
 | 
				
			||||||
        for x in data['timelines'][:5]:
 | 
					        for x in data['timelines'][:5]:
 | 
				
			||||||
            if '-cover-' in x['image']:
 | 
					            if 'image' in x:
 | 
				
			||||||
                return 'https://usmagazine.theweek.com' + x['image'][1:]
 | 
					                if '-cover-' in x['image']:
 | 
				
			||||||
 | 
					                    return 'https://usmagazine.theweek.com' + x['image'][1:]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    articles_are_obfuscated = True
 | 
					    articles_are_obfuscated = True
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -41,8 +41,9 @@ class TheWeek(BasicNewsRecipe):
 | 
				
			|||||||
        url = 'https://ukmagazine.theweek.com/timelines.json'
 | 
					        url = 'https://ukmagazine.theweek.com/timelines.json'
 | 
				
			||||||
        data = json.loads(self.index_to_soup(url, raw=True))
 | 
					        data = json.loads(self.index_to_soup(url, raw=True))
 | 
				
			||||||
        for x in data['timelines'][:5]:
 | 
					        for x in data['timelines'][:5]:
 | 
				
			||||||
            if '-cover-' in x['image']:
 | 
					            if 'image' in x:
 | 
				
			||||||
                return 'https://ukmagazine.theweek.com' + x['image'][1:]
 | 
					                if '-cover-' in x['image']:
 | 
				
			||||||
 | 
					                    return 'https://ukmagazine.theweek.com' + x['image'][1:]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    articles_are_obfuscated = True
 | 
					    articles_are_obfuscated = True
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user