mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-05-30 23:40:40 +02:00
[Bug]: Subtitle saved as null #691
Closed
opened 2026-04-24 23:17:13 +02:00 by adam
·
10 comments
No Branch/Tag Specified
master
book_tags_genres_dedupe
episode_download_fallback
Issue-4540-SortBy-StartedDate-and-FinishedDate
episode_meta_tagging
fix_authorize_race_condition
redirect_transcode_requests
progress_updated_sort
fix_ereader_socket_event
fix_change_empty_root_password
fix_podcast_session_track_index
fix_set_token
session_modal_user
localize_durations
fix_oidc_create_user
jwt_auth_refactor
fix_scanner_deleting_single_file_books
fix_mediaprogress_updatedat_2
experimental_next_client
podcast_episode_duration
episode-timestamps-clickable
book_author_secondary_sort_title
podcast_useragents
pathexists_user_access
fix_pathexists_join
book_author_secondary_sort
clean_duplicate_mediaprogress
sanitize_html_description
trix_prevent_attachments
check_path_api_fix
fix_mediaprogress_updatedat
increase_express_json_limit
fix_dockerfile_nunicode
search_episodes
audiobook_tools_update
episode_secondary_sorts
hls_stream_url_update
new_session_track_endpoint
audiobook_tools_enhancements
watcher_rescans_update
player_track_tooltip
fix_exclude_prefixes_crash
socket_item_events
fix_podcast_episode_scanner_promise
new_stats_controller
count_cache_for_userpermissions
parsing-opf-v3
validate_migration_files
fix-quick-match-all-crash
fix-chapter-end-sleep-timer
stringify_sequelize_query
remove-col-ambiguity
fix_next_prev_edit_description
details_trim_whitespace
fix_content_url_basepath
fix_logger_fatal
progress_bar_visibility
batch-edit-populate-map-details
feed_generator_updates
bookmark-modal-updates
migrate-library-item-in-scanner
migrate-new-library-items
migrate-podcasts-new-library-item-2
migrate-podcasts-new-library-item
fix-remove-episode-from-playlist
playback-session-use-new-library-item
refactor-library-item
fix-heatmap-caption
feed-episodes-upsert
share-media-player-media-session-api
remove-old-playlist
remove_old_collection_object
plugin-implementation-demo
feed_migration
refactor-feeds-from-item
fix_remove_authors_no_books
v2.17.3-fk-constraints-migration
migrations-first-upgrade
sqlite_2
feature/nuxt-target-server
waveform
sqlite
playl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4
v1.3.3
v1.3.1
v1.2.8
v1.2.6
v1.2.5
v1.2.4
v1.2.1
v1.1.15
v1.1.14
v1.1.13
v1.1.12
v1.1.11
v1.1.10
v1.1.9
v1.1.8
v1.0.0
0.9.61-beta.0
0.9.61-beta
Labels
Clear labels
authentication
backlog
bug
chapter editor
config-issue
ebooks
encoding/embedding
enhancement
help wanted
listening sessions & progress
planned
possible plugin
progress sync
pull-request
sorting/filtering/searching
unable to reproduce
upload
users & permissions
waiting
Mirrored from GitHub Pull Request
No Label
bug
Milestone
No items
No Milestone
Projects
Clear projects
No project
Assignees
adam (Adam Melkus)
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: starred/audiobookshelf#691
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @machstem on GitHub (Oct 13, 2022).
Describe the issue
The books I import that do not belong to a "series", have the string "null" instead of being an empty field.
The books I import that belong to a series, they correctly identity the series underneath the title.
Tested on the web version, Firefox on PopOS.
Steps to reproduce the issue
Audiobookshelf version
v2.2.1
How are you running audiobookshelf?
Docker
@advplyr commented on GitHub (Oct 14, 2022):
How are you importing the books? Are you using the uploader or are they books already in your filesystem you are scanning?
@wtanksleyjr commented on GitHub (Oct 20, 2022):
I have a lot of books with this problem; I'd postponed reporting because I wasn't sure where it came from. I might have some answers, though. It appears to come from MP3 metadata ... it looks like all of the cases involve books with "null" in the Subtitle tag.
What's a little worse is that the only way to get rid of this is to manually edit it. Audiobookshelf (ABS) NEVER automatically blanks a field; if a Match result or an OPF file has a blank field, ABS will ignore that field and will not change the book data. I'd like it if the user had a choice in that -- when I'm doing a Match, I'd like to be able to check and uncheck (and edit) EVERY field of the book, not just the ones that are nonblank in the results; and when I'm generating an OPF, if I include a field as being blank, I want it to actually be blanked out, not to be ignored. (Idea: if I don't specify a field, it's OK to leave it alone, but if I do specify it, blank value means blank the field.)
@advplyr commented on GitHub (Oct 20, 2022):
Is the word "null" actually set on the audio file meta tag?
You can select multiple books and press the edit button at the top. This will take you to the batch editor which will allow you to map details onto all selected books. With this you could remove the subtitle on all of those books easily.
@wtanksleyjr commented on GitHub (Oct 21, 2022):
I don't know what you mean by "actually"; but I found a book with 'null' in
its MP3 subtitle but not in my metadata, and sure enough it had "null" in
its Audiobookshelf subtitle.
I have a ton more, but it's very hard to find them without just being
randomly lucky, it's not possible to search the contents of subtitles.
I was able to confirm that bulk edit+"map details" does work. What does
"map details" mean? And could a better name and more obviously clickable
way to activate it be chosen for it? It's almost invisible against the rest
of the UI, the name doesn't suggest any function, and it's only clickable
in that little pointy arrow thing that I don't think your UI uses anywhere
else. I wish I'd known it existed a long time ago, I've very often wanted
to bulk change book data! I should also say thank you, because even if I
didn't know it was there I will definitely be using it a lot!
-Wm
On Thu, Oct 20, 2022 at 2:20 PM advplyr @.***> wrote:
@advplyr commented on GitHub (Oct 21, 2022):
I'm not sure what this means. What is MP3 subtitle but not in metadata?
Definitely. Let me know what you think would be better and more clear.
@wtanksleyjr commented on GitHub (Oct 22, 2022):
Oh, sorry, the explanation of "my metadata": I keep "my metadata" in a
database, in this case it came from the seller of this audiobook -- the
book had no subtitle there, although the MP3's metadata (which I almost
completely ignore and don't use) has "null" there. It seems to be not
unusual, to the extent that before I gave up on getting metadata from MP3s
I included a test for the word 'null'.
Changing the name is of only limited value because it doesn't look like a
section you can click on; it looks like a headline above what you're
editing. And because the function it's performing is essentially a kind of
bulk editing, anything we call it will look like a description of the
editor you can see, not the editor that's hidden.
On Fri, Oct 21, 2022 at 2:37 AM advplyr @.***> wrote:
@advplyr commented on GitHub (Oct 23, 2022):
If your audio meta tag already has the subtitle stored as "null" then abs is going to pull that in.
I'm still not sure I understand properly. Is this an issue with abs or with your audio meta tags?
@wtanksleyjr commented on GitHub (Oct 24, 2022):
OK, that's probably fair, I think it's an answer to the
original question/bug report, "you might have bad MP3 metadata" (it's super
common, and might possibly be 100% of the time, I don't know).
In my case, I've configured ABS to prefer metadata from OPF files, and I
always have an OPF file in the book's folder before I move the folder into
its place in ABS's input directories. In spite of that, so long as the book
doesn't have a subtitle, there's no way to stop ABS from pulling the word
"null" from bad metadata.
Some thoughts: I'd rather ABS not look at any other metadata, including the
MP3 metadata, when there's a valid OPF (and I told it to look for an OPF).
This also happens if my OPF provides a blank title (which I used to do for
series, although I've changed all my series now), although I've never seen
MP3 metadata equal null; instead, what happens is that ABS pulls the
directory the book's in to be the title. It seems that ABS won't allow a
blank field, it'll always try to find some data for it.
-Wm
On Sun, Oct 23, 2022 at 1:20 PM advplyr @.***> wrote:
@advplyr commented on GitHub (Oct 28, 2022):
I see what you mean. That would be a big project to have an interface for disabling certain fields but is something we might do down the road.
Best option for now is to make sure your audio file metadata and folder structure are nice and organized.
@wtanksleyjr commented on GitHub (Oct 28, 2022):
True. But that actually wasn't what I meant.
I was wanting to have ABS consider a blank field in an OPF or a match
result to be a request to blank the field, instead of something to ignore.
For backward compatibility, a missing field in OPF would be handled just
like now -- so for example if my OPF has no
<title>field the book willkeep its old title (just like now), but if I have a
<title>field andit's blank, that field will be blanked out. Likewise, a Match result with
an unchecked field means to ignore it (leave the old contents), but if it's
checked it would be applied even if it's blank (i.e. blanking out the
field).
I would also like it if the Match editor would stop hiding fields while I'm
editing them -- the first time I wanted to correct a field, I backspaced
it, and was surprised to have the editor permanently hide it so I had to
cancel to get the ability back to edit the field; I had expected to
backspace and then type my correction in.
On Thu, Oct 27, 2022 at 3:21 PM advplyr @.***> wrote: