fix: allow codec field to be optional#70
Conversation
Hi, thank you for the works. The extension is working great, but I encounter missing codec field error in some of my library. I tried to check said library using ffmpeg, turn out it did miss some audio codec. Though the movie and its audio is working fine. So, this change is just to make codec filed to be optional. Take a note that I don't fully understand how Jellyfin nor video component work. So, I don't know whether this change will break other code or not. Please forgive my English, it's not my first language. Thanks!
|
The codec is only used in external subtitles, but since the codec for the subtitles is required, could you add a null check there? Also, you need to bump |
|
I have added null check and bump version code |
Co-authored-by: Secozzi <49240133+Secozzi@users.noreply.github.com>
|
As in, if codec is null, we skip subtitles entirely? |
|
Sorry, I just realize after committing your suggestion. Your suggestion is like this Did you mean like this: |
|
I just go ahead and use this version: Let me know if that's not you wanted. I will revert it later. |
Ah yes, that's what i thought i suggested but it seems like Github messed it up |
|
Great, thank you |
Hi, thank you for the works. The extension is working great, but I encounter missing codec field error in some of my library. I tried to check said library using ffmpeg, turn out it did miss some audio codec. Though the movie and its audio is working fine.
So, this change is just to make codec filed to be optional. Take a note that I don't fully understand how Jellyfin nor video component work. So, I don't know whether this change will break other code or not. Please forgive my English, it's not my first language. Thanks!
Checklist:
extVersionCodevalue inbuild.gradlefor individual extensionsisNsfw = trueflag inbuild.gradlewhen appropriateidif a source's name or language were changedweb_hi_res_512.pngwhen adding a new extension