[Resolved] Adding language information to subtitle srt file

Any questions? Need some help?
Post Reply
Zedseayou
Posts: 2
Joined: 04 Aug 2015, 22:32

[Resolved] Adding language information to subtitle srt file

Post by Zedseayou »

System Info: Windows 10, Filebot v 4.6, Java 8 Update 51

Groovy Pad runScript 'fn:sysinfo' output

Code: Select all

FileBot 4.6 (r3052)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: OK
chromaprint-tools: fpcalc version 1.1.0 (C:\Program Files\FileBot\fpcalc.exe)
Extended Attributes: OK
Groovy Engine: 2.4.3
JRE: Java(TM) SE Runtime Environment 1.8.0_51
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 1 GB Max Memory / 67 MB Used Memory
OS: Windows 8.1 (amd64)
Background
I have some TV episodes that I downloaded with included subtitle .srt files. I renamed the video files using this naming scheme from the stickied thread:

Code: Select all

B:/Plex Media/TV Shows/{n}/Season {s.pad(2)}/{n} - {s00e00} - {t}{'.'+lang}
I got the lang media file not found error so I went to the FAQ, and pointed it at a .srt I had downloaded for a different show from OpenSubtitles through Filebot. However, if I then pointed it at the srt I wanted to use for the new show, I now get a lang undefined error. I don't totally understand what the bindings mean, but I am guessing that this means that the srt file I have doesn't have any language metadata associated with it, so when I try to rename it using the above scheme it just names it the same thing as the video file. This is a problem because I have the srts in multiple languages and because I also want to try and abide by Plex's naming conventions.
Image

I wanted to use these existing srts in the first place because I could not find them on OpenSubtitles. ImageSo then I decided to try and upload them to OpenSubtitles, and then I could redownload them and then maybe the language metadata would be populated and I could rename them properly. I dragged the video files and srts onto the up arrow in subtitles, then selected Game of Thrones as the show in the left column, but they still don't appear when I try to download again. How can I fix the missing lang info in these files?
Last edited by Zedseayou on 05 Aug 2015, 22:15, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 23949
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Adding language information to subtitle srt file

Post by rednoah »

1.
FileBot cannot guess the subtitle language, unless the the subtile filename already has the language tag and I guess it has to be dot-notation (e.g. *.eng.srt).

2.
Uploading subtitles to OpenSubtitles doesn't mean they're immediately available. It might take a day or two before the new subtitles show up due to caching on various levels.
:idea: Please read the FAQ and How to Request Help.
Zedseayou
Posts: 2
Joined: 04 Aug 2015, 22:32

Re: Adding language information to subtitle srt file

Post by Zedseayou »

Ah ok - I inserted the right language tag into the filename of the subtitles (.eng) and Filebot was able to rename accordingly. Thanks!
User avatar
rednoah
The Source
Posts: 23949
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Resolved] Adding language information to subtitle srt f

Post by rednoah »

The next release will match _eng.srt patterns as well.
:idea: Please read the FAQ and How to Request Help.
Post Reply