SubtitleDownloader (2 Viewers)

seco

Retired Team Member
  • Premium Supporter
  • August 7, 2007
    1,575
    1,239
    Home Country
    Finland Finland
    Hi @seco,

    I understand that 3.0.10 suppose to fix an issue where DLL is missing. I still experiencing this from time to time...

    Need full debug logs to confirm..
     

    yoavain

    Extension Dev
  • Premium Supporter
  • May 24, 2009
    427
    467
    47
    Home Country
    Israel Israel
    Hi @seco,

    I understand that 3.0.10 suppose to fix an issue where DLL is missing. I still experiencing this from time to time...

    Need full debug logs to confirm..

    See attached. I've installed the SubtitleDowloader from within the MP, so you'll probably need to look at the SubCentral.log.bak & MediaPortal.1.log
    (The MP-error files were empty)

    Edit: These are files from the log folder. If you need full logs, I'll do it tonight.
     

    Attachments

    • MediaPortal.zip
      16.2 KB

    seco

    Retired Team Member
  • Premium Supporter
  • August 7, 2007
    1,575
    1,239
    Home Country
    Finland Finland
    See attached. I've installed the SubtitleDowloader from within the MP, so you'll probably need to look at the SubCentral.log.bak & MediaPortal.1.log
    (The MP-error files were empty)

    Edit: These are files from the log folder. If you need full logs, I'll do it tonight.

    Only error I can see is coming from Sratim.SratimDownloader constructor where a failed connection is made to the site. Since this happens at construction phase the whole library seems to fail to initialize.

    Code:
    26-Oct-2013 23:09:19.174 Error [      SubCentralCore]: SubtitleDownloader: error getting providers
     System.TypeInitializationException: The type initializer for 'SubtitleDownloader.Core.SubtitleDownloaderFactory' threw an exception. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.WebException: The remote name could not be resolved: 'www.subtitle.co.il'
       at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
       at System.Net.HttpWebRequest.GetRequestStream()
       at SratimUtils.SratimDownloaderConfiguration.DoWebRequest(String url, String postData, CookieContainer cookieContainer)
       at SratimUtils.SratimDownloaderConfiguration.GetCookieDataFromLoginData(LoginData loginData)
       at SratimUtils.SratimDownloaderConfiguration.ValidateCredentials(String email, String password)
       at Sratim.SratimDownloader.Init()
       at Sratim.SratimDownloader..ctor()
       --- End of inner exception stack trace ---

    To fix this I would probably remove this kind of initialization code from the constructror.
     

    yoavain

    Extension Dev
  • Premium Supporter
  • May 24, 2009
    427
    467
    47
    Home Country
    Israel Israel
    See attached. I've installed the SubtitleDowloader from within the MP, so you'll probably need to look at the SubCentral.log.bak & MediaPortal.1.log
    (The MP-error files were empty)

    Edit: These are files from the log folder. If you need full logs, I'll do it tonight.

    Only error I can see is coming from Sratim.SratimDownloader constructor where a failed connection is made to the site. Since this happens at construction phase the whole library seems to fail to initialize.

    Code:
    26-Oct-2013 23:09:19.174 Error [      SubCentralCore]: SubtitleDownloader: error getting providers
    System.TypeInitializationException: The type initializer for 'SubtitleDownloader.Core.SubtitleDownloaderFactory' threw an exception. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.WebException: The remote name could not be resolved: 'www.subtitle.co.il'
       at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
       at System.Net.HttpWebRequest.GetRequestStream()
       at SratimUtils.SratimDownloaderConfiguration.DoWebRequest(String url, String postData, CookieContainer cookieContainer)
       at SratimUtils.SratimDownloaderConfiguration.GetCookieDataFromLoginData(LoginData loginData)
       at SratimUtils.SratimDownloaderConfiguration.ValidateCredentials(String email, String password)
       at Sratim.SratimDownloader.Init()
       at Sratim.SratimDownloader..ctor()
       --- End of inner exception stack trace ---

    To fix this I would probably remove this kind of initialization code from the constructror.

    If that's the case, then it's my bad o_O
    Will look
     

    seco

    Retired Team Member
  • Premium Supporter
  • August 7, 2007
    1,575
    1,239
    Home Country
    Finland Finland
    hi,
    I can not use component (subtitledownloader.dll)
    Can someone give me a sample source code? (vb.net or c#)

    How about reading the first post second time?
     

    yoavain

    Extension Dev
  • Premium Supporter
  • May 24, 2009
    427
    467
    47
    Home Country
    Israel Israel
    Only error I can see is coming from Sratim.SratimDownloader constructor where a failed connection is made to the site. Since this happens at construction phase the whole library seems to fail to initialize.

    Code:
    26-Oct-2013 23:09:19.174 Error [      SubCentralCore]: SubtitleDownloader: error getting providers
     System.TypeInitializationException: The type initializer for 'SubtitleDownloader.Core.SubtitleDownloaderFactory' threw an exception. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.WebException: The remote name could not be resolved: 'www.subtitle.co.il'
       at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
       at System.Net.HttpWebRequest.GetRequestStream()
       at SratimUtils.SratimDownloaderConfiguration.DoWebRequest(String url, String postData, CookieContainer cookieContainer)
       at SratimUtils.SratimDownloaderConfiguration.GetCookieDataFromLoginData(LoginData loginData)
       at SratimUtils.SratimDownloaderConfiguration.ValidateCredentials(String email, String password)
       at Sratim.SratimDownloader.Init()
       at Sratim.SratimDownloader..ctor()
       --- End of inner exception stack trace ---

    To fix this I would probably remove this kind of initialization code from the constructror.

    Thanks seco. I moved the code out of the constructor. Problem was I did not catch a connection timeout exception. Even when code did not reach timeout, this affected MP startup time, so it was a good idea to remove it.
     

    mahdi

    New Member
    November 27, 2013
    2
    0
    30
    Qeydar, Zanjan, Iran
    Home Country
    Iran Iran
    hi,
    I can not use component (subtitledownloader.dll)
    Can someone give me a sample source code? (vb.net or c#)

    How about reading the first post second time?

    Yes but i am begginer.
    I'm Subscen search and download subtitles

    hi,
    I can not use component (subtitledownloader.dll)
    Can someone give me a sample source code? (vb.net or c#)

    My project is here:
    https://code.google.com/p/hebrewsubtitledownloader

    It contains 2 implementations of the interface. It also function as an extension (with subcentral as dependency)
    i want search and download subtitle from subscen
     

    volumia

    Portal Pro
    November 23, 2011
    124
    71
    whereever my feet take me...
    Home Country
    Netherlands Netherlands
    Since some legal issues surfaced in The Netherlands with subtitles, the BierDopje.com website no longer hosts them. Maybe an idea to remove it from the plugin in a future release until a new successor comes along?
     

    Users who are viewing this thread

    Top Bottom