mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 00:19:16 +01:00
Include source ID if name not found in restore error log (closes #3018)
This commit is contained in:
parent
226ad13061
commit
6713a7ae3c
@ -271,13 +271,8 @@ class BackupRestoreService : Service() {
|
|||||||
if (source != null) {
|
if (source != null) {
|
||||||
restoreMangaData(manga, source, chapters, categories, history, tracks)
|
restoreMangaData(manga, source, chapters, categories, history, tracks)
|
||||||
} else {
|
} else {
|
||||||
val message = if (manga.source in sourceMapping) {
|
val sourceName = sourceMapping[manga.source] ?: manga.source.toString()
|
||||||
getString(R.string.source_not_found_name, sourceMapping[manga.source])
|
errors.add(Date() to "${manga.title} - ${getString(R.string.source_not_found_name, sourceName)}")
|
||||||
} else {
|
|
||||||
getString(R.string.source_not_found)
|
|
||||||
}
|
|
||||||
|
|
||||||
errors.add(Date() to "${manga.title} - $message")
|
|
||||||
}
|
}
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
errors.add(Date() to "${manga.title} - ${e.message}")
|
errors.add(Date() to "${manga.title} - ${e.message}")
|
||||||
|
@ -342,7 +342,6 @@
|
|||||||
<string name="pref_backup_service_category">Automatic backups</string>
|
<string name="pref_backup_service_category">Automatic backups</string>
|
||||||
<string name="pref_backup_interval">Backup frequency</string>
|
<string name="pref_backup_interval">Backup frequency</string>
|
||||||
<string name="pref_backup_slots">Maximum backups</string>
|
<string name="pref_backup_slots">Maximum backups</string>
|
||||||
<string name="source_not_found">Source not found</string>
|
|
||||||
<string name="source_not_found_name">Source not found: %1$s</string>
|
<string name="source_not_found_name">Source not found: %1$s</string>
|
||||||
<string name="tracker_not_logged_in">Not logged in: %1$s</string>
|
<string name="tracker_not_logged_in">Not logged in: %1$s</string>
|
||||||
<string name="backup_created">Backup created</string>
|
<string name="backup_created">Backup created</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user