Tachiyomi: [Bug] Downloads finish but _tmp suffix isn't removed

Created on 11 Sep 2020  路  6Comments  路  Source: tachiyomiorg/tachiyomi

Device information

  • Tachiyomi version: Preview r2682
  • Android version: 11
  • Device: Pixel 4a

Steps to reproduce

  1. Download a chapter
  2. Open the chapter after downloader marks it as 'Downloaded'

Expected behavior

Chapter loads from storage

Actual behavior

Chapter starts loading the pages from network

Other details

Few manga are affected and not all chapters of the mangas in question are affected.
So far it has happened with both Guya (English) and Mangadex extensions.
I've already tried clearing the chapter cache, app cache, cookies, and database. Refreshing the chapter list won't fix it. Happens on both Wifi/LTE. The issue always affects the same chapters and never the ones that are ok.
Video 1 (Mega.nz)
Video 2 (Mega.nz)
Screenshot (Guya)
Screenshot (Mangadex)
Android 11 might've broken something since the app was fine before updating.

bug

Most helpful comment

This seems to be fixed in the Android 11 October security update. After manually deleting the old _tmp folders from previous attempts, I was able to download chapters with apostrophes in their names successfully.

All 6 comments

Also noticed my file manager can't rename the _tmp folders but can rename the unaffected ones.

Okay definitely Android 11. Folder names with an apostrophe cannot be renamed by Tachiyomi or by any app (including the stock file manager). I'm not sure if a workaround can be implemented so I'll close this for now.

Any folders created inside the folder with an apostrophe cannot be renamed either.

@arkon or anyone else. For a workaround, I was thinking: the downloader does a one-time check to see if system can rename folders with apostrophes by creating an empty folder with an apostrophe and renaming it. If it fails, future downloads with the downloader should create a new folder (without _tmp), move the _tmp contents over, and delete the _tmp folder.

Moving/deleting/copying is unaffected btw, only renaming folders is an issue.

easier solution is just to add ' as reserved character and replace it with _ like the other non FAT32 compliant characters

This seems to be fixed in the Android 11 October security update. After manually deleting the old _tmp folders from previous attempts, I was able to download chapters with apostrophes in their names successfully.

Yep you're right, october ota fixed it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

as280093 picture as280093  路  3Comments

arkon picture arkon  路  3Comments

squadz3 picture squadz3  路  3Comments

ElerTheMagnanimous picture ElerTheMagnanimous  路  3Comments

joseph619 picture joseph619  路  3Comments