[gpodder-devel] Download in progress deleted in ver 236

  • From: robertkyoung at gmail.com (Robert Young)
  • Date: Thu, 18 Jan 2007 17:11:58 +1030

G'Day,

I downloaded the latest version from svn, and found a little problem.
When I delete a feed whilst downloading podcasts for another feed, the
download in progress (the temporary file?) is deleted too.

Steps to reproduce:
get latest version from svn repository
make test
Subscribe to feed A (e.g. Whadya Know from NPR).
Subscribe to feed B (e.g. Marketplace Money).
Start downloading podcast for feed A.
Delete feed B.
The download continues to 99%, but then stays in the "Download Status"
tab at 0%.

The output from the shell is shown below.

Thanks for the excellent program!
Rob.

Command: wget -T 15 -c -t0
"http://podcastdownload.npr.org/anon.npr-podcasts/podcast/4787204/510012/6865614/PUB_6865614.mp3";
-O 
"/home/rob/gpodder-downloads/1494d710846d0d971bc2b177dfd7fcc6/.tmp-684febdf7cfc9dde8d789b7e7dfe4a0b.mp3"
I Asked: Do you really want to remove this channel and downloaded episodes?

 APM: Marketplace Money
User answered: True
deleteFilename:
/home/rob/.config/gpodder/cache/0141d398cabbd83094983892bcb8c9ca.xml
deleteFilename:
/home/rob/gpodder-downloads/1494d710846d0d971bc2b177dfd7fcc6/.tmp-684febdf7cfc9dde8d789b7e7dfe4a0b.mp3
rssReader parseXML-> http://www.npr.org/rss/podcast.php?id=35,
/home/rob/.config/gpodder/cache/0090d396bab0e0fd750c9879556a6293.xml
rssReader parseXML-> http://www.npr.org/rss/podcast.php?id=510012,
/home/rob/.config/gpodder/cache/1494d710846d0d971bc2b177dfd7fcc6.xml
rssReader parseXML->
http://www.asx.com.au/resources/podcast/podcast.xml,
/home/rob/.config/gpodder/cache/ca7ff899017abd5e95721afc6386132f.xml
Error happened during moving tempfile :/
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
    self.run()
  File "/usr/lib/python2.4/threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "./src/gpodder/libwget.py", line 131, in thread_function
    move( self.tempname, self.filename)
  File "/usr/lib/python2.4/shutil.py", line 189, in move
    copy2(src,dst)
  File "/usr/lib/python2.4/shutil.py", line 92, in copy2
    copyfile(src, dst)
  File "/usr/lib/python2.4/shutil.py", line 47, in copyfile
    fsrc = open(src, 'rb')
IOError: [Errno 2] No such file or directory:
u'/home/rob/gpodder-downloads/1494d710846d0d971bc2b177dfd7fcc6/.tmp-684febdf7cfc9dde8d789b7e7dfe4a0b.mp3'


Other related posts: