Handling duplicate filename properly in BTQueue
Long time ago, I used BTQueue for massively downloading large amount of files automatically by crawling trackers periodically. Then I got a problem due to duplicate filename, e.g., AVSEQ01.DAT or MUSIC01.DAT. This problem was caused by users who didn’t rename filename to what it should be. In addition, BTQueue have never asked destination directory, filename, or directory name because I designed it for fully automatic downloading. Interactive actions must not be used here at all. At that time, I solved this problem by automatically renaming that files to somewhat unique. However, this feature disappeared since BTQueue 0.1.0. Now, it’s time to solve it again.
From now on, BTQueue will rename all files in format AVSEQ??.DAT and MUSIC??.DAT by adding their infohash at the beginning. For example, assuming that infohash is ceebff39a94c0605d3f3e0be649f25c904df8742. The output file will be ceebff39a94c0605d3f3e0be649f25c904df8742-AVSEQ01.DAT.
Technorati Tags: Development, Announcement, English, Product, BTQueue, Tips and Tricks
- sugree's blog
- 947 reads
Post new comment