Hello,
Meow....
On 6/2/2017 3:32 PM, Alexander Dyagilev wrote:
>
> Here is the bug report:
>
> https://github.com/arvidn/libtorrent/issues/2054
>
>
> On 6/2/2017 1:40 PM, Alexander Dyagilev wrote:
>>
>> I've got another problem... :(
>>
>> After I move storage to the target path and got storage_moved_alert,
>> I call torrent_handle::force_recheck.
>>
>> But it has no effect.... LT just overwrites existing file starting
>> from 0% without rechecking it....
>>
>> (yes, sometime I need to rename to a different name, e.g.
>> setup(1).exe, and sometimes I decide to just continue to download
>> existing file).
>>
>>
>> On 6/2/2017 12:49 PM, Alexander Dyagilev wrote:
>>>
>>> However, I've decided to use another workaround.
>>>
>>> I create magnet with a temporary lonely save_path.
>>>
>>> Once I receive alert, I rename files using torrent_handle and then
>>> move storage to the target path.
>>>
>>>
>>> On 6/2/2017 12:39 PM, Alexander Dyagilev wrote:
>>>>
>>>> Does not work for me.
>>>>
>>>> I don't receive libtorrent::metadata_received_alert at all in case
>>>> I enable this flag.
>>>>
>>>>
>>>> On 5/25/2017 2:26 PM, Arvid Norberg wrote:
>>>>> On Thu, May 25, 2017 at 4:37 AM, Alexander Dyagilev
>>>>> <***@gmail.com <mailto:***@gmail.com>> wrote:
>>>>>
>>>>> Hello,
>>>>>
>>>>> Race condition bug then?
>>>>>
>>>>> I process meta data received alert in another thread.
>>>>>
>>>>> LT continues download while I process it.
>>>>>
>>>>> Even if I pause torrent immediately after receiving this alert
>>>>> (and before starting to process it), isn't there a chance that
>>>>> LT will have time to create some files?
>>>>>
>>>>>
>>>>> That's what flag_stop_when_ready is for, see
>>>>> http://www.libtorrent.org/reference-Core.html#add_torrent_params
>>>>>
>>>>> Now that I look at it, it looks like downloading-metadata may
>>>>> count as "downloading". I wonder if this was a mistake. This flag
>>>>> is useful for just *checking* a torrent but not start downloading
>>>>> it, but it seems like it would be really useful to for this
>>>>> feature to also trigger on the downloading-metadata -> downloading
>>>>> edge.
>>>>>
>>>>> --
>>>>> Arvid Norberg
>>>>
>>>
>>
>