diff --git a/weboob/backends/arte/backend.py b/weboob/backends/arte/backend.py index 45365fb4..92c60873 100644 --- a/weboob/backends/arte/backend.py +++ b/weboob/backends/arte/backend.py @@ -59,7 +59,7 @@ class ArteBackend(BaseBackend, ICapVideo): # if we don't want only the thumbnail, we probably want also every fields with self.browser: video = self.browser.get_video(ArteVideo.id2url(video.id), video) - if 'thumbnail' in fields: + if 'thumbnail' in fields and video.thumbnail: with self.browser: video.thumbnail.data = self.browser.readurl(video.thumbnail.url) diff --git a/weboob/backends/canalplus/backend.py b/weboob/backends/canalplus/backend.py index a1def390..a1df403c 100644 --- a/weboob/backends/canalplus/backend.py +++ b/weboob/backends/canalplus/backend.py @@ -59,7 +59,7 @@ class CanalplusBackend(BaseBackend, ICapVideo, ICapCollection): # if we don't want only the thumbnail, we probably want also every fields with self.browser: video = self.browser.get_video(CanalplusVideo.id2url(video.id), video) - if 'thumbnail' in fields: + if 'thumbnail' in fields and video.thumbnail: with self.browser: video.thumbnail.data = self.browser.readurl(video.thumbnail.url) return video diff --git a/weboob/backends/dailymotion/backend.py b/weboob/backends/dailymotion/backend.py index 9c7655e5..0e89960c 100644 --- a/weboob/backends/dailymotion/backend.py +++ b/weboob/backends/dailymotion/backend.py @@ -53,7 +53,7 @@ class DailymotionBackend(BaseBackend, ICapVideo): # if we don't want only the thumbnail, we probably want also every fields with self.browser: video = self.browser.get_video(DailymotionVideo.id2url(video.id), video) - if 'thumbnail' in fields: + if 'thumbnail' in fields and video.thumbnail: with self.browser: video.thumbnail.data = self.browser.readurl(video.thumbnail.url) diff --git a/weboob/backends/ina/backend.py b/weboob/backends/ina/backend.py index 8f301d04..ec8ca340 100644 --- a/weboob/backends/ina/backend.py +++ b/weboob/backends/ina/backend.py @@ -51,7 +51,7 @@ class InaBackend(BaseBackend, ICapVideo): # if we don't want only the thumbnail, we probably want also every fields with self.browser: video = self.browser.get_video(video.id, video) - if 'thumbnail' in fields: + if 'thumbnail' in fields and video.thumbnail: with self.browser: video.thumbnail.data = self.browser.readurl(video.thumbnail.url) diff --git a/weboob/backends/kickass/browser.py b/weboob/backends/kickass/browser.py index 4af6b395..56b51558 100644 --- a/weboob/backends/kickass/browser.py +++ b/weboob/backends/kickass/browser.py @@ -32,8 +32,8 @@ class KickassBrowser(BaseBrowser): ENCODING = 'utf-8' USER_AGENT = BaseBrowser.USER_AGENTS['wget'] PAGES = { - 'http://fr.kickasstorrents.com/new/.*field=seeders&sorder=desc': TorrentsPage, - 'http://fr.kickasstorrents.com/.*.html': TorrentPage, + 'http://fr.(kickasstorrents.com|kat.ph)/new/.*field=seeders&sorder=desc': TorrentsPage, + 'http://fr.(kickasstorrents.com|kat.ph)/.*.html': TorrentPage, } def home(self): diff --git a/weboob/backends/youjizz/backend.py b/weboob/backends/youjizz/backend.py index a2a21387..a0daa9ee 100644 --- a/weboob/backends/youjizz/backend.py +++ b/weboob/backends/youjizz/backend.py @@ -55,7 +55,7 @@ class YoujizzBackend(BaseBackend, ICapVideo): # if we don't want only the thumbnail, we probably want also every fields with self.browser: video = self.browser.get_video(YoujizzVideo.id2url(video.id), video) - if 'thumbnail' in fields: + if 'thumbnail' in fields and video.thumbnail: with self.browser: video.thumbnail.data = self.browser.readurl(video.thumbnail.url) diff --git a/weboob/backends/youporn/backend.py b/weboob/backends/youporn/backend.py index 2dfee93b..09a1cd78 100644 --- a/weboob/backends/youporn/backend.py +++ b/weboob/backends/youporn/backend.py @@ -55,7 +55,7 @@ class YoupornBackend(BaseBackend, ICapVideo): # if we don't want only the thumbnail, we probably want also every fields with self.browser: video = self.browser.get_video(YoupornVideo.id2url(video.id), video) - if 'thumbnail' in fields: + if 'thumbnail' in fields and video.thumbnail: with self.browser: video.thumbnail.data = self.browser.readurl(video.thumbnail.url)