Page 1 of 1

Wrong Subject

PostPosted: Tue Jan 21, 2014 9:09 pm
by rcobourn
Okay, my head is buzzing with some sort of cold coming on, so if I'm hallucinating this, please forgive me. In a.b.e-book.flood, the posts are described in a document file called "_Translation.txt". Since the file name is the same for every days' posting, I use the bypass filters option to dl this file. At least as of the most recently released beta from yesterday, the subject reported in the files list is the subject from the first such file downloaded, rather than from the current one, so the subject reflects information for the wrong date. The correct file is downloaded and displayed when opened however. I'm not explaining that well, probably easier to try it. Grab a __Translation.txt, then grab another one using bypass filters. You only end up with one entry in the files list, and it has a date in the subject line that matches the first one downloaded, not the latest.

Re: Wrong Subject

PostPosted: Tue Jan 21, 2014 10:14 pm
by Quade
Grab a __Translation.txt, then grab another one using bypass filters. You only end up with one entry in the files list, and it has a date in the subject line that matches the first one downloaded, not the latest.


If you look in the download folder, you'll find them all listed. What I'm seeing is each one of these files gets renamed when the next file with the same name is downloaded.

First one downloads.

1 - _Translation.txt #1

Then you download #2.

1 - _Translation.txt #2
2 - _Translation-(0001).txt #1

Then you download #3.

1 - _Translation.txt #3
2 - _Translation-(0002).txt #2
3 - _Translation-(0001).txt #1

Each time you download one, the one that's already in the folder gets named to something else. Since the already renamed one doesn't also get renamed. The actual renames are out of chronological order.

Newsbin only lists the current download in the files list. Not the ones that are renamed in the background.

Re: Wrong Subject

PostPosted: Tue Jan 21, 2014 10:36 pm
by rcobourn
Agreed. The issue I'm seeing is the description in the file list is wrong. It retains the description of the first file downloaded for each subsequent download. The only difference in the subject information is the date of the posting of the materials described in the file. I think when it handles identical file renaming it is retaining the older description.

Re: Wrong Subject

PostPosted: Wed Jan 22, 2014 10:12 am
by Quade
I get what you're saying now. It's not an issue with the filename but, that the files list doesn't reflect the real subject for the current download because of the rename.

I can look at that.

Quick look at the code suggests it should be showing the correct meta-data. I wonder if it's a caching issue. Might be interesting to restart and see if it's showing the correct subject on restart. That would indicate it's the cache that needs fixing.

Re: Wrong Subject

PostPosted: Wed Jan 22, 2014 11:39 am
by rcobourn
You got it, it loads the correct data when Newsbin is closed and re-opened, so yes, the issue is in the cache.

Re: Wrong Subject

PostPosted: Wed Jan 22, 2014 12:19 pm
by Quade
Thanks for the feedback.

Re: Wrong Subject

PostPosted: Wed Jan 22, 2014 1:48 pm
by Quade
Fix should be in the next beta. I clear the cache entry when the same filename comes in.

Re: Wrong Subject

PostPosted: Mon Feb 03, 2014 10:24 pm
by rcobourn
Much less of an issue, at least for me, but there is something similar happening in the failed files list. I had a bunch of different episodes of a particular tv show queued. 4 of the older ones failed, all entries in the failed list reflected the title of the first post that failed.

Re: Wrong Subject

PostPosted: Mon Feb 03, 2014 11:16 pm
by Quade
Much less of an issue, at least for me, but there is something similar happening in the failed files list. I had a bunch of different episodes of a particular tv show queued. 4 of the older ones failed, all entries in the failed list reflected the title of the first post that failed.


Failed list isn't even close to the same as Files list. I mean internally. Internally a failed list is really just another inactive download list. Duplicates shouldn't be possible. I'll think about how it might be possible that it's happening.