diff options
Diffstat (limited to 'module/plugins/hoster/FreakshareCom.py')
| -rw-r--r-- | module/plugins/hoster/FreakshareCom.py | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/module/plugins/hoster/FreakshareCom.py b/module/plugins/hoster/FreakshareCom.py index 5b043d53d..ddb5a9ec0 100644 --- a/module/plugins/hoster/FreakshareCom.py +++ b/module/plugins/hoster/FreakshareCom.py @@ -82,7 +82,7 @@ class FreakshareCom(Hoster):      def get_file_url(self):          """ returns the absolute downloadable filepath          """ -        if self.html is None: +        if not self.html:              self.download_html()          if not self.wantReconnect:              self.req_opts = self.get_download_options()  # get the Post options for the Request @@ -92,7 +92,7 @@ class FreakshareCom(Hoster):              self.offline()      def get_file_name(self): -        if self.html is None: +        if not self.html:              self.download_html()          if not self.wantReconnect:              file_name = re.search(r"<h1\sclass=\"box_heading\"\sstyle=\"text-align:center;\">([^ ]+)", self.html) @@ -106,7 +106,7 @@ class FreakshareCom(Hoster):      def get_file_size(self):          size = 0 -        if self.html is None: +        if not self.html:              self.download_html()          if not self.wantReconnect:              file_size_check = re.search( @@ -119,7 +119,7 @@ class FreakshareCom(Hoster):          return size      def get_waiting_time(self): -        if self.html is None: +        if not self.html:              self.download_html()          if "Your Traffic is used up for today" in self.html: @@ -135,7 +135,7 @@ class FreakshareCom(Hoster):      def file_exists(self):          """ returns True or False          """ -        if self.html is None: +        if not self.html:              self.download_html()          if re.search(r"This file does not exist!", self.html) is not None:              return False | 
