diff options
| author | 2011-05-26 23:17:48 +0200 | |
|---|---|---|
| committer | 2011-05-26 23:17:48 +0200 | |
| commit | fc3f1b94f4e8f59dbc4c989967e54e2c079f5a21 (patch) | |
| tree | 433d548b9830961dfb4f1d9c3018402a856cc540 /module | |
| parent | cli python 2.5 fix (diff) | |
| download | pyload-fc3f1b94f4e8f59dbc4c989967e54e2c079f5a21.tar.xz | |
realdebrid fix
Diffstat (limited to 'module')
| -rw-r--r-- | module/network/HTTPDownload.py | 1 | ||||
| -rw-r--r-- | module/plugins/hoster/RealdebridCom.py | 4 | 
2 files changed, 4 insertions, 1 deletions
| diff --git a/module/network/HTTPDownload.py b/module/network/HTTPDownload.py index 40e2e69e1..44cf5fdb2 100644 --- a/module/network/HTTPDownload.py +++ b/module/network/HTTPDownload.py @@ -110,6 +110,7 @@ class HTTPDownload():              fo.close()          if self.nameDisposition and self.disposition: +            self.log.debug("Content-Disposition: %s" % self.nameDisposition)              self.filename = save_join(dirname(self.filename), self.nameDisposition)          move(init, self.filename) diff --git a/module/plugins/hoster/RealdebridCom.py b/module/plugins/hoster/RealdebridCom.py index 5db81b713..d86259c4c 100644 --- a/module/plugins/hoster/RealdebridCom.py +++ b/module/plugins/hoster/RealdebridCom.py @@ -58,7 +58,9 @@ class RealdebridCom(Hoster):          self.log.debug("Real-Debrid: New URL: %s" % new_url)
          try:
 -            pyfile.name = self.getFilename(new_url)
 +            if pyfile.name.startswith("http") or pyfile.name.startswith("Unknown"):
 +                #only use when name wasnt already set
 +                pyfile.name = self.getFilename(new_url)
          except IndexError:
              pyfile.name = "Unknown_Filename.ext"
 | 
