Language not set from [JA] in title or metadata

Sonarr version: (3.0.4.1006)
OS: Windows 10
Description of issue What a wonderful program. But I seem to have a small glitch.: I have a number of Anime series with episode names like “Show s01E01 Some ep name [JA]” because the only audio track is Japanese, and I have other files in another series with names like “Show2 S01E01 Other ep name [DE]” because the only audio track is German. The Sonarr page listing for the episodes with [JA] show (incorrectly) as English. The Sonarr page listing for the episodes with [DE] show the language, as I would expect, to be German. I can get around what seems to be a problem with listing episodes in Japanese by adding the identifier [JAPANESE] to each file name and then rescanning the series, but this extra step is a step I’d like to avoid. Am I missing something? The log file lines attached are from doing a re-scan of the page for Tokyo Ravens, where every file name ends in [JA] but the listing still shows English.

Note that as the episodes come in, Sonarr knows to correctly add the [JA] to the file names. It’s just that Sonarr seems to "forget’ the language later on and the display page shows English.

Debug logs:
20-11-16 13:57:10.2|Info|RefreshSeriesService|Updating Tokyo Ravens
20-11-16 13:57:10.2|Debug|Api|[GET] /api/episode?seriesId=2319&apikey=(removed) 200.OK (1 ms)
20-11-16 13:57:10.2|Debug|Api|[GET] /api/episode?seriesId=2516&apikey=(removed) 200.OK (3 ms)
20-11-16 13:57:10.3|Debug|Api|[GET] /api/episode?seriesId=2825&apikey=(removed) 200.OK (6 ms)
20-11-16 13:57:10.3|Debug|Api|[GET] /api/episode?seriesId=2603&apikey=(removed) 200.OK (14 ms)
20-11-16 13:57:10.3|Debug|Api|[GET] /api/episode?seriesId=2405&apikey=(removed) 200.OK (12 ms)
20-11-16 13:57:10.4|Debug|Api|[GET] /api/episode?seriesId=2391&apikey=(removed) 200.OK (1 ms)
20-11-16 13:57:10.4|Debug|Api|[GET] /api/episode?seriesId=2393&apikey=(removed) 200.OK (2 ms)
20-11-16 13:57:10.4|Debug|Api|[GET] /api/episode?seriesId=2371&apikey=(removed) 200.OK (1 ms)
20-11-16 13:57:10.4|Debug|Api|[GET] /api/episode?seriesId=2403&apikey=(removed) 200.OK (2 ms)
20-11-16 13:57:10.4|Debug|Api|[GET] /api/episode?seriesId=2616&apikey=(removed) 200.OK (1 ms)
20-11-16 13:57:10.4|Debug|Api|[GET] /api/episode?seriesId=2830&apikey=(removed) 200.OK (2 ms)
20-11-16 13:57:10.5|Info|RefreshEpisodeService|Starting episode info refresh for: [272043][Tokyo Ravens]
20-11-16 13:57:10.5|Debug|Api|[GET] /api/episode?seriesId=2615&apikey=(removed) 200.OK (2 ms)
20-11-16 13:57:10.5|Debug|EpisodeAddedService|No new episodes, skipping search
20-11-16 13:57:10.5|Debug|Api|[GET] /api/episode?seriesId=2389&apikey=(removed) 200.OK (2 ms)
20-11-16 13:57:10.5|Info|RefreshEpisodeService|Finished episode refresh for series: [272043][Tokyo Ravens].
20-11-16 13:57:10.5|Debug|RefreshSeriesService|Finished series refresh for Tokyo Ravens
20-11-16 13:57:10.5|Debug|XemService|Scene numbering is not available for Tokyo Ravens [272043]
20-11-16 13:57:10.5|Debug|Api|[GET] /api/episode?seriesId=2476&apikey=(removed) 200.OK (1 ms)
20-11-16 13:57:10.5|Info|DiskScanService|Scanning Tokyo Ravens
20-11-16 13:57:10.5|Debug|DiskScanService|Scanning ‘P:\TV_Downloads\Tokyo Ravens’ for video files
20-11-16 13:57:10.5|Debug|Api|[GET] /api/v3/health: 200.OK (1 ms)
20-11-16 13:57:10.5|Debug|Api|[GET] /api/v3/health: 200.OK (3 ms)
20-11-16 13:57:10.5|Debug|Api|[GET] /api/v3/health: 200.OK (3 ms)
20-11-16 13:57:10.5|Debug|Api|[GET] /api/episode?seriesId=2686&apikey=(removed) 200.OK (3 ms)
20-11-16 13:57:10.5|Debug|DiskScanService|24 video files were found in P:\TV_Downloads\Tokyo Ravens
20-11-16 13:57:10.6|Debug|DiskScanService|[272043][Tokyo Ravens] Cleaning up media files in DB
20-11-16 13:57:10.6|Debug|Api|[GET] /api/episode?seriesId=2295&apikey=(removed) 200.OK (2 ms)
20-11-16 13:57:10.6|Debug|ImportDecisionMaker|Analyzing 0/24 files.
20-11-16 13:57:10.6|Debug|Api|[GET] /api/episode?seriesId=2401&apikey=(removed) 200.OK (1 ms)
20-11-16 13:57:10.6|Info|DiskScanService|Completed scanning disk for Tokyo Ravens
20-11-16 13:57:10.6|Debug|ExistingExtraFileService|Looking for existing extra files in P:\TV_Downloads\Tokyo Ravens
20-11-16 13:57:10.6|Debug|DiskScanService|Scanning ‘P:\TV_Downloads\Tokyo Ravens’ for non-video files
20-11-16 13:57:10.6|Debug|Api|[GET] /api/episode?seriesId=2963&apikey=(removed) 200.OK (7 ms)
20-11-16 13:57:10.6|Debug|DiskScanService|0 non-video files were found in P:\TV_Downloads\Tokyo Ravens
20-11-16 13:57:10.6|Debug|ExistingMetadataImporter|Looking for existing metadata in P:\TV_Downloads\Tokyo Ravens
20-11-16 13:57:10.6|Info|ExistingMetadataImporter|Found 0 existing metadata files
20-11-16 13:57:10.6|Debug|Api|[GET] /api/episode?seriesId=2794&apikey=(removed) 200.OK (14 ms)
20-11-16 13:57:10.6|Debug|ExistingSubtitleImporter|Looking for existing subtitle files in P:\TV_Downloads\Tokyo Ravens
20-11-16 13:57:10.6|Debug|Api|[GET] /api/episode?seriesId=2297&apikey=(removed) 200.OK (2 ms)
20-11-16 13:57:10.6|Info|ExistingSubtitleImporter|Found 0 existing subtitle files
20-11-16 13:57:10.7|Debug|ExistingOtherExtraImporter|Looking for existing extra files in P:\TV_Downloads\Tokyo Ravens
20-11-16 13:57:10.7|Debug|Api|[GET] /api/episode?seriesId=2337&apikey=(removed) 200.OK (3 ms)
20-11-16 13:57:10.7|Info|ExistingOtherExtraImporter|Found 0 existing other extra files
20-11-16 13:57:10.7|Debug|Api|[GET] /api/episode?seriesId=2279&apikey=(removed) 200.OK (6 ms)
20-11-16 13:57:10.7|Info|ExistingExtraFileService|Found 0 extra files
20-11-16 13:57:10.7|Debug|CleanExtraFileService|Cleaning missing metadata files for series: Tokyo Ravens

Currently Sonarr only uses the title to determine the “language”, the [JA] is from the track language, eventually the plan is to include the track languages in the language detection, but for the moment what you’re seeing is the expected outcome.

OK. Thanks, Markus. I was thinking that since it worked with one language (German) it might work with others. But I’m glad the plan might include this in the future. Thanks again for the terrific work!

1 Like