Open Elizafox opened 10 years ago
(Those were for two different files obviously, but the outcome is the same)
Okay, after investigating the issue...
It tries to get the urllib2 handle like so, a few lines prior:
u = self.__open_files.get(fh, None)
In the open
function, around line 302, it does this:
#Check for multi-part
if len(urls) > 1:
self.__open_files[fh] = self.__open_multi_part(urls, path)
else:
u = self.__open_files[fh] = urllib2.urlopen(urls[0])
u.bytes_read = 0
return fh
Spot the bug in __open_multi_part
;p
def __open_multi_part(self, urls, path):
"""Starts a thread to download a multi-part track (Google Play All
Access) into a single file in the cache directory and return
an open file handle for it while it downloads.
"""
buf = fifo.Buffer()
# Start downloading the multi part track in another thread:
downloader = AllAccessTrackDownloader(urls, buf, path)
downloader.start()
# Return the buffer, while the download is still happening:
return buf
Hi,
cp
gives me this error when I try to copy files:The debug log is filled with stuff like this: