tblancher / pymazon

Automatically exported from code.google.com/p/pymazon
Other
0 stars 0 forks source link

Unable to download an album #57

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I tried from the amz for the Amazon Downloader (Amazon-MP3-1349625920.amz) and 
got :

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.5/site-packages/pymazon/core/downloader.py", line 54, in run
    self.do_work()
  File "/usr/lib/python2.5/site-packages/pymazon/core/downloader.py", line 63, in do_work
    data = self._download(obj, handle)
  File "/usr/lib/python2.5/site-packages/pymazon/core/downloader.py", line 92, in _download
    fs = int(obj.filesize)
ValueError: invalid literal for int() with base 10: ''

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.5/site-packages/pymazon/core/downloader.py", line 173, in run
    self.finished_cb()
  File "/usr/lib/python2.5/site-packages/pymazon/cmd/ui.py", line 81, in finished_cb
    finished = pymazon_finished.format(settings.save_dir,
AttributeError: 'str' object has no attribute 'format'

I also tried with a file from the cloud player (Amazon-MP3-1349628327.amz):
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.5/site-packages/pymazon/core/downloader.py", line 54, in run
    self.do_work()
  File "/usr/lib/python2.5/site-packages/pymazon/core/downloader.py", line 63, in do_work
    data = self._download(obj, handle)
  File "/usr/lib/python2.5/site-packages/pymazon/core/downloader.py", line 97, in _download
    self.parent.update(self.node)
  File "/usr/lib/python2.5/site-packages/pymazon/core/downloader.py", line 148, in update
    self.update_cb(node)
  File "/usr/lib/python2.5/site-packages/pymazon/cmd/ui.py", line 95, in update_cb
    txt = u'\r{0} {1} - {2}'.format(artist, title, status).encode('UTF-8', 'ignore')
AttributeError: 'unicode' object has no attribute 'format'

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.5/site-packages/pymazon/core/downloader.py", line 173, in run
    self.finished_cb()
  File "/usr/lib/python2.5/site-packages/pymazon/cmd/ui.py", line 81, in finished_cb
    finished = pymazon_finished.format(settings.save_dir,
AttributeError: 'str' object has no attribute 'format'

And with a single song file (Amazon-MP3-1349628680.amz):
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.5/site-packages/pymazon/core/downloader.py", line 54, in run
    self.do_work()
  File "/usr/lib/python2.5/site-packages/pymazon/core/downloader.py", line 63, in do_work
    data = self._download(obj, handle)
  File "/usr/lib/python2.5/site-packages/pymazon/core/downloader.py", line 97, in _download
    self.parent.update(self.node)
  File "/usr/lib/python2.5/site-packages/pymazon/core/downloader.py", line 148, in update
    self.update_cb(node)
  File "/usr/lib/python2.5/site-packages/pymazon/cmd/ui.py", line 95, in update_cb
    txt = u'\r{0} {1} - {2}'.format(artist, title, status).encode('UTF-8', 'ignore')
AttributeError: 'unicode' object has no attribute 'format'

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.5/site-packages/pymazon/core/downloader.py", line 173, in run
    self.finished_cb()
  File "/usr/lib/python2.5/site-packages/pymazon/cmd/ui.py", line 81, in finished_cb
    finished = pymazon_finished.format(settings.save_dir,
AttributeError: 'str' object has no attribute 'format'

Original issue reported on code.google.com by andr...@nghs.fr on 7 Oct 2012 at 4:57

Attachments:

GoogleCodeExporter commented 8 years ago
It seems to be similar to Issue 54

Original comment by andr...@nghs.fr on 7 Oct 2012 at 5:04

GoogleCodeExporter commented 8 years ago
This looks similar to Issue 53. There's a patch over there that might help you 
for now.

Original comment by jsphs...@gmail.com on 8 Oct 2012 at 9:58