AvailableSubtitles not populated. (1 Viewer)

piranha

MP Donator
  • Premium Supporter
  • September 17, 2005
    370
    10
    Hi
    in the database there is a field called AvailableSubtitles, which I wanted to use to show the subtitle logo, if the subtitles are present.

    This field doesn't seem to be populated correctly.

    Out of 419 episodes in my database only 49 are flagged as AvailableSubtitles = 1. I checked and there are 325 subtitles in total. They are in the same directory as movie file and they have *.txt extension.
    They were present during the scan.

    Any help?
     

    Inker

    Retired Team Member
  • Premium Supporter
  • December 6, 2004
    2,055
    318
    Code:
    if (System.IO.File.Exists(sDirectory + @"\" + sFileNameNoExt + ".srt") || System.IO.File.Exists(sDirectory + @"\" + sFileNameNoExt + ".sub"))
       episode[DBEpisode.cAvailableSubtitles] = true;
    else
        episode[DBEpisode.cAvailableSubtitles] = false;

    What type of subtitles are .txt anyways?
     

    piranha

    MP Donator
  • Premium Supporter
  • September 17, 2005
    370
    10
    There are lots of types of subtitles, and Vobsub reads them all properly.
    Most typical are:

    Advanced SubStation Alpha (*.ass)
    AQTitle (*.aqt)
    Captions 32 (*.txt)
    Captions DAT (*.dat)
    Captions DAT Text (*.dat)
    Captions Inc. (*.txt)
    Cheetah (*.asc)
    CPC-600 (*.txt)
    DKS Subtitle Format (*.dks)
    DVD Junior (*.txt)
    DVD Subtitle System (*.txt)
    DVDSubtitle (*.sub)
    FAB Subtitler (*.txt)
    IAuthor Script (*.txt)
    Inscriber CG (*.txt)
    JACOSub 2.7+ (*.jss; *.js)
    Karaoke Lyrics LRC (*.lrc)
    Karaoke Lyrics VKT (*.vkt)
    KoalaPlayer (*.txt) (equal to one of the variations of TMPlayer)
    MAC DVD Studio Pro (*.txt)
    MacSUB (*.scr)
    MicroDVD (*.sub)
    MPlayer (*.mpl)
    MPlayer2 (*.mpl)
    MPSub (*.sub)
    OVR Script (*.ovr)
    Panimator (*.pan)
    Philips SVCD Designer (*.sub)
    Phoenix Japanimation Society (*.pjs)
    Pinnacle Impression (*.txt)
    PowerDivX (*.psb)
    PowerPixel (*.txt)
    QuickTime Text (*.txt)
    RealTime (*.rt)
    SAMI Captioning (*.smi)
    Sasami Script (*.s2k)
    SBT (*.sbt)
    Sofni (*.sub)
    Softitler RTF (*.rtf)
    SonicDVD Creator (*.sub)
    Sonic Scenarist (*.sst)
    Spruce DVDMaestro (*.son)
    Spruce Subtitle File (*.stl)
    Stream SubText Player (*.sst)
    Stream SubText Script (*.ssts)
    SubCreator 1.x (*.txt)
    SubRip (*.srt)
    SubSonic (*.sub)
    SubStation Alpha (*.ssa)
    SubViewer 1.0 (*.sub)
    SubViewer 2.0 (*.sub)
    TMPlayer (*.txt) (five different variations)
    Turbo Titler (*.txt)
    ViPlay Subtitle File (*.vsf)
    ZeroG (*.zeg)
     

    Inker

    Retired Team Member
  • Premium Supporter
  • December 6, 2004
    2,055
    318
    ....lol. I should not have asked :)

    Alright, make me a list with unique extensions like so:
    ".txt"
    ".sub"
    etc without descriptions so I can copy paste and I'll include them all.
     

    piranha

    MP Donator
  • Premium Supporter
  • September 17, 2005
    370
    10
    ....lol. I should not have asked :)

    Alright, make me a list with unique extensions like so:
    ".txt"
    ".sub"
    etc without descriptions so I can copy paste and I'll include them all.

    here you go :) It's not that many actually.

    ".aqt"
    ".asc"
    ".ass"
    ".dat"
    ".dks"
    ".js"
    ".jss"
    ".lrc"
    ".mpl"
    ".ovr"
    ".pan"
    ".pjs"
    ".psb"
    ".rt"
    ".rtf"
    ".s2k"
    ".sbt"
    ".scr"
    ".smi"
    ".son"
    ".srt"
    ".ssa"
    ".sst"
    ".ssts"
    ".stl"
    ".sub"
    ".txt"
    ".vkt"
    ".vsf"
    ".zeg"

    Thanks a bunch :)
     

    Inker

    Retired Team Member
  • Premium Supporter
  • December 6, 2004
    2,055
    318
    Edit: just saw you changed them, perfect now :)

    I'll check in the changes later tonight.
     

    piranha

    MP Donator
  • Premium Supporter
  • September 17, 2005
    370
    10
    Can you also check why "force local scan" did not update the field?
    Just to check it out, I uploaded some srt subtitles, and then "forced local scan". The flag was not updated.
    I had to delete the series and rescan.
     

    Inker

    Retired Team Member
  • Premium Supporter
  • December 6, 2004
    2,055
    318
    Thats because it doesn't progress files anymore that are already in the DB..., It should actually be auto-updating itself so that you don't have to force a local scan at all. So in the future, it'll manage itself.
     

    Users who are viewing this thread

    Top Bottom